Warning: By Stripe design, you cannot change a plan’s ID, Regular Price, currency, or Period Days once this plan was created. So, if you want to increase these values, We recommend creating a new plan with the same name, but different plan slug.
In order to use the Stripe payment gateway, you must first have a Stripe.com account. It’s free to create a Stripe account, and testing it is also free.
After you created an account, log into Stripe Dashboard, to get your Stripe API to click on API from the sidebar
Unlike PayPal or 2Checkout, Stripe does not provide 2 type of accounts like Live Publishable key and Sandbox Publishable Key, instead, Stripe provides View test data mode.
Now, please log into your site, from the admin sidebar, click on Wiloke Submission -> Looking for Stripe Settings -> Enter your API keys like this
It’s very important to understand this feature.
For example, Howard Roark comes from the USA. He set up a listing plan like this
but Stripe expects amounts to be provided in a currency’s smallest unit. It means we have to convert dollar to the cent, in other words, Stripe excepts 100*20 = 200 instead of 20.
Unlike the USA, in Japan, there is no decimal for their currency so amount=1 (1 JPY), since ¥1 is the smallest currency unit. It means Stripe excepts 20 instead of 100*20.
You can find more information here https://stripe.com/docs/currencies#zero-decimal
This configuration is very important. It helps to use Paid Trial (Stripe only supports Free Trial), Downgrade and Upgrade Listing Plan.
Now, log into your Stripe account, from the Stripe Dashboard, click on API -> Webhook -> Add Endpoint -> Enter your is like this structure:
Setting up Endpoint Secret
Step 1: Go to Stripe and login into account
Step 2: From the Stripe Dashboard, click on Webhooks. If you are using Sandbox mode, enabling Viewing test data then click on your Webhook url
Step 3: Copy the Secret code and paste to Endpoint Secret setting under Wiloke Submission -> Stripe
To test Stripe gateway on your site, you can use those card numbers https://stripe.com/docs/testing#cards
If you are using:
Nonrecurring Listing Plan mode and Event Plan: You can check the invoice under Payments Menu
Recurring Listing Plan: You can check the invoice under Subscriptions Menu