Sandbox Test Payments do not show up in Account Notifications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
for a scientific conference I want to set up a very simple payment option via PayPal. I test it with sandbox accounts. Everything seems to work perfectly. However, I do not find any record of my test transactions in the notifications of my sendbox accounts (neither payer nor payee). Below is what I did.
Your help would be highly appreciated.
Best
Gunther Maier
################################################################
Based on the "onApprove" call of the browser, I call a Perl-Script on the server that calls api.sandbox.paypal.com using CURL (with <CLIENT> and <SECRET> replaced by their respective strings):
curl
-v https://api.sandbox.paypal.com/v1/oauth2/token/
-H "Accept: application/json"
-H "Accept-Language: en_US"
-u "<CLIENT>:<SECRET>"
-d "grant_type=client_credentials"
This is the result I get (<ACCESS_TOKEN> replaced):
{
"scope":"https://uri.paypal.com/services/invoicing https://uri.paypal.com/services/disputes/read-buyer https://uri.paypal.com/services/payments/realtimepayment https://uri.paypal.com/services/disputes/update-seller https://uri.paypal.com/services/payments/payment/authcapture openid https://uri.paypal.com/services/disputes/read-seller https://uri.paypal.com/services/payments/refund https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/payments/.* https://uri.paypal.com/payments/payouts https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks",
"access_token":"<ACCESS_TOKEN>",
"token_type":"Bearer",
"app_id":"APP-80W284485P519543T",
"expires_in":31960,
"nonce":"2019-03-06T15:22:01ZEA2RGm__isstkQAFtQKl61axU2tpY5tyV-GWPrmfMPc"
}
Using the <ACCESS_TOKEN> I generate another CURL call:
curl
-v https://api.sandbox.paypal.com/v2/checkout/orders/4WU5732062172470C
-H "Accept: application/json"
-H "Authorization: Bearer <ACCESS_TOKEN>"
This is the result I get:
{
"id":"4WU5732062172470C",
"intent":"CAPTURE",
"purchase_units":[
{
"reference_id":"default",
"amount":{
"currency_code":"EUR",
"value":"2.00"
},
"payee":{
"email_address":"facilitator email address",
"merchant_id":"LMYGFZBKKE44C"
},
"shipping":{
"name":{
"full_name":"Gunther Maier Buyer"
},
"address":{
"address_line_1":"Weingartenweg 1",
"address_line_2":"Rafing",
"admin_area_2":"PULKAU",
"postal_code":"3741",
"country_code":"AT"
}
}
}
],
"payer":{
"name":{
"given_name":"Gunther",
"surname":"Maier Buyer"
},
"email_address":"buyer email address",
"payer_id":"Y56T6CKX2W2PC",
"address":{
"country_code":"AT"
}
},
"create_time":"2019-03-06T15:28:48Z",
"links":[
{
"href":"https://api.sandbox.paypal.com/v2/checkout/orders/4WU5732062172470C",
"rel":"self",
"method":"GET"
},
{
"href":"https://api.sandbox.paypal.com/v2/checkout/orders/4WU5732062172470C/capture",
"rel":"capture",
"method":"POST"
}
],
"status":"APPROVED"
}
As you can seen, I did this test transaction on 2019-03-06. In my sandbox accounts, however, I do not see any transactions on 2019-03-06.
- Labels:
-
API
-
Carts
-
Reference Transactions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my case, the buyers activity shows that the payments are made to a business (Alfredo Barco's Test Store) that I've not setup.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- How can I integrate PayPal to enable direct tipping features between users on a content platform? in REST APIs
- Recurring payment with credit card in REST APIs
- Need help to integrate PayPal Checkout Advanced (PPCP) with WooCommerce in PayPal Upgrade Community
- Handling payouts that are being on hold/blocked in REST APIs
- My webhook stopped working 2 weeks ago in REST APIs