Skip to content

Help with getting this to work? #13

@UVLabs

Description

@UVLabs

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.

Any help? @brianmc @gnongsie @BryanCar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions