Help with getting this to work?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with ExternalConfiguration.php lines 46-48 and the payment flow in token.php. Reproduce the checkout using the reported sandbox values and inspect the request to https://apitest.cybersource.com/pts/v2/payments, then compare the configuration and response with the repository's expected Flex API setup. Done means identifying and documenting the cause of the SERVER_ERROR or confirming the required configuration change.
Written by the indexing model from the issue text.
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.
Any help? @brianmc @gnongsie @BryanCar
- Dominant language
- PHP
- Stars
- 5
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CyberSource/cybersource-flex-samples-php
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
CyberSource/cybersource-flex-samples-php#12 · 1 comment ·
-
Invalid merchant ID Open
Difficulty 4/5 3-5 days Newbie friendliness 15/100
CyberSource/cybersource-flex-samples-php#9 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
CyberSource/cybersource-flex-samples-php#5 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
CyberSource/cybersource-flex-samples-php#4 · 3 comments ·
All issues in CyberSource/cybersource-flex-samples-php
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100