"details.seller_receivable_breakdown.gross_amount" says it is undefined
bthornic
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Aug-03-2020
02:11 AM
Hi,
I'm able to get the payer's name and email fine using this code:
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
alert(details.payer.name.given_name)
alert(details.payer.email_address)
...
However, when I try to get the gross amount of the order using the following, it says it is undefined in the browser:
alert(details.seller_receivable_breakdown.gross_amount)
I'm in sandbox mode, btw.
Thanks!
Labels:
- Labels:
-
API
-
Payouts
-
Reference Transactions
-
REST
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
- Payment not automatically being captured, funds not transferred in Sandbox Environment
- 3D Secure not work with advanced card integration on sandbox in Sandbox Environment
- Sandbox business account Upgrade to Pro Error in Sandbox Environment
- Unable to retrieve any (API Credentials > REST API apps > Secret) app secrets in REST APIs
- Unable to get Client Secret in the Developer Sandbox. in Sandbox Environment