Reputation: 367
I have very little paypal experience, but am developing some mobile app backend using Flask.
I am using the v2 checkout API in order to pay a fixed amount in order for the user to have something, currently using sandbox accounts and sandbox client IDs.
I am calling the POST v2/checkout/orders
API endpoint to create an order, including the following in the payload
...
"application_context": {
"return_url": "http://127.0.0.1:5000/paypal/approve",
"cancel_url": "http://127.0.0.1:5000/paypal/cancelled"
}
...
That return_url is called with token=<ORDER_ID>&PayerID=<PAYER_ID>
parameters after the user approves the payment, and it calls the POST v2/checkout/orders/<ORDER_ID>/capture
API endpoint to capture the order.
After checking in my paypal developer dashboard, I have noted that the sandbox buyer account has its Paypal balance deduced of the amount, but the sandbox store owner (business account) doesn't have its Paypal balance added that amount.
After checking the notifications in the paypal developer dashboard, I have noted two notifications, one for the payer, and one for the payee:
And those are what I can see from the API calls menu in the paypal developer dashboard, both with OK status
So, my question would be, is there another API endpoint that needs to be called in order for the business account to get his money (and add it to its Paypal balance) or is the process of purchasing complete and the business account just has his money somewhere else?
Additional information:
Upvotes: 2
Views: 241
Reputation: 30467
Money is waiting for you
It looks like the payment is pending , log into https://www.sandbox.paypal.com with [email protected] within 30 days, and you can accept the payment (otherwise it will be automatically refunded)
If it's pending for currency reasons (e.g. you sent a payment in a currency the account did not hold), then once you open that new currency balance, payments won't be pending in the future
Upvotes: 2