Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
In most of the time, we have to integrate the application with the payment gateway like a payfort payment gateway. for this, we have to follow some steps to integrate a correct integration payment SDK in IOS.
1: go to that URL and download SDK.
https://docs.payfort.com/
2: for success full launch the payfort gateway we need some sample predefined data.
3: we need a signature value that is required at the time to load payfort window. to generate a signature
[self sha1Encode:post]
4: you will get signature value now you have to make a http request to get SDK token for launching payfort controller.
above code will produce SDK token now you have to take view controller and their class name write “PayFortController” .
Now it will launch and you can take dummy card number from their site.
5: you can get a response from that method.
– (void)sdkResult:(id)response{
NSLog(@”data— %@”,response);
}
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
NSDictionary *tmp = [[NSDictionary alloc] initWithObjectsAndKeys: @”SDK_TOKEN”, @”service_command”, @”azPOC”, @”merchant_identifier”, @”3Akqd81fWPfnE5LHz”, @”access_code”, [self sha1Encode:post],@”signature”, @”en”, @”language”, [PayFort getUDID ], @”device_id”, nil];
We are integrating pay fort SDK for iOS from document provided by you https://docs.payfort.com/docs/mobile-sdk/build/index.html#sdk-token-urls
We are getting stuck at very first step where we need to get SDK token for payment
We are getting Signature mismatch error every time I call https://sbpaymentservices.payfort.com/FortAPI/paymentApi API
Let me give you parameters that I am passing in API :
API : https://sbpaymentservices.payfort.com/FortAPI/paymentApi API
Parameter : “access_code” = XNEw23o2DodbqTOLR6V3; “device_id” = “360B7CA4-ABF7-4A00-8EE8-99E3411F6994”; language = en; “merchant_identifier” = qxbVGjJK; “service_command” = “SDK_TOKEN”; signature = 0cdb4c9b705826de3fd3b548515f5916197ff3f38965a38e5527ce9654387623;
I am getting Signature mismatch error when I call above API
And for signature generation I have used same steps provided by you in documents
Can you please help me to get rid out of this or can assist us for better solution ?
Thanks
for successful signature
you need to pass correct value (this one is demo value) [request setValue:@”XYZ9239-yu892Q78″ forKey:@”merchant_reference”]; [request setValue:sdk_token forKey:@”sdk_token”];
and . this one (this is demo data)
NSDictionary *tmp = [[NSDictionary alloc] initWithObjectsAndKeys: @”SDK_TOKEN”, @”service_command”, @”azPOCM”, @”merchant_identifier”, @”3Akqd81fWPfnE5L”, @”access_code”, [self sha1Encode:post],@”signature”, @”en”, @”language”, [PayFort getUDID ], @”device_id”, nil];
if this one is correct than it will become success.fd
if this one is correct than it will become success.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.