HTML with Amazon Button

Permalink
I'm trying to use the following code below with the HTML Block but it is not working. Any help or suggestions?

<div id="AmazonPayButton"/>
<script type="text/javascript">
var authRequest;
OffAmazonPayments.Button("AmazonPayButton", "YOUR_SELLER_ID_HERE", {
type: "LwA",
useAmazonAddressBook: true,
authorization: function() {
loginOptions =
{scope: "profile payments:widget payments:shipping_address"};
authRequest = amazon.Login.authorize(loginOptions);
},
onSignIn: function(orderReference) {
// The following OAuth 2 response parameters will be included in
// the query string when the customer's browser is redirected to
// the URL below: access_token, token_type, expires_in, and scope.
authRequest.onComplete("/redirect_page?session="
+ orderReference.getAmazonOrderReferenceId());
},
onError: function(error) {
// your error handling code
}
});
</script>

 
enlil replied on at Permalink Reply
enlil
Missing the closing /div maybe??
hollowman replied on at Permalink Reply
Tried that, it didn't work.
Back to the drawing board . . .
Does Concrete5 accept HTML?
planist1 replied on at Permalink Reply
planist1
Did you put in your seller id?

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.