You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yo handle payment gateways in your app, you need to integrate them with your app. Some gateways have integrations with Stall, so integrating them in your app should be dead simple.
If no existing gateway cover your needs, you can create your own.
Create a Stall::Payments::Gateway subclass in your app's lib/ folder, and implement the needed interface. This interface is not straightforward for now. It will be enhanced and documented as soon as possible, but for now, you can look at the existing implementations listed above.
# If the class is not in your app's autoload_paths, require itrequire'my_payment_gateway'Stall.configuredo |config|
config.payment.register_gateway:my_payment_gateway,'MyPaymentGateway'end
Restart your server and you should be able to access the payment method.