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:
- Callback
- Promise
gateway.paymentMethod.create({
customerId: "12345",
paymentMethodNonce: nonceFromTheClient
}, (err, result) => {
// handle response
});
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:
- Callback
- Promise
gateway.paymentMethod.find("token", (err, paymentMethod) => {
// handle response
});
notFoundError
. 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:
- Callback
- Promise
gateway.paymentMethod.delete("theToken", (err) => {
// handle response
});
notFoundError
.
- Callback
- Promise
gateway.paymentMethod.delete("theToken", (err) => { });
notFoundError
.Note
The delete action will also revoke the mandate associated with the customer's payment method.
Next Page: →