-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
984acfc
commit 5cb0c60
Showing
2 changed files
with
52 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,46 @@ Adyen App uses Adyen [Checkout API v70](https://docs.adyen.com/api-explorer/#/Ch | |
|
||
If you want to self-host the Adyen app, reach out to [our team <Mail size={12}/>](mailto:[email protected]). | ||
|
||
### Adyen notifications | ||
|
||
:::caution | ||
If notification event is not listed below it will be **ignored** by the app. | ||
::: | ||
|
||
:::info | ||
Notifications for payments made without using Adyen app will be ignored. This happens because they do not have required `metadata` ([see more details](#receiving-notifications-for-transactions-not-started-in-adyen-app)) | ||
::: | ||
|
||
App supports following notification events from Adyen: | ||
|
||
- [`Authorisation`](https://docs.adyen.com/api-explorer/Webhooks/1/post/AUTHORISATION) | ||
- [`AuthorisationAdjustment`](https://docs.adyen.com/api-explorer/Webhooks/1/post/AUTHORISATION_ADJUSTMENT) | ||
- [`Cancellation`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CANCELLATION) | ||
- [`CancelOrRefund`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CANCEL_OR_REFUND) | ||
- [`Capture`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CAPTURE) | ||
- [`CaptureFailed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CAPTURE_FAILED) | ||
- [`Expire`](https://docs.adyen.com/api-explorer/Webhooks/1/post/EXPIRE) | ||
- [`OrderClosed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/ORDER_CLOSED) | ||
- [`Refund`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REFUND) | ||
- [`RefundFailed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REFUND_FAILED) | ||
- [`RefundedReversed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REFUNDED_REVERSED) | ||
- [`RefundWithData`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REFUND_WITH_DATA) | ||
- [`VoidPendingRefund`](https://docs.adyen.com/api-explorer/Webhooks/1/post/VOID_PENDING_REFUND) | ||
- [`Chargeback`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CHARGEBACK) | ||
- [`SecondChargeback`](https://docs.adyen.com/api-explorer/Webhooks/1/post/SECOND_CHARGEBACK) | ||
- [`ChargebackReversed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CHARGEBACK_REVERSED) | ||
|
||
Following events will be mapped to `INFO` event in Saleor, it will not change amounts on `TransactionItem`: | ||
- `HandledExternally` | ||
- [`PostponedRefund`](https://docs.adyen.com/api-explorer/Webhooks/1/post/POSTPONED_REFUND) | ||
- [`NotificationOfFraud`](https://docs.adyen.com/api-explorer/Webhooks/1/post/NOTIFICATION_OF_FRAUD) | ||
- [`NotificationOfChargeback`](https://docs.adyen.com/api-explorer/Webhooks/1/post/NOTIFICATION_OF_CHARGEBACK) | ||
- [`PrearbitrationLost`](https://docs.adyen.com/api-explorer/Webhooks/1/post/PREARBITRATION_LOST) | ||
- [`PrearbitrationWon`](https://docs.adyen.com/api-explorer/Webhooks/1/post/PREARBITRATION_WON) | ||
- [`RequestForInformation`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REQUEST_FOR_INFORMATION) | ||
- [`ManualReviewAccept`](https://docs.adyen.com/api-explorer/Webhooks/1/post/MANUAL_REVIEW_ACCEPT) | ||
- [`ManualReviewReject`](https://docs.adyen.com/api-explorer/Webhooks/1/post/MANUAL_REVIEW_REJECT) | ||
|
||
## Assumptions | ||
|
||
- If Adyen doesn't respond to app request for [initialize transaction session](/developer/extending/webhooks/synchronous-events/transaction#initialize-transaction-session) or [process transaction session](/developer/extending/webhooks/synchronous-events/transaction#process-transaction-session) with `pspReference`: | ||
|
@@ -59,34 +99,6 @@ If you want to self-host the Adyen app, reach out to [our team <Mail size={12}/> | |
- `AUTHORIZATION_FAILURE` | ||
- [Webhook settings > Delayed Capture](#duplicated-chargedamount-in-saleor) is disabled in Adyen Dashboard | ||
- Webhook in Adyen was created with all options (additional settings) described in [Saleor docs](./configuration.mdx#webhook-configuration) | ||
- App supports following notification events from Adyen, other types of events will be ignored: | ||
- [`Authorisation`](https://docs.adyen.com/api-explorer/Webhooks/1/post/AUTHORISATION) | ||
- [`AuthorisationAdjustment`](https://docs.adyen.com/api-explorer/Webhooks/1/post/AUTHORISATION_ADJUSTMENT) | ||
- [`Cancellation`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CANCELLATION) | ||
- [`CancelOrRefund`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CANCEL_OR_REFUND) | ||
- [`Capture`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CAPTURE) | ||
- [`CaptureFailed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CAPTURE_FAILED) | ||
- [`Expire`](https://docs.adyen.com/api-explorer/Webhooks/1/post/EXPIRE) | ||
- [`OrderClosed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/ORDER_CLOSED) | ||
- [`Refund`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REFUND) | ||
- [`RefundFailed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REFUND_FAILED) | ||
- [`RefundedReversed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REFUNDED_REVERSED) | ||
- [`RefundWithData`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REFUND_WITH_DATA) | ||
- [`VoidPendingRefund`](https://docs.adyen.com/api-explorer/Webhooks/1/post/VOID_PENDING_REFUND) | ||
- [`Chargeback`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CHARGEBACK) | ||
- [`SecondChargeback`](https://docs.adyen.com/api-explorer/Webhooks/1/post/SECOND_CHARGEBACK) | ||
- [`ChargebackReversed`](https://docs.adyen.com/api-explorer/Webhooks/1/post/CHARGEBACK_REVERSED) | ||
- Following events will be mapped to `INFO` event in Saleor, it will not change amounts on `TransactionItem`: | ||
- `HandledExternally` | ||
- [`PostponedRefund`](https://docs.adyen.com/api-explorer/Webhooks/1/post/POSTPONED_REFUND) | ||
- [`NotificationOfFraud`](https://docs.adyen.com/api-explorer/Webhooks/1/post/NOTIFICATION_OF_FRAUD) | ||
- [`NotificationOfChargeback`](https://docs.adyen.com/api-explorer/Webhooks/1/post/NOTIFICATION_OF_CHARGEBACK) | ||
- [`PrearbitrationLost`](https://docs.adyen.com/api-explorer/Webhooks/1/post/PREARBITRATION_LOST) | ||
- [`PrearbitrationWon`](https://docs.adyen.com/api-explorer/Webhooks/1/post/PREARBITRATION_WON) | ||
- [`RequestForInformation`](https://docs.adyen.com/api-explorer/Webhooks/1/post/REQUEST_FOR_INFORMATION) | ||
- [`ManualReviewAccept`](https://docs.adyen.com/api-explorer/Webhooks/1/post/MANUAL_REVIEW_ACCEPT) | ||
- [`ManualReviewReject`](https://docs.adyen.com/api-explorer/Webhooks/1/post/MANUAL_REVIEW_REJECT) | ||
- Notifications from Adyen must include `metadata` set by the app, during payment. Payments made without using Adyen App that do not include this metadata will be ignored ([see more details](#receiving-notifications-for-transactions-not-started-in-adyen-app)). | ||
- Before [user cancels a payment](./storefront.mdx#onordercancel), App will update `TransactionItem` in Saleor, so that it has either `REFUND_REQUEST` or `CANCEL_REQUEST` event. If update in Saleor fails, user won't be able to cancel payment. This prevents fraudulent orders from being created. | ||
|
||
## Limitations & troubleshooting | ||
|