This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:girocheckout:giropay:functions [2013/10/31 17:27] thorstenmarx gelöscht |
en:girocheckout:giropay:functions [2013/11/06 03:30] michaelheumann |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | {{indexmenu_n> |
+ | ====== | ||
+ | |||
+ | ===== Check bank status ===== | ||
+ | You can use this function to check if a bank supports the giropay payment method and allows payments and/or age verification. Please use this function prior to **every** transaction to make sure that the customer' | ||
+ | |||
+ | === Request === | ||
+ | **URL:** https:// | ||
+ | **To be provided by:** GiroSolution AG \\ | ||
+ | **To be called by:** Merchant | ||
+ | |||
+ | == Parameters == | ||
+ | ^Name | ||
+ | |merchantId | ||
+ | |projectId | ||
+ | |bankcode | ||
+ | |bic |Optional | ||
+ | |hash | ||
+ | |||
+ | <WRAP center round info 60%> | ||
+ | For this check, either the bank code (Bankleitzahl) or the BIC of the customer' | ||
+ | </ | ||
- | ===== Bankleitzahlprüfung ===== | ||
- | Mit dieser Funktion prüfen Sie, ob eine Bank am giropay-Verfahren teilnimmt und Zahlungen abgewickelt werden können. Bitte nutzen Sie vor jeder giropay Transaktion diese Funktion, um sicherzustellen, | ||
- | === Anfrage === | ||
- | **URL:** https:// | ||
- | ^Name | ||
- | |merchantId | ||
- | |projectId | ||
- | |txKind | ||
- | |bankcode | ||
- | |bic |Ja* |String(11)|BIC der Kundenbank, die geprüft werden soll | | ||
- | |hash | ||
- | * Bankleitzahl **oder** BIC ist anzugeben. | ||
== Example == | == Example == | ||
- | {{page> | + | {{page> |
+ | |||
+ | === Reply === | ||
+ | The reply is a JSON object. If **rc = 0** is returned, a giropay transaction may be carried through with this bank. Please note the parameters //payment// and // | ||
+ | |||
+ | == Parameters == | ||
+ | ^Name | ||
+ | |rc | ||
+ | |msg |Yes | ||
+ | |bankcode | ||
+ | |bic |Optional | ||
+ | |bankname | ||
+ | |payment | ||
+ | |verifyAge | ||
+ | |||
+ | == Example in case of success == | ||
+ | {{page> | ||
+ | |||
+ | == Example in case of error == | ||
+ | {{page> | ||
+ | |||
+ | ===== Initialization of the giropay payment ===== | ||
+ | |||
+ | You send the transaction data and receive a link (redirect URL) as a reply. Afterwards, you send your customer a redirection to that URL. This may be done through an HTTP redirect header, an HTML page with a corresponding meta tag or Javascript. The actual payment processing takes place as the customer logs into his online banking platform and confirms the prefilled transfer form there by entering a TAN. | ||
+ | The notification of your application about the payment outcome is done via a GET request sent by GiroCheckout to the URL specified in the urlNotify parameter. | ||
+ | |||
+ | === Request === | ||
+ | **URL:** https:// | ||
+ | **To be provided by:** GiroSolution AG \\ | ||
+ | **To be called by:** Merchant | ||
+ | |||
+ | == Parameters == | ||
+ | ^Name | ||
+ | |merchantId | ||
+ | |projectId | ||
+ | |merchantTxId | ||
+ | |amount | ||
+ | |currency | ||
+ | |purpose | ||
+ | |bankcode | ||
+ | |bankaccount | ||
+ | |bic |Optional |String(11) | ||
+ | |iban | ||
+ | |info[1..5]Label|Optional |String(30) | ||
+ | |info[1..5]Text |Optional |String(80) | ||
+ | |urlRedirect | ||
+ | |urlNotify | ||
+ | |hash | ||
+ | |||
+ | == The info parameters == | ||
+ | Using the info parameters, you may display additional information on the giropay transfer pages. A maximum of 5 elements is possible. Each information is comprised of a label and the information itself. | ||
- | === Response === | ||
== Example == | == Example == | ||
- | {{page> | + | {{page> |
+ | |||
+ | === Reply === | ||
+ | The reply is a JSON object. If **rc = 0** is returned, the parameters reference and redirect are set. Please redirect the customer to the redirect URL. | ||
+ | |||
+ | == Parameters == | ||
+ | ^Name | ||
+ | |rc | ||
+ | |msg |Yes | ||
+ | |reference | ||
+ | |redirect | ||
+ | |||
+ | == Example in case of success == | ||
+ | {{page> | ||
- | ===== Initialisierung der giropay | + | == Example in case of error == |
+ | {{page> | ||
- | Sie übermitteln die Transaktionsdaten und erhalten einen Link (Redirect-URL) als Antwort. Anschließend senden Sie Ihrem Kunden eine Weiterleitung zur Redirect-URL. Dies kann durch einen HTTP-Redirect-Header, eine HTML-Seite mit entsprechendem Meta-Tag oder Javascript erfolgen. Die eigentliche Zahlungsabwicklung erfolgt dann, indem der Kunde sich beim Onlinebanking seiner Bank anmeldet und dort die vorausgefüllte Überweisung durch eine TAN bestätigt. | + | ===== Payment outcome notification ===== |
- | Die Benachrichtigung Ihrer Anwendung über den Ausgang der Zahlung erfolgt, indem GiroConnect Ihrer Anwendung einen GET-Request schickt. | + | After completion of the giropay payment or age verification, |
- | === Anfrage | + | === Request |
+ | **URL:** notifyUrl aus dem Transaktionsstart \\ | ||
+ | **To be provided by:** Merchant \\ | ||
+ | **To be called by:** GiroSolution AG | ||
- | ^Name | + | == GET Parameters == |
- | |merchantId | + | ^Name |
- | |projectId | + | |gcReference |
- | |transactionId | + | |gcMerchantTxId |
- | |amount | + | |gcBackendTxId |
- | |currency | + | |gcAmount |
- | |purpose | + | |gcCurrency |
- | |bankcode | + | |gcResultPayment |
- | |bankaccount | + | |gcResultAVS |
- | |bic | + | |gcHash |
- | |iban | + | |
- | |projectId | + | |
- | |urlRedirect | + | |
- | |urlNotify | + | |
- | |hash |bla |bla |bla | + | |
- | === Antwort | + | === Reply === |
+ | As a reply to the GET request, one of the following HTTP status codes is expected. | ||
- | JSON | + | ^HTTP status code ^Description |
+ | |200 (OK) |The notification was processed correctly. | | ||
+ | |400 (Bad Request) | ||
+ | |All others | ||
- | ===== Benachrichtigung über den Ausgang der Zahlung | + | ===== Returning of the customer to the shop ===== |
+ | After completing the giropay payment, the customer may return to the shop through a link. This return is not done automatically. | ||
- | ===== Rückleitung des Kunden zum Shop ===== | + | === Request |
+ | **URL:** redirectUrl from the transaction beginning \\ | ||
+ | **To be provided by:** Merchant \\ | ||
+ | **To be called by:** GiroSolution AG | ||
+ | == GET Parameters == | ||
+ | ^Name | ||
+ | |gcReference | ||
+ | |gcMerchantTxId | ||
+ | |gcBackendTxId | ||
+ | |gcAmount | ||
+ | |gcCurrency | ||
+ | |gcResultPayment | ||
+ | |gcResultAVS | ||
+ | |gcHash |