Learn how to use payments in your application.
@repo/payments
package in your repository you can find the providers
folder.
There are multiple providers available:
ngrok
to create a tunnel to your local machine. Ngrok will then give you a URL that you can use to test the webhook locally.
To do so, install ngrok and run it with the following command (while your ShipThing web development server is running):
apps/api
by default. If your web development server is not port 3002, please modify the port in the ngrok command./api/webhooks/{providerName}
to it. Replace {providerName}
with the name of the provider you are using. For example, if you are using Stripe, you would use stripe
as the provider name.
/api/webhooks/stripe
and your app is hosted at https://myapp.com
then you need to enter https://myapp.com/api/webhooks/stripe
as the URL.