Paypal V2 API SCA PSD2 Integration

zaiyan
New Community Member

Hello,

 

I am trying to integrate SCA PSD2 as outlined here: https://developer.paypal.com/docs/checkout/advanced/customize/3d-secure/api/

Here are the steps I'm following:

1. Send POST request to v2/checkout/orders

Here's my payload:

{
  "intent":"CAPTURE",
  "payer":
  {
    "name":
    {
      "given_name":"BOB",
      "surname":"SMITH"
    },
    "email_address":"bob @ domain.com",
    "phone_number":
    {
      "country_code":"+1",
      "national_number":<span[Removed. Phone #s not permitted]
    },
    "address":
    {
      "address_line_1":"[removed]",
      "admin_area_2":"TORONTO",
      "admin_area_1":"ON",
      "postal_code":"[removed]",
      "country_code":"GB"
    }
  },
  "purchase_units":
  [
    {
      "amount":
      {
        "currency_code":"GBP",
        "value":"900.00"
      }
    }
  ],
  "application_context": {
    "stored_payment_source":{
      "payment_initiator""CUSTOMER",
      "payment_type""ONE_TIME",
      "usage""DERIVED"
    }
  },
  "payment_source": {
    "card": {
      "number""[removed]",
      "expiry""2023-05",
      "security_code""[removed]",
      "name""John Doe",
      "billing_address":{
        "address_line_1""[removed]",
        "address_line_2""17.3.160",
        "admin_area_1""GB",
        "admin_area_2""San Jose",
        "postal_code""[removed]",
        "country_code""GB"
      },
      "attributes": {
            "verification": {
            "method""SCA_ALWAYS"
        }
      }
    }
  }
}
 
2. As a response I receive the HATEOS link "rel": "payer-action"
3. Redirect the buyer to that link
4. Since I'm using sandbox, it redirects the user to that link and then brings me back to the return URL with this error payload
Array ( [error] => error [error_description] => error [liability_shift] => NO )
 
Not sure what I'm doing wrong here as there's very little information in the documentation. Can someone guide please?
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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