Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autocapture enabled by default ? where to add orderid ? #36

Closed
LOG-TAG opened this issue Oct 15, 2019 · 2 comments
Closed

autocapture enabled by default ? where to add orderid ? #36

LOG-TAG opened this issue Oct 15, 2019 · 2 comments

Comments

@LOG-TAG
Copy link

LOG-TAG commented Oct 15, 2019

Web code:

var options = {
        key: "rzp_test_123455",
        amount: amount,  
       name: "example name",
        currency: "INR", 
        description: “desc”,
        image: "https://example.url", 
        handler:  (response) =>{
          this.verifySignature(response,this.ptype);
        },
        prefill: {
            name: this.cusName,
            email:   this.cusEmail,
             contact: this.cusPhone,
        },
        notes: {
            address: this.locationId
        },
        theme: {
            color: "#007bf9"
        }
      };

//smid got from orders capture api
 var rzp1 = new Razorpay({...options,order_id:smid});
        rzp1.open();

what is the similar code for flutter please update in docs or auto-capture in flutter is automated?(https://razorpay.com/docs/payment-gateway/orders/)
what is the solution for flutter ? like belove we should pass capture API order_id?

void openCheckout() async {
    var options = {
      'key': 'rzp_test_12345',
      'amount': 2000,
      **'order_id': 'order_DUK12346hdh',**
      'name': 'Acme Corp.',
      'description': 'Fine T-Shirt',
      'prefill': {'contact': 'xxxx', 'email': '[email protected]'},
      'external': {
        'wallets': ['paytm']
      }
    };

    try {
      _razorpay.open(options);
    } catch (e) {
      debugPrint(e);
    }
  }

any other solution available?

@LOG-TAG
Copy link
Author

LOG-TAG commented Oct 15, 2019

solved by adding this 'order_id': 'order_DUK12346hdh',

PLEASE UPDATE IN DOCS

@Abin56
Copy link

Abin56 commented Jan 31, 2023

any repo..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants