paytabscom / paytabs-ios-library-sample

This repository contains latest static framework (.framework), resources bundle (.bundle), sample apps for both Objective-C and Swift, and documentation to get SDK integrated in the Xcode projects.
MIT License
12 stars 11 forks source link

Save Card instead of asking user again and Again #57

Closed sunnysannii1 closed 3 years ago

sunnysannii1 commented 3 years ago

is there any option in SDK where user can save card in Pay tab sdk and just select when to use instead of adding again

MuhamedAdly commented 3 years ago

you can use the tokenization feature, you can enable tokenization by setting the parameter of tokeniseType with your preferred type and will receive a token and a transaction ref in the first successful transaction, you should save them and pass them again in the configuration for the next payments.

you can find more details here: https://github.com/paytabscom/paytabs-ios-library-sample#tokenisation

sunnysannii1 commented 3 years ago

I Tried with token and reference and save the Card but when begin to pay next it say Unable to Process your request

[Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}

sunnysannii1 commented 3 years ago

func paymentManager(didRecieveValidation error: Error?) { print(error?.localizedDescription ?? "") }

it returns "Unable to process your request" after I passed reference and token in configuration

sunnysannii1 commented 3 years ago

Token: 2C4651BF67A3EC33C6B691F9678678B1 Transaction Reference: TST2116000194301 here is items

MuhamedAdly commented 3 years ago

Please send a request to enable the tokenization & recurring to the support team at cs@paytarbs.com.