[PLUGIN] RazorPay

Accept payments from customers using Hosted Payment Gateway from Razorpay.

Plugin contains the following calls:

  • Create Customer
  • Edit Customer
  • Fetch Customer(s)
  • Create Order
  • Fetch Order(s)
  • Fetch Payment
  • Capture Payment (manually)
  • Fetch Multiple Payments
  • Fetch Payment by Order ID
  • Create Payment Link
  • Fetch All Payment Links
  • Fetch Payment Link
  • Send or Resend Notification

Plugin page: Razorpay Payments Plugin | Bubble

Demo: razorpay.bubbleapps.io/demo

Editor: Razorpay | Bubble Editor

6 Likes

Hello Team,

When I try to assign the actual Price (Number) to the RazorPay Create Payment Link, it fails with the message ā€˜The amount must be an integer’. Any help with this or how to rectify this?

Yes, is your input formatted as an integer? I think that’s the first thing to check. Also, sending images is helpful to determine what the cause is.

If you have further questions, send me a personal message. That way we can keep this topic clean for everyone else.

Thanks,

Mido

1 Like

Can you be more specific? The backed table is a Number type, while the front end value I am passing is a :sum of this Number type. I don’t see a way to format as integer? Do you mean, :Format as a Number?

Can you send me a PM along with screenshots of your setup or if you can provide a demo example link, I’d be happy to dive in.

I can’t seem to replicate the issue on my end.

Apologies. I switched to the correct account.

Please find the screenshot of the error and the workflow (where you can see that the value evaluates to a number).

Have you formatted the number with a symbol? Can I see the calculation?

If you inspect the number with debug mode, what is the value?

So just posting the result back here. The issue is that Bubble treats a number as a both Integer and Decimal. So what was happening in my case was that the number was being calculated as a number (though with decimals). Got this truncated and voila. Also you need to multiply the number with 100.

Hope this helps anyone else who uses this plugin. Works seamlessly!

1 Like

Update:

  • Settlements overview Action & Data Calls
  • Settlements overview by ID
  • Updated doc links
  • Fetching card details from Payment ID (Action & Data)
  • Bug fix: Fetching Order by ID
  • Fetch a Customer (Action call), useful for workflow actions
1 Like

New important update. On the 31st of March 2021, the legacy API will be deprecated. I’ve removed all of the old calls two weeks ago and added the new payment links api calls.

The update was a hasty one and as you might have noticed there are about 5 different calls to create Payment Links for the new contract atm, this was due to the issue with the JSON body not ignoring empty values inside the calls.

As of today I’ve launched a new server-side action call for the payment link, all empty fields will automatically be ignored, and best of all you can configure partial payments as well.

On the back-end, I’ve changed the webhook to accept full payment links updates from the Razorpay API, you can apply the same for partial payments.

What should you do?

  • Make sure you use the new payment link call created as of today: RazorPay - Payment Link (Full Server-Side)
  • There are two extra fields on the Plugin tab, make sure to fill those in with your username and api secret
  • Check the Back-end API workflow to view the webhook setup on Bubble
  • Change your webhooks to accept payment links instead of regular payment updates as they will get deprecated in 2/3 days.

Screenshot - 2021-03-28T172445.104

Update: version 1.18.0

  • Create a Subscription Link
  • Create a Plan
  • Fetch Subscription by ID
  • Cancel Subscription
  • Pause a Subscription
  • Resume a Subscription

Hey @nocodeventure, we tried to use this plugin but we are constantly getting this error

"The service Razorpay - Create Payment Link (New) just returned an error (HTTP 400). Please contact the plugin author directly for feedback. Raw error:

{ā€œerrorā€:{ā€œcodeā€:ā€œBAD_REQUEST_ERRORā€,ā€œdescriptionā€:ā€œinvalid access: merchant should not have both [paymentlinks_v2_compat] and [paymentlinks_v2] feature flags assignedā€,ā€œmetadataā€:[],ā€œreasonā€:null,ā€œsourceā€:null,ā€œstepā€:null}}"

Could you help us out, please?

Ps- we’ve migrated to v2 links for razorpay

Update:

  • Added three payment link API’s and deprecated some older ones.
  • Added Smart Collect API for Virtual Accounts

Is this plugin updated as of 2023 ?

Can you be more specific @zain910128

This plugin was launched in 2020. Does its features still work as of today ?

If yes,
Where can i find details on how the payment flow works using this plugin ?

The plugin is used by 212 applications at this point of time. If you have any issues with the plugin, feel free to report them and i’ll make sure we have a look at it.

Demo page: https://razorpay.bubbleapps.io/version-test/razorpay-new
Editor link: Razorpay | Bubble Editor
Doc link: Razorpay Payments - No-Code Venture

Hello @nocodeventure

I was considering to use your plugin to integrate razorpay and allow indian users to pay with their preferred methods like UPI.

Just wanted to ask you if there is anything specific to pay attention at since my company is located in Italy, or something that makes it difficult when company is based in EU instead of India itself.

Also if you know how much Razorpay typically charge on each transaction and if there’s any further charge for the change of currency from INR to EUR.

Thanks in advance!

Hi :wave:

Tbh with you, i dont think we’re the right team to ask regarding transactions. I’d suggest contacting Razorpay.

If you need any specific function in the plugin, we’re more than happy to add it for you.

Best regards,
Mido

1 Like

Hello everyone, I’ve tried to text Razorpay support weeks ago but they’re still not answering.

I’ve been told Razorpay is a payment gatheway available only for indian based freelancers/companies or for indian citizens based outside India.

So it’s not possible for who is based in europe to use razorpay, unless you’re an indian citizen.

Can anybody confirm this based on experience?

Thanks in advance!