paypal / paypal-ios

One merchant integration point for all of PayPal's services
Apache License 2.0
59 stars 27 forks source link

Add additional billing information to card vaulting #219

Open quintonpryce opened 11 months ago

quintonpryce commented 11 months ago

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.

stephenhyde commented 11 months ago

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

scannillo commented 10 months ago

👋 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!