#Rayon-payments

1 messages ยท Page 1 of 1 (latest)

faint lily
#

๐Ÿ‘‹ Happy to help

#

We don't have a single API for the transactions you mentioned

#

Could you share what you want to achieve?

fiery moon
#

I wanted to keep track of the transactions in my Transaction Table in my database . But this table is for all transaction

#

like I mentioned above

#

Could you tell if what I am doing is alright?
I needed to keep track of the transaction said above , so I am listening to different webhook events and creating a row in My transaction table from based on that and giving type myself (eg. transfer , refund , payout)

#

and adding the id of the stripe as the link between my table and stripe

faint lily
#

Yes, using Webhook events to keep track of the actions/transactions is recommended

fiery moon
#

another question , how do I make the webhook go live when using nginx and gunicorn ? Should I create a service from systemd ?

faint lily
#

Test [0] and live [1] mode Webhook endpoints are configured separately and independently in the dashboards. You can create a different endpoints for test and live mode and configure them accordingly in Stripe dashboard.

[0] https://dashboard.stripe.com/test/webhooks
[1] https://dashboard.stripe.com/webhooks

fiery moon
#

Do we not have to run
stripe listen --forward--domain?

#

like we do in development ?

faint lily
#

Forwarding domain is for local testing and development purpose. In live, you should use a hosting service provider to host your webhook app, then configure its URL in the dashboard to listen to events

fiery moon
#

ohh so just adding webhook url is enough in live ?

#

we don't have to do stripe listen like in local testing

fiery moon
#

that's one burden off my head

#

But what about when I am using test keys but in hosted domain

#

hosted server

#

to test

faint lily
#

You'll need to set the Webhook secret to the live one, which will be provided after Webhook URL is configured in the dashboard

fiery moon
#

ok thank you

#

I will try if some error occured imma be back

faint lily
#

No problem! Happy to help ๐Ÿ™‚