android - Paypal SDK sandbox mode return status "Created" -
i have integrated paypal in android app, user can pay either paypal or card. card payment working correctly when paying through paypal returns status "created" instead of "approved".
below response paypal -
{ "client": { "environment": "sandbox", "paypal_sdk_version": "x.xx.x", "platform": "android", "product_name": "paypal-android-sdk" }, "response": { "create_time": "2016-05-23t10:51:47z", "id": "pay-xxxxxxxxxxxxxxxxxxxxxxxx", "intent": "sale", "state": "created" }, "response_type": "payment"
}
why not returning status approved. wrong in code.
tia
for sandbox environment, need use credit card registered under sandbox personal account. check "profile" of paypal sandbox personal account , go "funding" tab test credit card. give "approved" result instead of "created".
Comments
Post a Comment