Payment Gateways
You need to create a payment gateway to accept payments.
Attribute | Description |
---|---|
Name | Name of gateway |
Subtitle | Subtitle shown during checkout |
Image URL | [Optional] Image URL of the payment gateway. When no image is set, defaults are used |
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
Supports recurring payments: yes
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. If you don't want to upgrade your account, you can use the PayPal (Easy) integration (see below).
- Create a REST API app in the PayPal Developer settings. Make
sure to create the app for the
Live
environment. - Under
LIVE APP SETTINGS
, enableTransaction Search
, 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
and edit the payment gateway again. At the bottom, copy theWebhook URL
to your clipboard. - Back in the
PayPal Developer
portal, clickAdd Webhook
underLIVE WEBHOOKS
and paste the copied URL. - Select
All events
, scroll down and clickSave
. - Copy the
Webhook ID
of the created webhook into the form and clickEdit
.
PayPal (Easy)
Supports recurring payments: no
The PayPal Easy/Legacy payment gateway is easier to set up and can be used without a PayPal business account. However, it has some limitations as it does not support subscription payments, refunds and the general payment handling isn't as good as with the normal PayPal gateway.
- In your VyHub instance, create a PayPal (Easy) payment gateway, select
PRODUCTION
environment and insert your primary PayPal email address. - Click
Create
and test if everything works fine.
Stripe
If you want to test the payments with a test account first, do the steps below, but with a
TEST
application.
- Create a Stripe account or log into your existing one.
- (Only required before Sepember 2024) Enable
Stripe Workbench
here. - Open Stripe Workbench and locate the
API keys
section. - In your VyHub instance, create a Stripe payment gateway, insert your
Public Key
andPrivate Key
and select your desiredPayment Methods
. - Click
Create
and edit the payment gateway again. At the bottom, copy theWebhook URL
to your clipboard. - Create a webhook endpoint using this link, click
Continue
and insert the copied URL toEndpoint URL
. Then clickCreate
. - Go to the Webhooks Tab, select the created endpoint and 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. - (Optional) In the settings of the payment gateway, enable
Accept pending payments
to enable fast payment processing for the Stripe payment gateways that take several hours/days until a payment is finished.
Paysafecard
Supports recurring payments: no
This are the instructions to become an official paysafecard partner. You can also create a payment gateway with manual code confirmation with a
Coupon
gateway (see below).
- Become a paysafecard partner.
- In your VyHub instance, create a Paysafecard payment gateway, insert your
API Key
and select your desiredEnvironment
. - Click
Create
. - As no IP addresses can be whitelisted, ask paysafecard to give you a cryptographic certificate for authentification.
The private key (
Client Key
) and certificate (Client Certificate
) can be set in the payment gateway settings. TheClient Certificate
is usually in a file named something like001_manXXXXXXXXXX_XXXXXXXX_distributor_paysafecard_com.crt
.
Credits
Supports recurring payments: no
- 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 another
payment gateway for this.
Credits can be renamed with a name that matches your community (gulden, diamonds, ...). Rename in the
general-shop
settings.
Coupon
Supports recurring payments: no
Coupon gateways can be used to manually approve coupons (e.g. paysafecard pins)
- In your VyHub instance, create a coupon payment gateway.
- After a purchase is made and coupons are entered by the user, the coupons need to be approved under
the
confirm purchases
tab on theshop admin
page.
Free
Supports recurring payments: no
The Free
payment gateway is an internal construct. It always exists, can't be deleted and no other payment gateways
can be created with this type.
The Free
payment gateway appears as payment option whenever the total amount to pay is zero. This can happen if there is a zero packet price or a 100%
discount has been applied.