You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Example/FlutterwaveSDK/ViewController.swift
+26-22Lines changed: 26 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -32,28 +32,28 @@ class ViewController: UIViewController, FlutterwavePayProtocol {
32
32
33
33
34
34
@objcfunc showExample(){
35
-
letconfig=FlutterwaveConfig.sharedConfig()
36
-
config.paymentOptionsToExclude=[]
37
-
config.currencyCode="NGN" // This is the specified currency to charge in.
38
-
config.email="[USER'S EMAIL]" // This is the email address of the customer
39
-
config.isStaging=true// Toggle this for staging and live environment
40
-
config.phoneNumber="[USER'S PHONE_NUMBER]" //Phone number
41
-
config.transcationRef="[TRANSACTION REF]" // This is a unique reference, unique to the particular transaction being carried out. It is generated when it is not provided by the merchant for every transaction.
42
-
config.firstName="[USER'S FIRST NAME]" // This is the customers first name.
43
-
config.lastName="[USER'S SECOND NAME]" //This is the customers last name.
44
-
config.meta=[["metaname":"sdk","metavalue":"ios"]] //This is used to include additional payment information
45
-
config.narration="simplifying payments for endless possibilities"
controller.amount ="[AMOUNT]" // This is the amount to be charged.
52
-
controller.delegate=self
53
-
self.present(nav, animated:true)
54
-
55
-
}
56
-
35
+
36
+
letconfig=FlutterwaveConfig.sharedConfig()
37
+
config.paymentOptionsToExclude=[]
38
+
config.currencyCode="NGN" // This is the specified currency to charge in.
39
+
config.email="[USER'S EMAIL]"// This is the email address of the customer
40
+
config.isStaging=true // Toggle this for staging and live environment
41
+
config.phoneNumber="[USER'S PHONE_NUMBER]" //Phone number
42
+
config.transcationRef="[TRANSACTION REF]" // This is a unique reference, unique to the particular transaction being carried out. It is generated when it is not provided by the merchant for every transaction.
43
+
config.firstName="[USER'S FIRST NAME]" //This is the customers first name.
44
+
config.lastName="[USER'S SECOND NAME]" //This is the customers last name.
45
+
config.meta=[["metaname":"iOS-SDK-v3","metavalue":MetaValueDetails(paymentDetails:"", recieptId:"")]] //This is used to include additional payment information
46
+
config.narration="simplifying payments for endless possibilities"
0 commit comments