-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I downloaded this repository and replaced the values here: https://github.com/CyberSource/cybersource-flex-samples-php/blob/master/ExternalConfiguration.php#L46-L48
$this->merchantID = "testrest";
$this->apiKeyID = "08c94330-f618-42a3-b09d-e1e43be5efda";
$this->secretKey = "yBJxy6LjM2TmcPGu+GaJrHtkke25fPpUX+UY6/L/1tE="
With what I received from my sandbox account.
I can go through the checkout flow but when I get to token.php and click Make a Payment with Transient Token I get the error:
[502] Error connecting to the API (https://apitest.cybersource.com/pts/v2/payments)
The response body is:
[id] => 7618630088416533304807 [submitTimeUtc] => 2025-10-30T22:23:29Z [status] => SERVER_ERROR [reason] => SYSTEM_ERROR [message] => Error - General system failure.
I'm not sure what I'm doing wrong. I've worked with many APIs and many SDKs of all sorts including that of payment gateways, but so far everything from cybersource so far has me beat.
P.S there seems to be nowhere on this repo mentioning that the test card to use is 4111 1111 1111 1111 I figured that out because i've seen this card number on some pages of the cybersource doc.