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:
- Java
PaymentMethodRequest request = new PaymentMethodRequest()
.customerId("131866")
.paymentMethodNonce(nonceFromTheClient);
Result<? extends PaymentMethod> result = gateway.paymentMethod().create(request);
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:
- Java
PaymentMethod paymentMethod = gateway.paymentMethod().find("token");
NotFoundException
. 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:
- Java
Result<? extends PaymentMethod> result = gateway.paymentMethod().delete("the_token");
result.isSuccess(); // true
NotFoundException
.
- Java
Result<? extends PaymentMethod> result = gateway.paymentMethod().delete("the_token");
result.isSuccess(); // true
NotFoundException
.
Note
The delete action will also revoke the mandate associated with the customer's payment method.
Next Page: →