razorpay / razorpay/razorpay-node

Payment Gateway iFrame has opaque white background instead of transparent / translucent background.

Open
#455 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
243
Forks
128
PR merge metrics
No merged PRs in 30d

Description

Hello, I am facing an issue since a long time and I can't find a solution regarding same on web, When I initiate an payment window, razor pay frame opens but with an opaque white window, instead of transparent white window. here is my code:

const options = {
key: getEnviromentVariable("razorpay_key_id"),
amount: amount * 100,
currency: "INR",
name: props.company_name,
description: "Payment for order #" + order_id,
image: getEnviromentVariable("LOGO_DARK_URL"),
order_id: razorpay_order_id,
handler: function (response: any) { ... },
prefill: {
name: props.user_name,
contact: props.mobile,
},
theme: {},
};

const paymentObject = new (window as any).Razorpay(options);
paymentObject.open();

Razorpay SDK Version: 2.9.6

Expected window:

Image

What my code is showing:

Image

You can clearly see that there is no transparency in background.

Please guide me if any code changes required or is there anything to be done from your side

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the browser flow shown in the issue with Razorpay SDK 2.9.6, the provided options, and paymentObject.open(). Check the SDK documentation and theme configuration for iframe background behavior; done means determining whether transparency is configurable and documenting or resolving the opaque background behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
payments
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.