@@ -30,13 +30,11 @@ account dashboard](https://checkout.postfinance.ch/account/select). Set `space_i
3030' use strict' ;
3131import { PostFinanceCheckout } from ' postfinancecheckout' ;
3232
33- let macVersion: number = 1 ;
3433let spaceId: number = 405 ;
3534let userId: number = 512 ;
3635let apiSecret: string = ' FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=' ;
3736
3837let config = {
39- mac_version: macVersion ,
4038 space_id: spaceId ,
4139 user_id: userId ,
4240 api_secret: apiSecret
@@ -53,13 +51,11 @@ To get started with sending transactions, please review the example below:
5351' use strict' ;
5452import { PostFinanceCheckout } from ' postfinancecheckout' ;
5553
56- let macVersion: number = 1 ;
5754let spaceId: number = 405 ;
5855let userId: number = 512 ;
5956let apiSecret: string = ' FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=' ;
6057
6158let config = {
62- mac_version: macVersion ,
6359 space_id: spaceId ,
6460 user_id: userId ,
6561 api_secret: apiSecret
@@ -86,7 +82,7 @@ transaction.lineItems=[lineItem];
8682transaction .autoConfirmationEnabled = true ;
8783transaction .currency = ' EUR' ;
8884
89- transactionService .create (spaceId , transaction ).then (function (response ) {
85+ transactionService .create (spaceId , transaction ).then ((response ) => {
9086 let transactionCreate: PostFinanceCheckout .model .Transaction = response .body ;
9187 transactionPaymentPageService .paymentPageUrl (spaceId , <number > transactionCreate .id ).then (function (response ) {
9288 let pageUrl: string = response .body ;
0 commit comments