react-code-dataset / wp-calypso /packages /composite-checkout /src /lib /invalid-payment-processor-response-error.ts
react-code-dataset / wp-calypso /packages /composite-checkout /src /lib /invalid-payment-processor-response-error.ts
Download wp-calypso/packages/composite-checkout/src/lib/invalid-payment-processor-response-error.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/composite-checkout/src/lib/invalid-payment-processor-response-error.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/composite-checkout/src/lib/invalid-payment-processor-response-error.ts
-
curl -L -o invalid-payment-processor-response-error.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/composite-checkout/src/lib/invalid-payment-processor-response-error.ts
409 Bytes
| export default class InvalidPaymentProcessorResponseError extends Error { | |
| constructor( paymentProcessorId: string ) { | |
| const message = `Unknown payment processor response for processor "${ paymentProcessorId }". Payment processor functions should return one of makeSuccessResponse, makeRedirectResponse, or makeErrorResponse.`; | |
| super( message ); | |
| this.name = 'InvalidPaymentProcessorResponseError'; | |
| } | |
| } | |