razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
121 stars 107 forks source link

RazorPay screen blank in apk release[ works fine in debug mode] #411

Closed rakeshuce1990 closed 2 years ago

rakeshuce1990 commented 2 years ago

Description

I am using react-native-razorpay version 2.2.9. When I am opening the RazorPay interface, it shows a blank white screen.

Razorpay Package Version :

react-native-razorpay: 2.2.9.

Java and Gradle Version (android) :

Gradle - 6.7 OpenJDK 11

What you did:

Built android apk and tried opening RazorPay interface to initiate transaction

What happened:

RazorPay went blank with complete white screen

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Generate signed android bundle
  2. Open RazorPay sdk using RazorpayCheckout.open() method

Code example, screenshot, or link to a repository:

const options = { amount: payload.amount.toString(), currency: 'INR', image: 'https://i.imgur.com/3g7nmJC.png', key: razorpayKey, order_id: payload.id, prefill: { contact: phone, email, name }, theme: { color: colors.theme } } RazorpayCheckout.open(options)

vinutatibil commented 1 year ago

Hi,

Is this issue got resolved.I'm also facing the same issue. We have used capacitor SDK integration . It works fine in debug mode. When it goes to release mode it is showing blank white screen with back button. Any help/input to resolve this issue

vivekshindhe commented 1 year ago

Hey @vinutatibil Please ensure that you've added the proguard rules required for android in the proguard-config. You can find them here

vinutatibil commented 1 year ago

Hi,

Added the proguard rules. Still facing the same problem

Thanks and Regards, Vinuta

On Tue, Feb 28, 2023 at 10:00 AM vivekshindhe @.***> wrote:

Hey @vinutatibil https://github.com/vinutatibil Please ensure that you've added the proguard rules required for android in the proguard-config. You can find them here https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/build-integration#proguard-rules

— Reply to this email directly, view it on GitHub https://github.com/razorpay/react-native-razorpay/issues/411#issuecomment-1447559699, or unsubscribe https://github.com/notifications/unsubscribe-auth/A23JIHRIXI6PP56S57VDAFLWZV5NBANCNFSM53G254NA . You are receiving this because you were mentioned.Message ID: @.***>

vivekshindhe commented 1 year ago

@vinutatibil Please create a ticket on the Razorpay Dashboard. This allows us to help you more closely and close the ticket fairly quickly than over Github. Thanks