SEPA Direct Debit
Vaulting
Create
Use
Payment Method: Create
to create a payment method for an existing customer using
a payment method nonce received from the client:
- PHP
$result = $gateway->paymentMethod()->create([
'customerId' => '12345',
'paymentMethodNonce' => nonceFromTheClient
]);
Customer: Create
with the
paymentMethodNonce
parameter. Once successfully created, you can use
Transaction: Sale
with the
paymentMethodToken
parameter to create a transaction.
Find
Use
Payment Method: Find
to find a payment method:
- PHP
$paymentMethod = $gateway->paymentMethod()->find('token');
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.
Delete
Use
Payment Method: Delete
to delete a payment method:
- PHP
$result = $gateway->paymentMethod()->delete('the_token');
$result->success; #=> true
Braintree\Exception\NotFound
exception.
- PHP
$result = $gateway->paymentMethod()->delete('the_token');
$result->success; #=> true
Braintree\Exception\NotFound
exception.Note
The delete action will also revoke the mandate associated with the customer's payment method.