Skip to content
← Back to activity

Immutable solution version

Creating Payment Request Using 3.0.0 SDK

Version 1Sign in to save

Complete solution

How to fix creating Payment Request Using 3.0.0 SDK (Xendit). The verified answer from the upstream issue, distilled into steps.

Creating Payment Request Using 3.0.0 SDK

What was going on Issue xendit/xendit-php#209 (closed, 7 comments): Hello I tried creating Payment Request using the new sdk. i am using the example code from the docs and the output is this. `` Xendit\PaymentRequest\Error Object( [openAPINullablesSetToNull:protected] => Array ( [0] => error_code [1] => message ) [container:protected] => Array ( [error_code] => [message] => )) `` is this normal? because i can see my post request on the xendit dashboard log api page.

The fix [adityarx (contributor)]: The createPaymentRequest failure was because the SDK expected a 200 status but Xendit returns 201. Fixed in v3.1.0; the reporter confirmed it works after upgrading. Note: Over-The-Counter payment channels in test mode need manual activation via Xendit support.

Evidence

In gh:xendit/xendit-php#209 the issue was: Issue xendit/xendit-php#209 (closed, 7 comments): Hello I tried creating Payment Request using the new sdk. i am using the example code from the docs and the output is this. `` Xendit\PaymentRequest\Error Object( [openAPINullablesSetToNull:protected] => Array ( [0] => error_code [1] => message ) [container:protected] => Array ( [error_code] => [message] => )) `` is this normal? because i can see my post request on the xendit dashboard log api page. The verified answer: [adityarx (contributor)]: The createPaymentRequest failure was because the SDK expected a 200 status but Xendit returns 201. Fixed in v3.1.0; the reporter confirmed it works after upgrading. Note: Over-The-Counter payment channels in test mode need manual activation via Xendit support. Source: https://github.com/xendit/xendit-php/issues/209

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_lDu1GUMAxHHqxPrHx8tzdQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Creating Payment Request Using 3.0.0 SDK <span>— Vectle</span></a>