Payment Methods
A payment method represents transactable payment information such as credit card details or a customer's authorization to charge a PayPal or Venmo account. Payment methods belong to a customer, are securely stored in the Braintree Vault, and have a attribute that you can store on your servers (with reduced PCI compliance burden) and later use to create transactions.
Create
Use Payment Method: Create to create a payment method for an existing customer using :
Alternatively, you can using Customer: Create with the parameter.
Once successfully created, you can use Transaction: Sale with the parameter to create a transaction.
Update
Use Payment Method: Update to update an existing payment method.
Make default
Use the option to set a payment method as the default for its customer:
Billing address
Update the billing address:
You can also omit the option to create a new billing address for just this payment method.
See the reference and . If you want to update both payment method and customer information together, use Customer: Update.
Find
Use Payment Method: Find to find a payment method:
The return value of the Payment Method: Find call will be a payment_method response object.
Delete
Use Payment Method: Delete to delete a payment method: