WIP: start working on amazon payments

This commit is contained in:
Matteo Pagliazzi
2015-06-03 22:05:55 +02:00
parent cca3e8bfdf
commit b0643e7177
4 changed files with 35 additions and 1 deletions

View File

@@ -22,6 +22,13 @@ function($scope, $rootScope, User, $http, Notification, ApiUrl) {
*/
$scope.deferredScripts = function(){
// Amazon Payments
$.getScript('https://static-na.payments-amazon.com/OffAmazonPayments/us/sandbox/js/Widgets.js?sellerId=' + window.env.AMAZON_PAYMENTS.SELLER_ID, function(){
window.onAmazonLoginReady = function() {
amazon.Login.setClientId(window.env.AMAZON_PAYMENTS.CLIENT_ID);
};
});
// Stripe
$.getScript('//checkout.stripe.com/v2/checkout.js');