About
Participants
@anteprimorac
@josipmatichr
@marijapolovic
@josipmatichr
@marijapolovic
Description
Adds Reepay payment provider for Medusa Commerce.
Set up Project
Install:
Add to medusa-config.js
Enable reepay as a payment provider in Medusa admin settings
Creating Payment Session
Use Medusa API to create Payment Sessions for the available payment providers.
This will create a Reepay charge session.
Request
Response
Authorize Payment
Use Medusa API to complete cart, this will result in an attempt to authorize payment.
To authorize payment using Reepay checkout you can use
to redirect user to the checkout page.Copy to clipboardcart.payment_session.data.action.url
After completion user is redirected to the
, where you can complete a cart.Copy to clipboardoptions.accept_url
If you're using webhooks you should make sure to check that the cart is not already completed to avoid conflict. In this case you should retrieve an order before trying to complete the cart.
Capture Payment
Capturing payment will result in an attempt to settle a payment
Cancel Payment
Canceling an order will result in an attempt to cancel a charge
Refund Payment
Creating a refund will result in an attempt to create a refund
Webhooks
Currently, the only supported webhook is for invoice_authorized.
Once this webhook is fired, this will result in an attempt to complete a cart.
MobilePay
To enable MobilePay payment method you should add a MobilePay acquirer in the Reepay acquiring configuration. After that you should add "mobilepay" as a payment method in the medusa-payment-reepay options.
Resources
Medusa Docs\
https://docs.medusajs.com/
Reepay Docs\
https://reference.reepay.com/api/
MobilePay Docs\
https://developer.mobilepay.dk/products/online/test

Build your own plugins
Develop your own plugins with our API to speed up your processes.
Make your plugin available via npm for it to be shared in our Plugin Library with the broader Medusa community.
.png)