OverviewIn order to be complaint with the PSD2, Amazon Pay introduced SCA for their transactions. The SCA Upgrade introduces a “Confirmation Flow” to handle Multi-Factor Authentication (MFA) when it is required. When MFA is required, the Confirmation Flow shows the credit card issuer’s MFA challenge to the buyer. After the buyer interacts with the Confirmation Flow (for example, completes the MFA challenge), the buyer is returned to the merchant’s site (for example, order confirmation page). Please update the AmazonPay checkout workflow after a buyer initiates their order completion and before you call the Authorize Operation. ChangesNew JavaScript function confirmationFlow()Due to MFA, it is necessary after a succesful confirmation of an order to start a new call, the ConfirmationFlow. To start the workflow, please execute a Confirm on the order on the | Multiexcerpt include |
|---|
| SpaceWithExcerpt | EN |
|---|
| MultiExcerptName | Platform-Name |
|---|
| PageWithExcerpt | Wording |
|---|
| , after you receive a result start the confirmationFlow in case of success with "confirmationFlow.success()" in case of failure "confirmationFlow.error()" aborts the process.
Implementation of the new Javascript call is shown below. This has been optimized for our | Multiexcerpt include |
|---|
| SpaceWithExcerpt | EN |
|---|
| MultiExcerptName | Partner-Name |
|---|
| PageWithExcerpt | Wording |
|---|
| merchants.
| Note |
|---|
This action should be triggered by clicking on the “Buy Now” button! |
| Multiexcerpt |
|---|
| MultiExcerptName | confirmation_flow |
|---|
| | Code Block |
|---|
| language | js |
|---|
| linenumbers | true |
|---|
| function confirmationFlow()
{
// Get resultCode from call of AmazonAPA.aspx, EventToken: COD
var resultCode = Platform call to get the ResultCode from the Confirm, AP call COD or SCO.
// Your AmazonSellerID / AmazonMerchantID
var amazonSellerId = 'Your_SellerID';
// Amazon order reference generated by Address Widget
var orderReferenceId = 'Your_Order_Reference';
//Initiate confirmation flow
OffAmazonPayments.initConfirmationFlow(amazonSellerId, orderReferenceId, function (confirmationFlow)
{
if(resultCode = '00000000')
{
confirmationFlow.success();
}
else
{
confirmationFlow.error();
}
}
);
} |
|
Please also refer to https://developer.amazon.com/de/docs/eu/amazon-pay-onetime/sca-upgrade.html for additional guidance. Merchant should be able to handle | Multiexcerpt include |
|---|
| SpaceWithExcerpt | EN |
|---|
| MultiExcerptName | Partner-Name |
|---|
| PageWithExcerpt | Wording |
|---|
| 's redirection (URLSuccess / URLFailure) with the result of the MFA Challenge. URLSuccess / URLFailure for ConfirmOrderDetails (COD) and SetOrderDetails and ConfirmOrder (SCO) call| Table Filter |
|---|
| default | Beschreibung |
|---|
| isFirstTimeEnter | false |
|---|
| hideColumns | true |
|---|
| sparkName | Sparkline |
|---|
| hidePane | true |
|---|
| datepattern | dd M yy |
|---|
| id | 1624354035264_1056203061 |
|---|
| worklog | 365|5|8|y w d h m|y w d h m |
|---|
| isOR | AND |
|---|
| separator | Point (.) |
|---|
| order | 0 |
|---|
| | Multiexcerpt |
|---|
| MultiExcerptName | confirm_order_details |
|---|
| | Table Transformer |
|---|
dateFormat | dd M yy |
|---|
| | export-word | false |
|---|
| show-source | false |
|---|
| export-csv | false |
|---|
| id | 1624354035266_-1881547046 |
|---|
| transpose | false |
|---|
| worklog | 365|5|8|y w d h m|y w d h m |
|---|
| separator | . |
|---|
| export-pdf | false |
|---|
| sql | SELECT * FROM T* |
|---|
Beschreibung | URLSuccess | ans..256 | M | The buyer is redirected to this URL if the MFA is successful |
Der Käufer wird zu dieser URL weitergeleitet, wenn die MFA erfolgreich ist | URLFailure | ans..256 | O | The buyer is redirected to this URL if the MFA is unsuccessful |
Der Käufer wird zu dieser URL weitergeleitet, wenn die MFA nicht erfolgreich ist | AuthorizationAmount | n..12 | O | The amount to authenticate during MFA completion. Use this parameter if you want to set a payment amount that is different than the OrderTotal provided in the SetOrderReferenceDetails operation call. If this parameter is not set, the amount authenticated during MFA will be equal to the OrderTotal provided in the SetOrderReferenceDetails operation call. |
Der während des MFA-Abschlusses zu authentisierende Betrag. Verwenden Sie diesen Parameter, wenn Sie einen Zahlungsbertrag festlegen wollen, der vom Wert OrderTotal im Aufruf SetOrderReferenceDetails abweicht. Wenn dieser Parameter nicht gesetzt ist, wird der während MFA authentisierte Betrag gleich dem in OrderTotal im Aufruf SetOrderReferenceDetails angegebenen Betrag. |
On "Order Now" the merchant has to send the URLSuccess and URLFailure in the calls (EventToken=SCO | COD), because the redirect is executed after the MFA challenge. After "Order Now" the Confirm (EventToken=SCO | COD) is executed on the payment and then the redirect to the challenge takes place using the JavaScript code shown above. AmazonAPA.aspxThe following event calls at the | Multiexcerpt include |
|---|
| SpaceWithExcerpt | EN |
|---|
| MultiExcerptName | Platform-Name |
|---|
| PageWithExcerpt | Wording |
|---|
| are affected by the changes. Please make sure to include the new parameters. | Table Filter |
|---|
|