Page History
...
To configure the environment, you must set the environment parameter in the getGooglePaymentsClient function. To operate with real data, you must specify the value ’PRODUCTION’, and for testing - the value ’TEST’.
Code Block | ||
---|---|---|
| ||
function getGooglePaymentsClient() {
if ( paymentsClient === null ) {
paymentsClient = new google.payments.api.PaymentsClient({environment: 'TEST'});
}
Return paymentsClient;
} |