Continental Payment

Registrierung erstellen

Die Registration API dient dazu, eine Transaktion zu registrieren, damit sie später bei der Erstellung einer Zahlung verwendet werden kann.

Aktualisiert am 23. Nov. 20262 Min. Lesezeit

POST /rest/register

Die Registration API wird nur von bestimmten Zahlungsmethoden unterstützt.

  1. Kreditkarten
    Unterstützt. Wird verwendet, um Kartendaten zu registrieren, die zu einem späteren Zeitpunkt per Capture abgebucht werden.
  2. Lastschrift
    Nicht unterstützt.
  3. PIX
    Nicht unterstützt.
  4. PayPal
    Nicht unterstützt.
  5. Boleto
    Nicht unterstützt.

Die Registrations API dient dazu, Kreditkartendaten für eine zukünftige Zahlung zu registrieren. Der Unterschied zur Authorization API besteht darin, dass kein Betrag angegeben wird, der für einen späteren Abzug reserviert wird.

Nachfolgend findest du eine Zusammenfassung des Anwendungsfalls der Registration API.

  1. Sende eine POST-Anfrage an /rest/register mit den Parametern, die in der Liste unten aufgeführt sind.
  2. Leite den Endnutzer auf die zurückgegebene URL weiter.
  3. Der Endnutzer gibt seine Kreditkartendaten ein und wird zurück zum Shop des Händlers geleitet. Im Erfolgsfall erfolgt die Weiterleitung an die success_url, im Fehlerfall an die error_url.
  4. Der Transaktionsstatus sollte nun „registered“ lauten. Speichere die transaction_id, um sie in weiteren Anfragen im Feld original_transaction_id zu verwenden.
  5. Sende eine Zahlungsanfrage an die Payment API. Trage im Request Body bei original_transaction_id= die ID aus dem oben beschriebenen Registrierungsaufruf ein. Setze recurring=1, wenn du wiederkehrende Zahlungen durchführen möchtest.

Parameters

NameInTypeRequiredDescription
Content-TypeheaderstringNoContent type of the request body.

Request Body

PropertyTypeRequiredDescription
api_keystringYesAPI key of the merchant.
payment_typestringYesIdentifier for the payment method. See list of payment methods in the following link https://continentalpay.readme.io/reference/list-of-payment-methods.
order_idstringYesOrder ID of the payment. We suggest to use readable but unique value for this field.
recurringintegerNo1 for recurring and 0 for non-recurring.
postback_urlstringNoHTTPs URL where you would like to receive webhook/postback notifications. E.g https://yourwebsite.com/postbacks
localestringNoLocale for the payment page. Only used in Credit Card payments where customer is redirected to our payment page. Find supported locales here.
additional_transaction_datastringNoAny other random data that you would like to associate the transaction with.
addressstringNoAddress of the customer.
address2stringNoSupplementary address of the customer.
citystringNoCity of the customer.
postal_codestringNoPostal code of the customer.
statestringNoState of the customer.
countrystringYes2 letter ISO code of the country of the customer. E.g DE
first_namestringNoFirst name of the customer.
last_namestringNoLast name of the customer.
emailstringNoEmail of the customer.
phonestringNoPhone of the customer.
success_urlstringNoSuccess URL of your website to redirect customers to upon a successful payment. For payment methods that involve browser redirection such as credit card payments, these URLs are required. The following data is appended to the URL, which is used when redirecting back to the shop’s success or error URLs: order_id,transaction_id.
error_urlstringNoError URL of your website to redirect customers to upon a failed payment. For payment methods that involve browser redirection such as credit card payments, these URLs are required. The following data is appended to the URL, which is used when redirecting back to the shop’s success or error URLs: order_id,transaction_id.
frame_originstringNoDomain of the website that will render our payment page. Only used for Credit Card payments when the redirect link will be rendered in an I-frame.

Responses

200