A package for making payment with id pay easy
idpay_payment_package: 0.0.1
PaymentRequest request = PaymentRequest(
orderId: 2,
paymentAmountRial: 10000,
callBackUrl: 'ArmanCoders.com/payment',
userFullName: 'Reza Taghizadeh',
userPhone: '+905366526420',
userMail: '[email protected]',
paymentDescription: 'Just For Test');
IdPayResponse response = await IdPayPayment.getIdPayResponse(
request: request, apiKey: '6a7f99eb-7c20-4412-a972-6dfb7cd253a4');
- boolean isSandbox : true . the defualt value is false
IdPayResponse response = await IdPayPayment.getIdPayResponse(
request: request, apiKey: '6a7f99eb-7c20-4412-a972-6dfb7cd253a4',isSandbox: false);
- String paymentLink// is '' if has error
- String error // if not exist is ''
- int statusCode // is 201 if has no error