Setting up Stripe Gateway in Wilcity

API Keys

In order to use the Stripe payment gateway, you must first have a 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


Zero-decimal Currency

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

Event Webhook

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:

Testing Stripe

To test Stripe gateway on your site, you can use those card numbers

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



Leave A Comment?