cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Button Error - couldn't link card

Options
avallon
New Community Member
Posted on

Hi,

 

I'm having issue integration smart payent buttons on my site.
I managed to reproduce it locally with connection with sandbox account.

 

I tried to search for errors related to the error code that I'm getting back (

CREATE_CARD_ACCOUNT_CANDIDATE_VALIDATION_ERROR) with no success.
 
Below are the details of the request and the response back.

 

Request:

 

POST /graphql?OnboardGuestMutation HTTP/1.1
Host: www.sandbox.paypal.com
Connection: keep-alive
Content-Length: 3698
Pragma: no-cache
Cache-Control: no-cache
sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"
x-locale: en_AU
paypal-client-metadata-id: 89N067525V330600H
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrom[Removed. Phone #s not permitted]Safari/537.36
paypal-client-context: 89N067525V330600H
accept: */*
content-type: application/json
x-country: AU
x-app-name: checkoutuinodeweb_weasley
Origin: https://www.sandbox.paypal.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://www.sandbox.paypal.com/checkoutweb/signup?sessionID=2c57754b02_mdc6ndk6mja&buttonSessionID=ac856b24b1_mdg6mdu6mde&fundingSource=paypal&buyerCountry=AU&locale.x=pt_BR&commit=true&clientID=AZDxjDScFpQtjWTOUtWKbyN_bDt4OgqaF4eYXlewfBP4-8aqX3PiV8e1GWU6liB2CUXlkA59kJXE7M6R&env=sandbox&sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWwuY29tL3Nkay9qcz9jbGllbnQtaWQ9c2ImY3VycmVuY3k9QVVEJmNvbW1pdD10cnVlIiwiYXR0cnMiOnsiZGF0YS11aWQiOiJlNjEwNTE3N2M1X21kZzZtZHU2bWRlIn19&xcomponent=1&version=5.0.201&token=89N067525V330600H&country.x=BR&locale.x=pt_BR&country.x=BR
Accept-Encoding: gzip, deflate, br
Accept-Language: en,pt-BR;q=0.9,pt;q=0.8,en-AU;q=0.7,es;q=0.6
Cookie: _ga=GA1.2.1875569548.1535294306; KHcl0EuY7AKSMgfvHl7J5E7hPtK=voFDc5o6JHQKvLdhw6bAG0eWm1VyFOafQp7FAaVT8AYj35AlOZFycAgmB_cesaS0dYGhIR6TbDvK4eTG; cookie_check=yes; s_pers=%20s_fid%3D4E771D2F7FFFC682-1C3FAFD[Removed. Phone #s not permitted]Amysavedbuttons%7C1585716201326%3B%20gpv_events%3Dno%2520value%7C1585716201329%3B; ui_experience=login_type%3DEMAIL_PASSWORD%26home%3D2%26d_id%3D446a5a49b9fa414d[Removed. Phone #s not permitted].1612940028; cookie_prefs=T%3D1%2CP%3D1%2CF%3D1%2Ctype%3Dexplicit_banner; X-PP-ADS=AToBIhOEXkEC60fcwHKrlwJFL0ZqDg07AWGxH2B8XtQlsC9d9tIIbYa2b95eOwH3jyNgPMTgNpS18zDNplcTHDDfXw; id_token=; AV894Kt2TSumQQrJwe-8mzmyREO=S23AAPgetVpkyc5HcnrrWXxnSrx5CR0ifG3uF2Qu4FRqLRKcpkAoIfbo90EHXZ1dAjj7XbNZpIY-j0vvtH8oxoUV8SQqoy3GQ; DPz73K5mY4nlBaZpzRkjI3ZzAY3QMmrP=S23AAPgetVpkyc5HcnrrWXxnSrx5CR0ifG3uF2Qu4FRqLRKcpkAoIfbo90EHXZ1dAjj7XbNZpIY-j0vvtH8oxoUV8SQqoy3GQ; ts_c=vr%3Df66dd3a316d0a3112a80e9d8ffffd27a%26vt%3D8ffd89311770a78873ec79d8fc6f4deb; login_email=accounts%40sevenmigration.com.au; fn_dt=7594[Removed. Phone #s not permitted]IA3gUvfFRtgb7JE6S.XQc0pqFDcq0U2nmLaFMwObPUY%2B6uY40gGf7AjdmkC1w; rmuc=; SEGM=bRdV1vB0ebq9RKdAb3xSHowCi6QnnlCiDOLNk8i1mAuLl1vTbzHQwWajSsMe8mvoWiJtY1GnpzN4Y-sixGy7BQ; l7_az=dcg13.slc; _gat=1; x-pp-p=AAKI91mehtM-SVEpppAPQa9j2xGL55GgMrGbd3ocmpI-gdPetPYZWYlRKmnwQ9kehdnf6ngztcXbmK5zFREcC2vKcIwpgi.KfyYAi8HJI8BZ3.cX3OcoVGjKR2WHwG5EJY8npTwfJPsAkkmIIHNHhwo4Fq5v3QEAf2BKUkJIYpC-fDNBVs0MNMxkG2JPAkMA8K0-h9QmMulawJmI-WtKtfa-9U4vr-Mm3uvCRReW2pLyoYLQCD.d88fo04QsILeb.Cc9.JTEvjufI0lyFOio6lcX9aJr-on273Gfsj1h; LANG=pt_BR%3BBR; x-csrf-jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6InAzeHBsamJrUkFfY0xFdTJiT2RUakRSSmg0WG1CeFVTd3dwR2Y2Q0JLUjZ0WmlBTWR3cWx1QVJHYWdmQzU3bUhiTlZHRnM5V3hnQXVOd1Rkbk5LZWVPbUx4Vzdqa1EyVUZGTDJ0am1ZOHJsRWsxSDl4ZF9pVmpLN0VWY0Z6bmxPSnBQd2tsVEVGVlZMb3c5WEFfNmJ6TEZFbUlBVWd6TUNONnN2Q01wbFduNkwyZEwyakpkcmdTTk5QZGkiLCJpYXQiOjE2MTMwMzE4MTAsImV4cCI6MTYxMzAzNTQxMH0.Kzvozlu9jpyPB5cnNML81MV9cXwqOKk6UVObuS_cjls; tcs=main%3Axo%3Alite%7Ccss-ltr-11kjtf4-button-Submit[Removed. Phone #s not permitted]112a80e9d8ffffd27a%26vt%3D8ffd89311770a78873ec79d8fc6f4deb%26vtyp%3Dreturn; x-pp-s=eyJ0IjoiMTYxMzAzMTg3MjA5OSIsImwiOiIwIiwibSI6IjAifQ; tsrce=graphqlnodeweb

 

 

Raw Data:

 

{
  "operationName": "OnboardGuestMutation",
  "variables": {
    "card": { "cardNumber": "4111111111111111", "expirationDate": "05/2025", "securityCode": "123", "type": "VISA" },
    "country": "AU",
    "email": "[EMAIL REMOVED DUE TO POST POLICY]",
    "firstName": "John",
    "lastName": "Wick",
    "phone": { "countryCode": "61", "number": "0455666777", "type": "MOBILE" },
    "supportedThreeDsExperiences": ["IFRAME"],
    "token": "89N067525V330600H",
    "billingAddress": {
      "line1": "333 carnarvon st",
      "city": "east victoria park",
      "state": "WA",
      "postalCode": "6101",
      "accountQuality": { "autoCompleteType": "MANUAL", "isUserModified": true, "twoFactorPhoneVerificationId": "" },
      "country": "AU",
      "familyName": "Wick",
      "givenName": "John"
    },
    "shippingAddress": {
      "line1": "333 carnarvon st",
      "city": "east victoria park",
      "state": "WA",
      "postalCode": "6101",
      "accountQuality": { "autoCompleteType": "MANUAL", "isUserModified": true, "twoFactorPhoneVerificationId": "" },
      "country": "AU",
      "familyName": "Wick",
      "givenName": "John"
    }
  },
  "query": "mutation OnboardGuestMutation($bank: BankAccountInput, $billingAddress: AddressInput, $card: CardInput, $country: CountryCodes, $currencyConversionType: CheckoutCurrencyConversionType, $dateOfBirth: DateOfBirth, $email: String, $firstName: String\u0021, $lastName: String\u0021, $phone: PhoneInput, $shareAddressWithDonatee: Boolean, $shippingAddress: AddressInput, $supportedThreeDsExperiences: [ThreeDSPaymentExperience], $token: String\u0021) {\\n  onboardAccount: onboardGuest(bank: $bank, billingAddress: $billingAddress, card: $card, country: $country, currencyConversionType: $currencyConversionType, dateOfBirth: $dateOfBirth, email: $email, firstName: $firstName, lastName: $lastName, phone: $phone, shareAddressWithDonatee: $shareAddressWithDonatee, shippingAddress: $shippingAddress, token: $token) {\\n    buyer {\\n      auth {\\n        accessToken\\n        __typename\\n      }\\n      userId\\n      __typename\\n    }\\n    flags {\\n      is3DSecureRequired\\n      __typename\\n    }\\n    ...fundingOptions\\n    paymentContingencies {\\n      threeDomainSecure(experiences: $supportedThreeDsExperiences) {\\n        status\\n        redirectUrl {\\n          href\\n          __typename\\n        }\\n        method\\n        parameter\\n        experience\\n        requestParams {\\n          key\\n          value\\n          __typename\\n        }\\n        __typename\\n      }\\n      ...threeDSContingencyData\\n      __typename\\n    }\\n    __typename\\n  }\\n}\\n\\nfragment fundingOptions on CheckoutSession {\\n  fundingOptions {\\n    allPlans {\\n      fundingSources {\\n        fundingInstrument {\\n          id\\n          __typename\\n        }\\n        amount {\\n          currencyCode\\n          currencyValue\\n          __typename\\n        }\\n        __typename\\n      }\\n      __typename\\n    }\\n    __typename\\n  }\\n  __typename\\n}\\n\\nfragment threeDSContingencyData on PaymentContingencies {\\n  threeDSContingencyData {\\n    name\\n    causeName\\n    resolution {\\n      type\\n      resolutionName\\n      paymentCard {\\n        billingAddress {\\n          line1\\n          line2\\n          city\\n          state\\n          country\\n          postalCode\\n          __typename\\n        }\\n        expireYear\\n        expireMonth\\n        currencyCode\\n        cardProductClass\\n        id\\n        encryptedNumber\\n        type\\n        number\\n        bankIdentificationNumber\\n        __typename\\n      }\\n      contingencyContext {\\n        deviceDataCollectionUrl {\\n          href\\n          __typename\\n        }\\n        jwtSpecification {\\n          jwtDuration\\n          jwtIssuer\\n          jwtOrgUnitId\\n          type\\n          __typename\\n        }\\n        reason\\n        referenceId\\n        source\\n        __typename\\n      }\\n      __typename\\n    }\\n    __typename\\n  }\\n  __typename\\n}\\n"
}

 

 

Response:

 

{
  "errors": [
    {
      "message": "CREATE_CARD_ACCOUNT_CANDIDATE_VALIDATION_ERROR",
      "path": ["onboardAccount"],
      "checkpoints": ["validate.fi"],
      "meta": {},
      "contingency": true,
      "statusCode": 200
    }
  ],
  "data": { "onboardAccount": null },
  "extensions": {
    "tracing": {
      "version": 1,
      "startTime": "2021-02-11T08:24:32.587Z",
      "endTime": "2021-02-11T08:24:48.253Z",
      "duration": 15666575375,
      "execution": {
        "resolvers": [
          {
            "path": ["onboardAccount"],
            "parentType": "Mutation",
            "fieldName": "onboardGuest",
            "returnType": "CheckoutSession",
            "startOffset": 2657535,
            "duration": 15662689827
          }
        ]
      }
    },
    "correlationId": "77b700d311b7d"
  }
}

 

 

 

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.