Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
currency: this.currency,
details: this.details,
},
}, assignTo(vue, propTypes.TRANSACTION));
// TODO: clean this up
if (transaction.shipping_address && transaction.item_list) {
transaction.item_list.shipping_address = transaction.shipping_address;
delete transaction.shipping_address;
}
const payment = {
transactions: [transaction],
};
return paypal.rest.payment.create(
this.env,
this.client,
Object.assign({ payment }, assignTo(vue, propTypes.PAYMENT)),
);
},
onAuthorize(data, actions) {
currency: this.currency,
details: this.details
}
}, assignTo(vue, propTypes.TRANSACTION));
// TODO: clean this up
if (transaction.shipping_address && transaction.item_list) {
transaction.item_list.shipping_address = transaction.shipping_address;
delete transaction.shipping_address;
}
var payment = {
transactions: [transaction]
};
return paypal.rest.payment.create(this.env, this.client, _Object$assign({ payment: payment }, assignTo(vue, propTypes.PAYMENT)));
},
onAuthorize: function onAuthorize(data, actions) {