Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

checkout-session not created - Code 422 #463

Closed
dimitrihartt opened this issue Feb 7, 2018 · 1 comment
Closed

checkout-session not created - Code 422 #463

dimitrihartt opened this issue Feb 7, 2018 · 1 comment

Comments

@dimitrihartt
Copy link

dimitrihartt commented Feb 7, 2018

General information

  • SDK/Library version: 2.15.3
  • Environment: Sandbox
  • PayPal-Debug-ID values: b49d0689574e8
  • Android Version and Device: W/paypal.sdk: PayPalService created. API:22 PayPalSDK/PayPal-Android-SDK 2.15.3 (Android 5.1.1; Sony D2403; )

Issue description

This happens when trying to buy sample item and with a BR paypal account. If via Card the payment is processed. It does not happen when using another country's Paypal account.
W/paypal.sdk: fc SN:12 PayPal Debug-ID: b49d0689574e8 [sandbox, 2.15.3;release]
E/paypal.sdk: request failure with http statusCode:422,exception:
E/paypal.sdk: request failed with server response:{"name":"PAYMENT_CREATION_ERROR","debug_id":"b49d0689574e8","message":"checkout-session not created","information_link":"https://developer.paypal.com/docs/api/#PAYMENT_CREATION_ERROR"}
E/paypal.sdk: PAYMENT_CREATION_ERROR

  1. App created using client id of the facilitator account
  2. Using buyer sandbox account to buy the item (it has credit card and balance)
  3. Tested using different amounts 5 to 200
  4. Account in Brazil and processing in usd.

Thanks in advance.

---------------- here is the logcat log also:
_02-07 11:00:56.685 1395-21887/com.myapp.app V/FA: Recording user engagement, ms: 4822
02-07 11:00:56.692 1395-1395/com.myapp.app V/FA: onActivityCreated
02-07 11:00:56.692 1395-21887/com.myapp.app V/FA: Activity paused, time: 56423044
02-07 11:00:56.696 1395-21887/com.myapp.app D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=4822, firebase_screen_class(_sc)=PaymentMethodActivity, firebase_screen_id(_si)=-2971940628786094354}]
02-07 11:00:56.733 2271-21889/? V/FA-SVC: Logging event: origin=auto,name=user_engagement(_e),params=Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=4822, firebase_screen_class(_sc)=PaymentMethodActivity, firebase_screen_id(_si)=-2971940628786094354}]
02-07 11:00:56.738 2271-21889/? V/FA-SVC: Saving event, name, data size: user_engagement(_e), 77
02-07 11:00:56.739 2271-21889/? V/FA-SVC: Event recorded: Event{appId='com.myapp.app', name='user_engagement(_e)', params=Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=4822, firebase_screen_class(_sc)=PaymentMethodActivity, firebase_screen_id(_si)=-2971940628786094354}]}
02-07 11:00:56.741 2271-21889/? V/FA-SVC: Upload scheduled in approximately ms: 1738464
02-07 11:00:56.746 2271-21889/? V/FA-SVC: Scheduling upload with GcmTaskService
02-07 11:00:56.746 2271-21889/? V/FA-SVC: Scheduling task with Gcm. Time1738464
02-07 11:00:56.750 1395-21887/com.myapp.app V/FA: Activity resumed, time: 56423110
02-07 11:00:56.768 1395-21887/com.myapp.app D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=PaymentMethodActivity, firebase_previous_id(_pi)=-2971940628786094354, firebase_screen_class(_sc)=PaymentConfirmActivity, firebase_screen_id(_si)=-2971940628786094345}]
02-07 11:00:56.769 2271-21889/? V/FA-SVC: Background event processing time, ms: 36
02-07 11:00:56.827 2271-21889/? V/FA-SVC: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=PaymentMethodActivity, firebase_previous_id(_pi)=-2971940628786094354, firebase_screen_class(_sc)=PaymentConfirmActivity, firebase_screen_id(_si)=-2971940628786094345}]
02-07 11:00:56.836 2271-21889/? V/FA-SVC: Saving event, name, data size: screen_view(_vs), 116
02-07 11:00:56.845 2271-21889/? V/FA-SVC: Event recorded: Event{appId='com.myapp.app', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=PaymentMethodActivity, firebase_previous_id(_pi)=-2971940628786094354, firebase_screen_class(_sc)=PaymentConfirmActivity, firebase_screen_id(si)=-2971940628786094345}]}
02-07 11:00:56.854 2271-21889/? V/FA-SVC: Upload scheduled in approximately ms: 1738351
02-07 11:00:56.859 2271-21889/? V/FA-SVC: Scheduling upload with GcmTaskService
02-07 11:00:56.859 2271-21889/? V/FA-SVC: Scheduling task with Gcm. Time1738351
02-07 11:00:56.863 2271-21889/? V/FA-SVC: Background event processing time, ms: 36
02-07 11:01:01.827 1395-21887/com.myapp.app V/FA: Inactivity, disconnecting from the service

@dimitrihartt
Copy link
Author

I have called the Support Brazil. It looks like there is no way to do it using the SDK Paypal Android.
They said there is Express Check Out instead.
Another way is to Register with Merchant CNPJ account with them, and then have an embarked version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant