Happy Business Starts Here

Can not create new payment method

Highlighted
New Student

Can not create new payment method

Hi Zuora support team,

I'm stuck on this step, i would like to add a new payment method for my customer 
here is json: 

{
      "cardHolderInfo": {
        "addressLine1": "77 Fallon Glen",
        "addressLine2": "",
        "zipCode": "94020",
        "state": "California",
        "phone": "4155551234",
        "country": "USA",
        "cardHolderName": "Bill Thiebault",
        "city": "Fremont",
        "email": "bill@testaddress.com"
      },
      "expirationMonth": "10",
      "accountKey": "A00000411",
      "type": "CreditCard",
      "cardType": "Discover",
      "expirationYear": "2022",
      "cardNumber": "1111222233334444",
      "securityCode": "123"
    }

and curl below:

curl -X POST -H "Authorization: Bearer <MY TOKEN>" -H "Content-Type: application/json" -d '<JSON STRING ABOVE>' "https://rest.apisandbox.zuora.com/v1/payment-methods"

here is result below:

array (size=3)
  'success' => boolean false
  'processId' => string '492D1A0E4DF07A35' (length=16)
  'reasons' => 
    array (size=1)
      0 => 
        array (size=2)
          'code' => int 52300030
          'message' => string 'Error occurred while processing payment method.' 

Please help me on this issue, i've spent whole 2 days on it.

Thank you so much.

Khoa Pham

2 REPLIES 2
Highlighted
New Student

Re: Can not create new payment method

I solved mine by using sample credit cards allowed by team on that env

Highlighted
Partner

Re: Can not create new payment method

For Discover card, try this test card number: 6011111111111117

Frontera Consulting
Oracle, Salesforce and Zuora Consultants