Android paypal capture and send specified details to the backend -
i implementing android paypal app, right i'm able send paymentid , approval on backend, how send amount
backend? below json response.
{ "amount": "0.5", "currency_code": "myr", "short_description": "credit top-up", "intent": "sale" } { "client": { "environment": "sandbox", "paypal_sdk_version": "2.15.3", "platform": "android", "product_name": "paypal-android-sdk" }, "response": { "create_time": "2017-08-20t10:25:11z", "id": "pay-5mu049465a842625glgmwg6y", "intent": "sale", "state": "approved" }, "response_type": "payment" }
i can capture , send id
, state
backend, couldn't capture amount
, how able capture it? appreciated!
according paypal documentation response below:- more information go paypal reference doc
{ "client":{ "environment":"sandbox", "paypal_sdk_version":"2.0.0", "platform":"ios", "product_name":"paypal ios sdk;" }, "response":{ "create_time":"2014-02-12t22:29:49z", "id":"pay-564191241m8701234kl57lxi", "intent":"sale", "state":"approved" }, "response_type":"payment" }
you won't amount on response can amount value client side , send own server verify payment.(you have amount value passed paypal).
Comments
Post a Comment