RatePay state machine commands and conditions

Edit on GitHub

ConfirmDelivery command

  • Send delivery confirmation data to RatePAY
  • Response:
    • Success: Delivery confirmed
    • Declined: Request format error or delivery confirmation error
  • Plugin: ConfirmDeliveryPlugin

ConfirmPayment command

  • Send payment confirmation data to RatePAY
  • Response:
    • Success: Payment confirmed
    • Declined: Request format error or payment confirmation error
  • Plugin: ConfirmPaymentPlugin

CancelPayment command

  • Send order items cancellation data to RatePAY
  • Response:
    • Success: Order items canceled successfully
    • Declined: Request format error or order items cancellation error
  • Plugin: CancelPaymentPlugin

RefundPayment command

  • Send refund order items data to RatePAY
  • Response:
    • Success: Order items refunded successfully
    • Declined: Request format error or order items refund error
  • Plugin: RefundPaymentPlugin

Conditions

NAME DESCRIPTION PLUGIN
IsRefunded Checks transaction status for successful order items refund response IsRefundedPlugin
IsPaymentConfirmed Checks transaction status for successful order items payment response IsPaymentConfirmedPlugin
IsDeliveryConfirmed Checks transaction status for successful order items delivery response IsDeliveryConfirmedPlugin
IsCancellationConfirmed Checks transaction status for successful order items cancellation response IsCancellationConfirmedPlugin