@@ -145,8 +145,8 @@ function generateHeaders() {
145145 const element = document . getElementById ( 'bulk_headers' ) ;
146146 void triggerAnimation ( element ) ;
147147
148- if ( isIntegrator == false ) {
149- console . log ( 'Generating hedears with X-Auka -User' ) ;
148+ if ( isIntegrator === false ) {
149+ console . log ( 'Generating hedears with X-Settle -User' ) ;
150150
151151 const privateKey = document . getElementById ( 'private_key' ) . value ;
152152 const method = document . getElementById ( 'method' ) . value ;
@@ -157,21 +157,21 @@ function generateHeaders() {
157157 const body = document . getElementById ( 'body' ) . value ;
158158 const bodyHash = getHash ( body ) ;
159159 const contentDigest = `SHA256=${ bodyHash } ` ;
160- const headers = `X-AUKA -CONTENT-DIGEST=${ contentDigest } &X-AUKA -MERCHANT=${ merchantID } &X-AUKA -TIMESTAMP=${ timestamp } &X-AUKA -USER=${ apiUser } ` ;
160+ const headers = `X-SETTLE -CONTENT-DIGEST=${ contentDigest } &X-SETTLE -MERCHANT=${ merchantID } &X-SETTLE -TIMESTAMP=${ timestamp } &X-SETTLE -USER=${ apiUser } ` ;
161161 const message = `${ method } |${ url } |${ headers } ` ;
162162 const signature = getSignedMessage ( privateKey , message ) ;
163163 const authorization = 'RSA-SHA256 ' + signature ;
164164 const bulkHeaders = `Accept:application/vnd.mcash.api.merchant.v1+json
165165Content-Type:application/json
166- X-Auka -Merchant:${ merchantID }
167- X-Auka -User:${ apiUser }
168- X-Auka -Timestamp:${ timestamp }
169- X-Auka -Content-Digest:${ contentDigest }
166+ X-Settle -Merchant:${ merchantID }
167+ X-Settle -User:${ apiUser }
168+ X-Settle -Timestamp:${ timestamp }
169+ X-Settle -Content-Digest:${ contentDigest }
170170Authorization:${ authorization } ` ;
171171
172172 element . value = bulkHeaders ;
173173 } else {
174- console . log ( 'Generating hedears with X-Auka -Integrator' ) ;
174+ console . log ( 'Generating hedears with X-Settle -Integrator' ) ;
175175
176176 const privateKey = document . getElementById ( 'private_key' ) . value ;
177177 const method = document . getElementById ( 'method' ) . value ;
@@ -182,16 +182,16 @@ Authorization:${authorization}`;
182182 const body = document . getElementById ( 'body' ) . value ;
183183 const bodyHash = getHash ( body ) ;
184184 const contentDigest = `SHA256=${ bodyHash } ` ;
185- const headers = `X-AUKA -CONTENT-DIGEST=${ contentDigest } &X-AUKA -INTEGRATOR=${ integratorID } &X-AUKA -MERCHANT=${ merchantID } &X-AUKA -TIMESTAMP=${ timestamp } ` ;
185+ const headers = `X-SETTLE -CONTENT-DIGEST=${ contentDigest } &X-SETTLE -INTEGRATOR=${ integratorID } &X-SETTLE -MERCHANT=${ merchantID } &X-SETTLE -TIMESTAMP=${ timestamp } ` ;
186186 const message = `${ method } |${ url } |${ headers } ` ;
187187 const signature = getSignedMessage ( privateKey , message ) ;
188188 const authorization = 'RSA-SHA256 ' + signature ;
189189 const bulkHeaders = `Accept:application/vnd.mcash.api.merchant.v1+json
190190Content-Type:application/json
191- X-Auka -Merchant:${ merchantID }
192- X-Auka -Integrator:${ integratorID }
193- X-Auka -Timestamp:${ timestamp }
194- X-Auka -Content-Digest:${ contentDigest }
191+ X-Settle -Merchant:${ merchantID }
192+ X-Settle -Integrator:${ integratorID }
193+ X-Settle -Timestamp:${ timestamp }
194+ X-Settle -Content-Digest:${ contentDigest }
195195Authorization:${ authorization } ` ;
196196
197197 element . value = bulkHeaders ;
0 commit comments