File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ describe("Checkout", (): void => {
384
384
// });
385
385
386
386
test ( "should have missing identifier on live" , async ( ) : Promise < void > => {
387
- client . setEnvironment ( "LIVE" ) ;
387
+ client . config . environment = "LIVE" ;
388
388
try {
389
389
const liveCheckout = new CheckoutAPI ( client ) ;
390
390
await liveCheckout . PaymentsApi . payments ( createPaymentsCheckoutRequest ( ) ) ;
Original file line number Diff line number Diff line change @@ -79,22 +79,6 @@ class Client {
79
79
80
80
}
81
81
82
- /**
83
- * Sets the environment and updates endpoints in the config.
84
- * @param environment - The environment ("TEST" or "LIVE").
85
- * @param liveEndpointUrlPrefix - Optional live endpoint prefix.
86
- */
87
- public setEnvironment ( environment : Environment , liveEndpointUrlPrefix ?: string ) : void {
88
- // ensure environment is set in config
89
- this . config . environment = environment ;
90
-
91
- if ( environment === "TEST" ) {
92
- this . config . marketPayEndpoint = Client . MARKETPAY_ENDPOINT_TEST ;
93
- } else if ( environment === "LIVE" ) {
94
- this . config . marketPayEndpoint = Client . MARKETPAY_ENDPOINT_LIVE ;
95
- }
96
- }
97
-
98
82
/**
99
83
* Gets the HTTP client instance, creating a default one if not set.
100
84
*/
You can’t perform that action at this time.
0 commit comments