Code Examples
This will show the flow of what happens
The Button that Starts it All
So here the user presses the button to pay, which then calls our backend server (PaymentController.cs) to get the payment link, this then calls OpenStripeCheckout which just opens the internet to this url. Then we repeat.
We simply keep calling the controller to grab information we need if the HTTP request is successful. We get the paymeny Intent Id so we can monitor its satus, we then strip it from being {"paymentID"} to be paymentID so we can then check the payment status to then finally tell if "status" from the JSON is "succeeded" so we can correctly give the buffs if paid.
Last updated