Skip to content

Commit 6bb4b5e

Browse files
author
“Gabriel
committed
Editable customer field
1 parent 4ef3e65 commit 6bb4b5e

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "settle-api-utility",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"private": true,
55
"dependencies": {
66
"@testing-library/jest-dom": "^4.2.4",

src/App.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,18 @@ class Experiment extends React.Component {
569569
<p><strong>TID:</strong> {currentTransactionId ? currentTransactionId : 'N/A'}</p>
570570
<p><strong>Status Code:</strong> {currentStatusCode ? `${currentStatusCode}` : 'N/A'} </p>
571571
<p><strong>Status Type:</strong> <span style={{textTransform: "uppercase"}}>{currentStatus ? `${currentStatus}` : 'N/A'} </span></p>
572-
<p><strong>Customer:</strong> {customer ? customer : 'N/A'}</p>
572+
{!advancedOptions && <p><strong>Customer:</strong> {customer ? customer : 'N/A'}</p>}
573+
{advancedOptions && <div className="pure-control-group">
574+
<label htmlFor="customer">Customer</label>
575+
<input
576+
className="pure-input-2-4"
577+
name="customer"
578+
type="text"
579+
id="customer"
580+
value={customer}
581+
onChange={(event) => handleChange(event)}
582+
/>
583+
</div>}
573584
</div>
574585
{isExperimentShortlink &&
575586
<aside className="warn-block">In this experiment we must first scan the static QR, then manually retrieve the "scan token" via the callback URL, and use it as in customer field of the request.</aside>}
@@ -1172,7 +1183,7 @@ class App extends React.Component {
11721183

11731184
switch (experiment) {
11741185
case experiments.PHONENUMBER:
1175-
customer = phonenumber;
1186+
customer = `msisdn:${phonenumber}`;
11761187
break;
11771188
case experiments.SHORTLINK_REUSE:
11781189
case experiments.SHORTLINK_SINGLE:

0 commit comments

Comments
 (0)