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
let token = "Token from Payment Intent (connecteToken)"
48
48
DojoSDK.executeCardPayment(token: token,
49
49
payload: cardPaymentPayload,
50
50
fromViewController: self) { [weak self] result in
51
51
print(result)
52
52
}
53
53
```
54
-
This example includes only required fields, you can find additional fields that can be passed in the API reference. // TODO URL
54
+
This example includes only required fields, you can find additional fields that can be passed in the API reference.
55
55
56
56
### ApplePay Payment
57
-
```
57
+
```swift
58
58
import dojo_ios_sdk
59
59
60
-
let applePayConfig = DojoApplePayConfig(merchantIdentifier:"merchant.uk.co.paymentsense.sdk.demo.app")
61
-
let applePayPayload = DojoApplePayPayload(applePayConfig: applePayConfig, isSandbox: true)
62
-
let paymentIntent = DojoPaymentIntent(connecteToken: "Token from Payment Intent (connecteToken)", totalAmount: DojoPaymentIntentAmount(value: 120, currencyCode: "GBP")) // TODO - this values should be populated from payment intent
60
+
let applePayConfig = DojoApplePayConfig(merchantIdentifier:"merchant.uk.co.paymentsense.sdk.demo.app", supportedCards: ["visa","mastercard", "amex", "maestro"])
61
+
let applePayPayload = DojoApplePayPayload(applePayConfig: applePayConfig)
DojoPaymentIntent *paymentIntent = [[DojoPaymentIntent alloc] initWithConnecteToken: @"Token from Payment Intent (connecteToken)" totalAmount: [[DojoPaymentIntentAmount alloc] initWithValue: 120 currencyCode:@"GBP"]]; / TODO - this values should be populated from payment intent
0 commit comments