You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
amount always stays same to 0.01 on checkout no matter whatever I do, I've tried putting static values but all in vain, I am using latest version 8.0.0
The text was updated successfully, but these errors were encountered:
this.payPalConfig = {
currency: this.currency,
clientId: environment.paypal,
createOrder: (data) =>
{
intent: 'CAPTURE',
purchase_units: [
{
amount: {
currency_code: this.currency,
value: this.price,
breakdown: {
item_total: {
currency_code: this.currency,
value: this.price,
},
},
},
items: [
{
name: this.vendor,
quantity: this.quantity,
category: this.productName,
unit_amount: {
currency_code: this.currency,
value: this.price,
},
},
],
},
],
},
advanced: {
commit: 'true',
},
style: {
label: 'paypal',
layout: 'horizontal',
color: 'black',
tagline: '',
},
onApprove: (data, actions) => {
console.log(
'onApprove - transaction was approved, but not authorized',
data,
actions
);
actions.order.get().then((details) => {
console.log(
'onApprove - you can get full order details inside onApprove: ',
details
);
});
},
onClientAuthorization: (data) => {
console.log(
'onClientAuthorization - you should probably inform your server about completed transaction at this point',
data
);
this.paymentDone.emit(true);
},
}
amount always stays same to 0.01 on checkout no matter whatever I do, I've tried putting static values but all in vain, I am using latest version 8.0.0
The text was updated successfully, but these errors were encountered: