SEPA Direct Debit

Vaulting

A payment method represents transactable payment information such as a customer's authorization to charge a SEPA Direct Debit account. Payment methods belong to a customer, are securely stored in the Braintree Vault, and have a paymentMethodToken attribute that you can store on your servers (with reduced PCI compliance burden) and later use to create transactions.

CreateAnchorIcon

Use Payment Method: Create to create a payment method for an existing customer using a payment method nonce received from the client:
  1. PHP
$result = $gateway->paymentMethod()->create([
    'customerId' => '12345',
    'paymentMethodNonce' => nonceFromTheClient
]);
Alternatively, you can create a new customer with a payment method using Customer: Create with the paymentMethodNonce parameter.

Once successfully created, you can use Transaction: Sale with the paymentMethodToken parameter to create a transaction.

FindAnchorIcon

Use Payment Method: Find to find a payment method:
  1. PHP
$paymentMethod = $gateway->paymentMethod()->find('token');
If the payment method can't be found, you'll receive a Braintree\Exception\NotFound exception.

The return value of the Payment Method: Find call will be a PaymentMethod response object.

Note
The find action will also return a link to the mandate associated with the customer's payment method.

DeleteAnchorIcon

Use Payment Method: Delete to delete a payment method:
  1. PHP
$result = $gateway->paymentMethod()->delete('the_token');
$result->success; #=> true
If the payment method can't be found, you'll receive a Braintree\Exception\NotFound exception.
  1. PHP
$result = $gateway->paymentMethod()->delete('the_token');
$result->success; #=> true
If the payment method can't be found, you'll receive a Braintree\Exception\NotFound exception.

Note
The delete action will also revoke the mandate associated with the customer's payment method.

If you accept cookies, we’ll use them to improve and customize your experience and enable our partners to show you personalized PayPal ads when you visit other sites. Manage cookies and learn more