androidionic5razorpay

how to get order_id from razorpay in ionic 5?


   var options = {
      description: 'Credits towards consultation',
      image: 'https://i.imgur.com/3g7nmJC.png',
      //order_id: 'order_DBJOWzybf0sJbb',
      currency: 'INR',
      key: 'yourKey',
      amount: '100',
      name: 'Acme Corp',
      prefill: {
        email: '',
        contact: '',
        name: '',
      },
      theme: {
        color: '#df2929'
      },

      modal: {
        ondismiss: function () {
          alert('dismissed')
        }
      }
    };

Solution

  • order id get by Api provider backend server.