File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- import * as midtransClient from ' midtrans-client' ;
1+ import * as midtransClient from " midtrans-client" ;
22
33const snap = new midtransClient . Snap ( {
44 isProduction : false ,
5- serverKey : ' YOUR_SERVER_KEY' ,
6- clientKey : ' YOUR_CLIENT_KEY' ,
5+ serverKey : " YOUR_SERVER_KEY" ,
6+ clientKey : " YOUR_CLIENT_KEY" ,
77} ) ;
88
99const parameters : midtransClient . SnapTransactionParameters = {
1010 transaction_details : {
11- order_id : ' ORDER-ID-' + new Date ( ) . getTime ( ) ,
11+ order_id : " ORDER-ID-" + new Date ( ) . getTime ( ) ,
1212 gross_amount : 200000 ,
1313 } ,
1414} ;
@@ -20,8 +20,8 @@ snap.createTransaction(parameters).then((transaction: midtransClient.SnapTransac
2020
2121const core = new midtransClient . CoreApi ( {
2222 isProduction : false ,
23- serverKey : ' YOUR_SERVER_KEY' ,
24- clientKey : ' YOUR_CLIENT_KEY' ,
23+ serverKey : " YOUR_SERVER_KEY" ,
24+ clientKey : " YOUR_CLIENT_KEY" ,
2525} ) ;
2626
2727core . charge ( { } ) . then ( ( chargeResponse : any ) => {
You can’t perform that action at this time.
0 commit comments