payfort / fort-ios-sdk

MIT License
1 stars 8 forks source link

Need to customize the save details toggle functinality #15

Open Mahesh160393 opened 2 years ago

Mahesh160393 commented 2 years ago

Hello @cetozgen,

I need to customize my payfort SDK save card details feature. used cocoa pod.

On and Off features need to be customized. Please guide me on this.

Thanks

cetozgen commented 2 years ago

Hi @Mahesh160393

Saved card feature can be implemented with Direct Pay function mentioned on the page 37 of guide (https://m.media-amazon.com/images/G/01/APS/api-reference/APS_Integration_Guide_-_iOS.pdf)

After a successful transaction, you should have a mechanism to store masked card information along with the token. The view you choose to show masked card data would depend on your implementation and app design.

In order to accept payments via saved tokens, you simply provide the token saved on above stage in the request of MobileSDK.

Mahesh160393 commented 2 years ago

@cetozgen thank you for response

Mahesh160393 commented 2 years ago

@cetozgen Need to set the toggle by default off. Right now if I changed the toggle from design to off but when PayFortController open by default it is on. Need help on this