Android : Paypal sdk- INSTRUMENT_DECLINE ERROR

on Monday, September 29, 2014


I integrate paypal android sdk into my android aps as according to the


github.com/paypal/PayPal-Android-SDK/blob/master/docs/single_payment.md


I created paypal aps through


developer.paypal.com/webapps/developer/applications/myapps which provides me sandbox client id and live client id.


Everything works fine, when



private static PayPalConfiguration config = new PayPalConfiguration()

// Start with mock environment. When ready, switch to sandbox (ENVIRONMENT_SANDBOX)
// or live (ENVIRONMENT_PRODUCTION)
.environment(PayPalConfiguration.ENVIRONMENT_SANDBOX)
.clientId("<sandbox cliend id>");


But when I switch to PaypalConfiguration.ENVIRONMENT_PRODUCTION and clientId to live client id , it gives me error :



{"name":"INSTRUMENT_DECLINED","message":"The instrument presented was either declined by the processor or bank, or it can't be used for this payment.","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#INSTRUMENT_DECLINED","debug_id":"bd919720c3913"}
09-29 09:53:35.107: E/PayPalService(4811): INSTRUMENT_DECLINED


I did not find the information about the error in https://developer.paypal.com/webapps/developer/docs/api/#INSTRUMENT_DECLINED as well.


0 comments:

Post a Comment