Skip to content

Is it possible to connect other payment gateway not in the list? #6

Answered by logeshswell
curiouscod3 asked this question in Help
Discussion options

You must be logged in to vote

@curiouscod3 Brilliant question! Yes, it is possible to connect a custom payment gateway with Swell.
Please follow the below steps to implement the same:

  1. Create a manual payment method. (eg: Airpay)
  2. In your custom checkout, pass the customer-inputted card details to your backend.
  3. In your backend, create an airpay payment order and send the card details for making the payment.
  4. If the payment is successful,
    a. Submit the cart and place an order.
    b. Set order.billing.method as airpay id, order.payment_marked: true and order.billing.card.token as airpay payment token.
    c. Return 200 response with message success to the checkout.
  5. Else
    a. Return 400 response with payment error description to th…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@curiouscod3
Comment options

@logeshswell
Comment options

@curiouscod3
Comment options

Answer selected by logeshswell
Comment options

You must be logged in to vote
2 replies
@logeshswell
Comment options

@woutercouvaras
Comment options

Comment options

You must be logged in to vote
1 reply
@logeshswell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
3 participants