Skip to content

Commit 14fb4aa

Browse files
committed
Update sdk guide
1 parent ba93a3f commit 14fb4aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paytrail-ios-sdk/paytrail_ios_sdk_guide.docc/paytrail_ios_sdk_guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- *Get token* => ``getToken(tokenizedId:merchantId:secret:completion:)``: retrieve the token of a payment card to be saved and used in token payment
1313
- *Create token payment* => ``createTokenPayment(merchantId:secret:payload:transactionType:authorizationType:completion:)``: create a token payment transaction by the retrieved card token
1414
- *Commit a token authorization hold* => ``tokenCommit(merchantId:secret:transactionId:payload:completion:)``: commit a onhold token authorization
15-
- *Revert an token authorization hold* => ``revertAuthorizationHold(merchantId:secret:transactionId:completion:)``: revert an onhold token authorization
15+
- *Revert an token authorization hold* => ``tokenRevert(merchantId:secret:transactionId:completion:)``: revert an onhold token authorization
1616
- *Pay and add card =>* ``payAndAddCard(merchantId:secret:payload:completion:)``: create a transaction and pay while adding the payment card at the same time
1717

1818
**Payment Views and Components**
@@ -140,7 +140,7 @@ func onCardTokenizedIdReceived(_ tokenizationResult: TokenizationResult) {
140140

141141
**Required APIs and Views**
142142

143-
``createTokenPayment(merchantId:secret:payload:transactionType:authorizationType:completion:)`` | ``tokenCommit(merchantId:secret:transactionId:payload:completion:)`` | ``revertAuthorizationHold(merchantId:secret:transactionId:completion:)`` | `` PaymentWebView``
143+
``createTokenPayment(merchantId:secret:payload:transactionType:authorizationType:completion:)`` | ``tokenCommit(merchantId:secret:transactionId:payload:completion:)`` | ``tokenRevert(merchantId:secret:transactionId:completion:)`` | `` PaymentWebView``
144144

145145
**Required Data Models**
146146

@@ -248,7 +248,7 @@ Button {
248248
// Button view to cancel an onhold transaction/payment
249249
Button {
250250
guard let transacationOnHold = viewModel.transcationOnHold else { return }
251-
PaytrailCardTokenAPIs.revertAuthorizationHold(transactionId: transacationOnHold.transcationId) { result in
251+
PaytrailCardTokenAPIs.tokenRevert(transactionId: transacationOnHold.transcationId) { result in
252252
switch result {
253253
case .success(let success):
254254
// Handle cancel on-hold payment success

0 commit comments

Comments
 (0)