-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PP-11212 Improve go-live and test account journeys
Replace the 3 buttons on the services page to create live and test gateway accounts for Stripe/Non-Stripe with just 2 buttons: - Go live - Add test account When "Go live" is clicked, determine the PSP from the go-live stage for the service. If the service hasn't completed a go-live request, show an error. When "Add a test account" is clicked, show a new page with radio buttons to select the PSP for the test account (Stripe/Worldpay/Sandbox) On the page that asks for details about the service/gateway account before creating the gateway account in Pay: - remove the radio button for Live/Not live, as we already know the answer now - remove the radio buttons for selecting the PSP, as we already know the answer now - prefill the description input, but still allow this to be edited - hide the "Stripe credentials" section if we are not adding a Stripe account.
- Loading branch information
1 parent
db82588
commit f94a898
Showing
21 changed files
with
269 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const liveStatus = { | ||
live: 'live', | ||
notLive: 'not-live' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const providers = { | ||
sandbox: 'sandbox', | ||
worldpay: 'worldpay', | ||
smartpay: 'smartpay', | ||
epdq: 'epdq', | ||
stripe: 'stripe' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {IsBoolean, IsEmail, IsNotEmpty, IsString} from 'class-validator' | ||
|
||
import Validated from '../common/validated' | ||
|
||
export default class AddTestAccountFormRequest extends Validated { | ||
@IsNotEmpty() | ||
@IsString() | ||
public provider: string; | ||
|
||
public constructor(formValues: {[key: string]: string}) { | ||
super() | ||
this.provider = formValues.provider | ||
this.validate() | ||
} | ||
} |
Oops, something went wrong.