paypal / paypal-here-sdk-android-distribution

Add credit card (swipe & key-in) capabilities to your Android app
Other
84 stars 95 forks source link

Sandbox Sample App gives "no txnAuthCode is returned" error. #178

Open apkelly opened 4 years ago

apkelly commented 4 years ago

When trying to run the Sample App on my Pixel 3, and having it paired with a PayPal Here 310 chip and magstripe reader. No matter what amount I enter for the transaction I get the following error after entering the PIN.

"no txnAuthCode is returned&PPAPI RC: 10764&Pimp RC: 4007&AuthCode: &TxnHandle: 5HT326033A082101X&ResponseCode: PPER"

I've selected the sandbox environment when setting up the sample app.

I'm wondering if it relates to this error message seen in the auth response... "Invalid response during token refresh with first party credentials"

See the full json below.

Merchant : {"_events":{},"_eventsCount":0,"api":{"env":"sandbox","resolvers":{},"cbs":[],"at":"A23AAH-XHP4sV1c_j9gU9Oe2nH4TFqOq7gGBiZkGxVES5VYUGI2coYDzad-vACOtcXMI7PVrXmTm9PkPW0c5te6RmAYTn_DMg","refreshUrl":"http://pph-retail-sdk-sample.herokuapp.com/refresh?&token=cLJSzrQM8zWYvcZDg3YrSqA2j84S9E3ycpgMvVNuYVTiNOYCSHvtOLnVU8ylWVz2GFzpm8rO4RSvGkt7Nkj9PB0kHk9IZZngX%2F22RxhJrkD7KLwbWY8aDgAqlUEzdr19bym8%2B0muC7vzY1NQrbRBS2rsvyLwXKD1ZsS7EK5hBa9UfSUtEUugX5fg8Jyb65XN0h1JLigaBwAhN0wg6pzuwSnAkfQboSB1lhVfpmdDBqmrXta6eczE14m8i3B2y8zv0PKMX0%2Btx9mK8Hicic3UlLS9Gqjk0le0BDrj8xd5RC6uH2r0","app":null,"rt":null,"exp":28880,"tokenExpirationHandler":null,"refreshMethods":[{"requestBody":{"url":"http://pph-retail-sdk-sample.herokuapp.com/refresh?&token=cLJSzrQM8zWYvcZDg3YrSqA2j84S9E3ycpgMvVNuYVTiNOYCSHvtOLnVU8ylWVz2GFzpm8rO4RSvGkt7Nkj9PB0kHk9IZZngX%2F22RxhJrkD7KLwbWY8aDgAqlUEzdr19bym8%2B0muC7vzY1NQrbRBS2rsvyLwXKD1ZsS7EK5hBa9UfSUtEUugX5fg8Jyb65XN0h1JLigaBwAhN0wg6pzuwSnAkfQboSB1lhVfpmdDBqmrXta6eczE14m8i3B2y8zv0PKMX0%2Btx9mK8Hicic3UlLS9Gqjk0le0BDrj8xd5RC6uH2r0","format":"json"},"logMessage":"Attempting an AccessToken refresh from RefreshURL","errorDeveloperMessage":"Invalid response during token refresh with refreshUrl"},{"requestBody":{"url":"https://api.sandbox.paypal.com/v1/oauth2/token","headers":{"Authorization":"Basic null","Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache","Accept":"application/json"},"method":"POST","format":"json","body":"grant_type=client_credentials","timeout":15000},"logMessage":"Attempting an AccessToken refresh with First Party Credentials","errorDeveloperMessage":"Invalid response during token refresh with first party credentials"}]},"userInfo":{"user_id":"https://www.paypal.com/webapps/auth/identity/user/y1MAkuqUGTIuTZ2a9SeUs9MnsX51LXevCO0JS-q3HPc","name":"John Doe","email":"sb-alcw71469863@business.example.com","verified":"true","birthday":"1975-10-10","zoneinfo":"Australia/Sydney","locale":"en_AU","phone_number":"0368888925","payer_id":"4Y5LQR6KPHJ9N","address":{"street_address":"1 Cheeseman Ave - East","locality":"Melbourne","region":"Victoria","postal_code":"3001","country":"AU"},"language":"en_AU","account_type":"BUSINESS","account_creation_date":"2020-04-15","age_range":"41-45","verified_account":"true","birthdate":"1975-10-10","businessName":"John Doe's Test Store","businessCategory":"Automotive","businessSubCategory":"AUTOMOTIVE-Autos","email_verified":"true"},"status":{"status":"ready","paymentTypes":["tab","key","chip","contactless_chip","contactless_msd"],"cardSettings":{"minimum":"1","maximum":"12500","signatureRequiredAbove":"0","unsupportedCardTypes":["discover"],"authExpiryPeriod":"2592000","authHonorPeriod":"259200","storedPaymentEligibility":true,"storedPaymentExpiration":"4320","storedPaymentPublicKey":"....."