Comments (4)
Below is the code to perform the payment using the Paymob Pakistan Plugin,
Make sure to initialize before performing the Payment Request and you will get the response from the iFrame in the onPayment function as PaymobResponse type.
final PaymobResponse? response = await PaymobPakistan.instance.pay(
context: context,
currency: "PKR",
paymentType: PaymentType.card, // or you can User paymentType: PaymentType.jazzcash OR PaymentType.easypaisa
amountInCents: "50000", // 500 PKR
onPayment: (response) => setState(() => this.response = response), // Optional
)
PS: Can you show me the code how are you trying to perform the request. Make sure to remove your keys before posting over here.
from paymob_pakistan.
Haha.. I don't know what happened. it's working now. Thank you for your time and I really think it is a great flutter library.
I just want to know (out of scope)
I'm only getting this type. how can I add jazcash and easypaisa.
secondly how can I receive transaction payments from Paymob to my personal account?
from paymob_pakistan.
Contact Paymob to approve your account and Make it LIVE, When your account will be live you will see the Integration ID's of Jazzcash and Easypaisa in your paymob console, Just add those Integration ID's while initializing the PaymobPakistan Object.
Then you can use the parameter PaymentType to PaymentType.jazzcash for Jazzcash and PaymentType.easypaisa for Easypaisa.
If you have any other queries let me know otherwise i'll close this issue.
from paymob_pakistan.
Alright Thank you
from paymob_pakistan.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paymob_pakistan.