iOS-SDK icon indicating copy to clipboard operation
iOS-SDK copied to clipboard

Add additional billing information to card vaulting

Open quintonpryce opened this issue 2 years ago • 2 comments

When will there be support for billing information on the UpdateVaultSetupToken graphql POST request?

I have added encoding a "billingAddress" to UpdateVaultVariables.swift file with a postal code and country code which returned an error from https://www.sandbox.paypal.com/graphql?UpdateVaultSetupToken

{
  "query": "mutation UpdateVaultSetupToken($clientID: String!, $vaultSetupToken: String!, $paymentSource: PaymentSource) {\n    updateVaultSetupToken(\n        clientId: $clientID\n        vaultSetupToken: $vaultSetupToken\n        paymentSource: $paymentSource\n    ) {\n        id,\n        status,\n        links {\n            rel,\n            href\n        }\n    }\n}",
  "variables": {
    "paymentSource": {
      "card": {
        "securityCode": "802",
        "number": "4240320004218883",
        "expiry": "2026-09",
        "billingAddress": {
          "postalCode": "55555",
          "countryCode": "US"
        }
      },
      "vaultSetupToken": "1MB39316L3631624F",
      "clientID": "AYmwZtpV8XT-vjndqSOWIZRD_7Sxq9Am3n1mzX6A3HCk1LRDqok__2YyBx7-i2xBNrHh2gBTjwG1cVV8"
    }
  }
}

I can only assume this is a problem on the requester side and not the request side if all the docs hold to be true.

We like to do everything we can to mitigate fraud, and adding a billing address is one that I think will help.

Describe the solution you'd like.

Add SDK support for billing information.

quintonpryce avatar Nov 14 '23 17:11 quintonpryce

+1 for AVS checks. Not sure if we need a full billing check but at least the postal/zip code would be great!

stephenhyde avatar Nov 15 '23 01:11 stephenhyde

👋 Hello @quintonpryce - thank you for using the PayPal iOS SDK and for raising this request.

This is something we should be able to do. I've created an internal ticket for our product team to prioritize (DTPPCPSDK-1491 for internal tracking). We will keep you posted as it gets reviewed and prioritized!

scannillo avatar Nov 29 '23 20:11 scannillo