Skip to main content

Routes

The following routes are available:

GET /store-api/datatrans/card-methods

Get the list of available card methods from Datatrans payment methods.

  • body: none
  • query: none
  • response: list of card methods id's with translated label

POST /store-api/datatrans/card-methods

Create a Datatrans transaction to save the selected payment method.

  • body:
    • paymentMethodId: string
    • redirectUrl: string
  • query: none
  • response:
    • transactionId: string

GET /store-api/datatrans/card-methods/verify

Verify Datatrans transaction and save the customer's payment method.

  • body: none
  • query:
    • datatransTrxId: string
    • token: string
  • response: redirect
  • emits: UpdatePaymentCardToStoremanagerEvent