Paypal API v2 Custom tax when create order
Somesa
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jul-12-2020
10:08 AM
Hello, im using the paypal v2 api, i want to add each payment a fixed tax of 3.5€ I've searched in the documentation then I did this but it does not work, can you help me?
return actions.order.create({
purchase_units: [{
amount: {
value: '{{ $total + 3.5 }}'
},
items: [
{
name: '{{ $fullname }}',
unit_amount: {
value: '{{ $total }}'
},
tax: {
value: '3.5'
}
}
],
tax_total: {
value: '3.5'
}
}],
application_context: {
shipping_preference: 'NO_SHIPPING'
}
});
Thank you
Labels:
- Labels:
-
Making a payment
-
Payment methods
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Managing 2 different businesses under same business account in My Account Archives
- How Can I Make Multiple Payment Buttons (Subscription and Checkout) Work on One Page, Please? in Payments Archives
- Does Paypal.me work if my customers have a Paypal China account? in Payments Archives
- Son's email address has been used to create a Paypal in Disputes and Limitations Archives
- Return Shipping refund question in Payments Archives