PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, November 11, 2022

[FIXED] How to disable Pay Later payment option in Razorpay react-native

 November 11, 2022     payment-gateway, razorpay, react-native     No comments   

Issue

I am using react-native-razorpay in my application. I want to hide some payment methods on the Razorpay payment page.

I am able to hide or disable Net Banking and Wallet options but the Pay Later option doesn't disable.

This the code i used

  var options = {
    image: '',
    currency: 'INR',
    key: '***********',
    amount: Amount,
    name: 'MY APP',
    prefill: {
      email: Email,
      contact: Number,
      name: Name
    },
    theme: {color: 'red'},
    method: {
      netbanking: false,
      card: true,
      wallet: false,
      upi: true,
      paylater: false
    },
  }

  RazorpayCheckout.open(options).then((data) => {})

How to hide or disable Pay Later payment option in react-native-razorpay


Solution

config: {
      display: {
        hide: [
        { method: 'paylater' },
        { method: 'emi' }
      ],
      preferences: { show_default_blocks: true }
      }
    }


Answered By - sabarikobagapu
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing