Skip to content

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

@zenzzenpl

Description

@zenzzenpl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions