Skip to content

Commit d741883

Browse files
feat(viewcontroller): set allowsavecard flag
1 parent bf88224 commit d741883

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Example/FlutterwaveSDK/ViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class ViewController: UIViewController, FlutterwavePayProtocol {
4747
config.publicKey = "[PUB_KEY]" //Public key
4848
config.encryptionKey = "[ENCRYPTION_KEY]" //Encryption key
4949
config.isPreAuth = false // This should be set to true for preauthoize card transactions
50+
config.allowSaveCard = true // flag to hide/show save card feature
5051
let controller = FlutterwavePayViewController()
5152
let nav = UINavigationController(rootViewController: controller)
5253
controller.amount = "[Amount]" // This is the amount to be charged.

0 commit comments

Comments
 (0)