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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -