Showing Single Record from the External Collection

Api will only return Status =ok for successful and status = error for decline.

i can change the format if it is necesarry

image

You’ll need to send the amounts also and add it to the user’s balance.

You can add another number parameter and call it “Updated Balance”. On your sign up form set it to 0 by default so that it’s always zero when a user signs up. Set the “updated balance” for ALL users to 0.

Then, create your custom action that charges the user. If the charge is successful, update the user’s “updated balance” to the amount that was charged.

Then, you have 2 additional actions: 1. Link to error modal. 2. Link to success modal.

Link to error modal happens only when the updated balance is equal to 0 (if the charge failed).
Link to success modal happens only when the updated balance is not equal to 0 (if the charge was successful).

On the success modal screen, set a 1-second countdown timer. Set the countdown finished action to update the user by adding the logged-in user’s current balance PLUS updated balance. Then set another action on the timer to update the “updated balance” back to zero.

i am using external user authentication. i can send updated balance one as well. Ok let me try