Passer au contenu
Français - France
  • Il n'y a aucune suggestion car le champ de recherche est vide.

HiPay Enterprise – SEPA Direct Debit (SDD)

Service endpoints

There are two endpoints (base URLs) to which you can make your API calls:

  • Stage, if you are testing your integration,
  • and Production, when you have finished testing and want your application to go live.
Environment
Endpoint
Stage
https://stage-secure-gateway.hipay-tpp.com/rest/v1/hpayment https://stage-secure-gateway.hipay-tpp.com/rest/v1/order
Production
https://secure-gateway.hipay-tpp.com/rest/v1/hpayment https://secure-gateway.hipay-tpp.com/rest/v1/order

 

Recurring payment request with client authentication

To initiate a SEPA mandate for a recurring payment with client authentication, here are the parameters to add to a basic payment request.

The bank account owner must be present to complete the SEPA registration.

 

Specific required fields:

payment_product => sdd

eci => 7 //ECOMMERCE

recurring_payment => 1

 

Recurring payment request without client authentication

To initiate a SEPA mandate for a recurring payment without client authentication, here are the parameters to add to a basic payment request.

The bank account owner must be present to complete the SEPA registration.

 

Specific required fields:

payment_product => sdd

eci => 7 //ECOMMERCE

recurring_payment => 1

firstname => firstname

lastname => lastname

authentication_indicator => 0

gender => M

issuer_bank_id => MARKDEF1100  // BIC

 

New parameters:

iban => DE23100000001234567890

bank_name => deutsche bank

 

Recurring payment response

See below the received response. Please pay attention to the field “debit_agreement_id”, which is the most important here.

Merchants must save its value to make more transactions on the same mandate.

 

Response in XML format using Order service

  forwarding   https://stage-secure-gateway.hipay-tpp.com/gateway/forward/c4ee….ac42c21   false   00035167042   1     806735728402   . . .       574     available  

 

Response in XML format using Hpayment service

  https://stage-secure-gateway.hipay-tpp.com/payment/web/pay/12...55   true   00001328877   . . .       5630ccbe32951     2015-10-28T13:30:47+0000     0     113.25     4.50     0.50     2     EUR     test     fr_FR     test@hipay.com  

 

At this point, the transaction status is “Authentication requested”.

 

The merchant will redirect the customer to the HiPay payment page to complete the payment.

 

After completing the payment, the customer is redirected to the success page specified by the merchant in the initial payment request (or to the error page in case of failure).

 

The transaction status will change to “Authenticated”, then to “Authorization requested”. A few days later (approximately 10 bank working days), the transaction status will change from “Authorization requested” to “Authorized” and “Captured” if accepted by the issuer's bank.

 

Notification response in XML format

  completed     true   00001328877   1     730844386388     . . .       599      available  

 

Initiating a transaction on an existing mandate

When a merchant wants to make a payment on an existing mandate, the bank account owner doesn’t need to be present.

To proceed, the merchant has to send the value of the aforementioned field “debit_agreement_id” to HiPay.

 

Specific required fields:

payment_product => sdd

eci => 9 //ECOMMERCE_RECURRING

debit_agreement_id => 574 //This is an example

recurring_payment => 1

 

Response

See below the received response. This time, the transaction status is set to “Authorization requested” directly, as a confirmation is not required to make another payment on an existing mandate.

 

Response in XML format

  pending       false   00035167042   1     937783482019     2015-10-05T16:40:21+0000   2015-10-05T16:40:29+0000     142   Authorization Requested   . . .       574     available  

 

Debit agreement statuses

Status
Description
pending
Created but not yet confirmed
available
Agreement correctly created
terminated
The agreement is no longer available
suspended
The agreement was suspended by the customer
error
An error occurred on agreement creation

 

Creating a mandate without transaction

This is intended for merchants who want to create a debit agreement without any first payment for further recurring payments.

 

Endpoint:

Environment
Endpoint
Production
https://secure-gateway.hipay-tpp.com/rest/v2/debit-agreement

 

Specific required fields:

payment_product => sdd

currency => eur

iban => DE23100000001234567890 //This is an example

issuer_bank_id => MARKDEF1100 //This is an example

bank_name => World bank //This is an example

gender => F //or M

firstname => firstname

lastname => lastname

authentication_indicator => 0

agreement_reference => 4465545 //This field is not mandatory. It is used to import an old mandate reference.

 

Response in XML format

  0   success   Debit agreement has been successfully created.       992      xbclql8lff2c81raderivxnqjwwhizrcbu4regh6     available     2016-02-19T10:19:19+0100           DE23100000001234567890       MARKDEF1100       World bank       F       firstname       lastname       0        000164937158989160       4465545      

 

At this point, the merchant can initiate an SDD transaction with the given debit agreement.