File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,14 +53,15 @@ Basic.setPassword("password"); // your Datatrans server to server password
5353V1TransactionsApi transactionsApiInstance = new V1TransactionsApi (defaultClient);
5454
5555AuthorizeRequest authorizeRequest = new AuthorizeRequest ();
56- authorizeRequest. setCurrency (" CHF" );
57- authorizeRequest . setAmount (100L );
58- authorizeRequest . setRefno (String . valueOf(System . currentTimeMillis()));
56+ authorizeRequest. currency (" CHF" )
57+ .amount (100L )
58+ .refno (String . valueOf(System . currentTimeMillis()));
5959
6060CardAuthorizeRequest cardAuthorizeRequest = new CardAuthorizeRequest ();
61- cardAuthorizeRequest. setAlias(" AAABcH0Bq92s3kgAESIAAbGj5NIsAHWC" );
62- cardAuthorizeRequest. setExpiryMonth(" 12" );
63- cardAuthorizeRequest. setExpiryYear(" 21" );
61+
62+ cardAuthorizeRequest. alias(" AAABcH0Bq92s3kgAESIAAbGj5NIsAHWC" )
63+ .expiryMonth(" 12" )
64+ .expiryYear(" 21" );
6465
6566authorizeRequest. setCard(cardAuthorizeRequest);
6667
You can’t perform that action at this time.
0 commit comments