Search Posts

Category: payfort

HTTP POST Request from ionic 3 – PayFort Integration (Redirect Mode)

I’m attempting to integrate PayFort to an ionic app. No SDK available for ionic so I’m integrating Redirect Mode where we just open a Webpage from Supplier. Using HttpClient on ionic let data = JSON.stringify({ ‘access_code’ : ‘xxxxxxxx’, ‘amount’ : ‘10000’, ‘command’ : ‘AUTHORIZATION’, ‘currency’ : ‘SAR’, ‘customer_email’ : ‘[email protected]’, ‘language’ : ‘en’, ‘merchant_identifier’ : ‘xxxxxxxx’, ‘merchant_reference’ : ‘xxxxx-xxxxx-xxxx-xxxxx’, ‘payment_option’ : ‘MASTERCARD’, ‘signature’ : ‘xxxxxxxxxxxxxxxxxxxxxx’ }); return new Promise((resolve, reject) => { this.http .post(apiUrl,data,options) .subscribe( […]