I’m wondering if anyone would be willing to give me a hand. Not a developer but would like to create a plugin that make use of Rave API (JS code) that you typically would embed on your webpage.
The embedded code is for a payment button feature called Rave (similar to Braintree/Stripe) but only available for use in Nigeria.
Below is a link to the documentation
I would be most grateful if anyone could reach out and hopefully we can build the plugin together.
Hey tomi,
Depending on the level of integration you want it may be very easy.
The simplest and easy way is to use the Rave Checkout button.
Here are the steps.
Create an account at rave and login
On the left menu choose Rave Checkout
On the Rave Checkout page create a new Rave Checkout button.
Copy the button code.
Come to bubble editor and paste the code in an html element.
If the amount to be charged has to come from bubble just insert dynamic content in the “data-amount” field of the copied code.
Congratulations, you can now start receiving payments in Nigeria.
NB: You can pass the payment charge to the customer or you absorb it.
In the demo below i’m passing the payment charge to the customer that is why you see that there is an additional amount.
See a demo below. Try it and if you find any problems hit me up.
Hello @seanhoots ,
First I just want to say thank you! You have no idea how much help you’ve been as I have no clue about API. Following your instructions I got it to work.
My challenge now is the verify payment aspect. I honestly don’t have a clue what to do next. I was told I need to write a webhook to do this in bubble since I cannot copy the sample code based on the documentation here https://flutterwavedevelopers.readme.io/docs/events-webhooks
The verify payment part is not that difficult and i can assist you with that. There is another step which is the checksum. That should be your worry.
Rave pay expect you to generate a hash string (checkum) to make sure your payment is secure.
The payment modal (screen) that is showed above is client-side code so any malicious user can tamper with it. To remedy this you need to generate the checksum using an algorithm rave pay provide with your payment data and secret key. For obvious reasons (your secret key), this operation will have to be done serve-side which you can’t simply do in bubble now. I have some ideas i’m testing now. I’ve PMed you.
Definitely you can’t just copy that. That is just the payload (or response) that rave will send to your api endpoint when you initiate a payment. What you will need to do is to create an api endpoint in bubble and past it in your rave dashboard as explained in the link you sent.