Paypal Buy Now Button Pay Again
I ran into this issue when I entered trash data. Information technology complains about starting time/last name, but the UI shows
In the console I meet {message: "OAS_VALIDATION_ERROR", stack: "Error: OAS_VALIDATION_ERROR↵ at guestCheckout (…south/dist/src/graphql/information/Guest/checkout.js:160:33)"}
In the network asking I see POST https://www.sandbox.paypal.com/graphql
with the request torso
{ "query": "\northward mutation payWithCard(\n $token: String!\n $card: CardInput!\northward $phoneNumber: String\n $firstName: String\n $lastName: String\n $shippingAddress: AddressInput\north $billingAddress: AddressInput\due north $email: String\n $currencyConversionType: CheckoutCurrencyConversionType\northward ) {\n approveGuestPaymentWithCreditCard(\n token: $token\northward card: $card\due north phoneNumber: $phoneNumber\n firstName: $firstName\n lastName: $lastName\northward electronic mail: $email\due north shippingAddress: $shippingAddress\n billingAddress: $billingAddress\n currencyConversionType: $currencyConversionType\n ) {\n flags {\northward is3DSecureRequired\n }\n cart {\northward intent\northward cartId\due north heir-apparent {\n userId\northward auth {\n accessToken\n }\n }\n returnUrl {\north href\n }\n }\n paymentContingencies {\n threeDomainSecure {\due north condition\north method\north redirectUrl {\n href\n }\due north parameter\n }\n }\n }\northward }\due north ", "variables": { "token": "redacted", "menu": { "cardNumber": "6011828927350072", "expirationDate": "12/2021", "postalCode": "12345", "securityCode": "123" }, "phoneNumber": "7784443334", "firstName": "asdf", "lastName": "asdf", "billingAddress": { "givenName": "asdf", "familyName": "asdf", "line1": "asdf", "line2": "asdf", "city": "asdf", "land": "Equally", "postalCode": "12345", "country": "U.s." }, "shippingAddress": { "givenName": "asdf", "familyName": "asdf", "line1": "asdf", "line2": "asdf", "city": "asdf", "state": "AS", "postalCode": "12345", "land": "The states" }, "e-mail": "asdf@asdf.def", "currencyConversionType": "PAYPAL" }, "operationName": null }
Here's the response body I got
{ "errors": [ { "data": [ { "fields": [ "user.first_name" ], "lawmaking": "INVALID_FIRST_NAME" }, { "fields": [ "user.last_name" ], "lawmaking": "INVALID_LAST_NAME" } ], "message": "OAS_VALIDATION_ERROR", "path": [ "approveGuestPaymentWithCreditCard" ], "stack": "Error: OAS_VALIDATION_ERROR\n at guestCheckout (/dependencies/xobuyernodeserv/cronus/scripts/dist/src/graphql/information/Invitee/checkout.js:160:33)", "checkpoints": [ "onboard_user" ], "meta": {}, "contingency": true, "statusCode": 200 } ], "data": { "approveGuestPaymentWithCreditCard": cypher }, "extensions": { "tracing": { "version": 1, "startTime": "2020-10-17T01:ten:59.213Z", "endTime": "2020-x-17T01:10:59.806Z", "elapsing": 593510722, "execution": { "resolvers": [ { "path": [ "approveGuestPaymentWithCreditCard" ], "parentType": "Mutation", "fieldName": "approveGuestPaymentWithCreditCard", "returnType": "CheckoutSession", "startOffset": 5811476, "elapsing": 584515554 } ] } }, "correlationId": "747aebeb7afec" } }
Clearly the response says outset/concluding name are bad. The UI should non crash in face of that.
hornerachargeturry.blogspot.com
Source: https://github.com/paypal/paypal-checkout-components/issues/1224
0 Response to "Paypal Buy Now Button Pay Again"
Enregistrer un commentaire