Payment Gateways
You need to create a payment gateway to accept payments.
Attribute | Description |
---|---|
Name | Name of gateway |
Subtitle | Subtitle shown during checkout |
Enabled | Enable the payment gateway |
Environment | Environment of gateway (Sandbox / Production) |
Secrets | Secrets provided by payment providers |
Please follow the instructions below to add a payment gateway.
PayPal
If you want to test the payments with a sandbox account first, do the steps below, but with a
SANDBOX
application.
- Create a PayPal Business account or upgrade your account to a business account.
- Create a REST API app in the PayPal Developer settings. Make sure to create the app for the
Live
environment. - Under
LIVE APP SETTINGS
, disable thePayouts
feature and clickSave
. - In your VyHub instance, create a PayPal payment gateway, select
PRODUCTION
environment and insert yourClient ID
andClient Secret
. - Click
Create
.
Stripe
If you want to test the payments with a test account first, do the steps below, but with a
TEST
application.Please use at least VyHub version
0.2.0
for this!
- Create a Stripe account or log into your existing one.
- In the Stripe
Developers
settings, navigate toAPI keys
. - In your VyHub instance, create a Stripe payment gateway, insert your
Public Key
andPrivate Key
and select your desiredPayment Methods
. - Click save and edit the payment gateway again. At the bottom, copy the
Webhook URL
to your clipboard. - Back at the Stripe
Developers
settings, navigate toWebhooks
. -
Click
Add (hosted) endpoint
, insert the copied URL toEndpoint URL
and selectLatest API version
. Add the following events and clickAdd endpoint
:checkout.session.completed
invoice.paid
customer.subscription.deleted
-
Click
Reveal
on theSigning Secret
and copy it to your clipboard. - Back at the VyHub settings of your Stripe gateway, insert the copied secret into the
Webhook Secret
field and clickEdit
. - (Optional) In the
Stripe
settings of the created webhook endpoint, clickSend test event
to test if everything works fine.
Paysafecard
- Become a paysafecard partner.
- In your VyHub instance, create a Paysafecard payment gateway, insert your
Secret Key
and select your desiredEnvironment
. - Click
Create
.
Credits
- In your VyHub instance, create a Credits payment gateway.
Create packets that have Credits
as reward, so that users can buy credits with real money. You will need an other payment gateway for this.
A feature to give users credits manually will come soon!