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/RaveSDK/ViewController.swift
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,8 @@ class ViewController: UIViewController ,RavePayProtocol {
23
23
}
24
24
25
25
@IBActionfunc showAction(_ sender:Any){
26
-
letconfig=RaveConfig.sharedConfig()
26
+
27
+
letconfig=RaveConfig.sharedConfig()
27
28
config.paymentOptionsToExclude =[]
28
29
config.currencyCode ="NGN" // This is the specified currency to charge in.
29
30
config.email ="[USER'S EMAIL]" // This is the email address of the customer
@@ -32,7 +33,7 @@ class ViewController: UIViewController ,RavePayProtocol {
32
33
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.
33
34
config.firstName ="[USER'S FIRST NAME]" // This is the customers first name.
34
35
config.lastName ="[USER'S SECOND NAME]" //This is the customers last name.
35
-
config.meta =[["metaname":"sdk","metavalue":"ios"]] //This is used to include additional payment information
36
+
config.meta =[["metaname":"iOS-SDK-v2","metavalue":MetaValueDetails(paymentDetails:"", recieptId:"")]] //This is used to include additional payment information
36
37
config.narration ="simplifying payments for endless possibilities"
0 commit comments