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
DojoPaymentIntent *paymentIntent = [[DojoPaymentIntent alloc] initWithConnecteToken:@"Token from Payment Intent (connecteToken)"totalAmount: [[DojoPaymentIntentAmount alloc] initWithValue:120currencyCode:@"GBP"]];// TODO move to Swift as well
let token ="Token from Payment Intent (connecteToken)"
30
30
DojoSDK.executeCardPayment(token: token,
31
31
payload: cardPaymentPayload,
32
32
fromViewController: self) { [weakself] result in
33
33
print(result)
34
34
}
35
35
```
36
-
This example includes only required fields, you can find additional fields that can be passed in the API reference. // TODO URL
36
+
This example includes only required fields, you can find additional fields that can be passed in the API reference.
37
37
38
38
### ApplePay Payment
39
39
```swift
40
40
importdojo_ios_sdk
41
41
42
-
let applePayConfig =DojoApplePayConfig(merchantIdentifier:"merchant.uk.co.paymentsense.sdk.demo.app")
43
-
let applePayPayload =DojoApplePayPayload(applePayConfig: applePayConfig, isSandbox: true)
44
-
let paymentIntent =DojoPaymentIntent(connecteToken: "Token from Payment Intent (connecteToken)", totalAmount: DojoPaymentIntentAmount(value: 120, currencyCode: "GBP"))// TODO - this values should be populated from payment intent
42
+
let applePayConfig =DojoApplePayConfig(merchantIdentifier:"merchant.uk.co.paymentsense.sdk.demo.app", supportedCards: ["visa","mastercard", "amex", "maestro"])
43
+
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