xendit / xendit-php

Xendit REST API Client for PHP - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, xenPlatforms
https://developers.xendit.co/api-reference/
MIT License
152 stars 76 forks source link

Creating Payment Request Using 3.0.0 SDK #209

Closed NaMLiM closed 11 months ago

NaMLiM commented 11 months ago

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.

adityarx commented 11 months ago

Hi @NaMLiM, sorry about that. Would you mind giving us a reference id for the Payment Request you created? It would help us debug. Apologies for the inconvenience and thanks for your patience 🙏

NaMLiM commented 11 months ago

hello @adityarx, thanks for the response... this is my reference id INV1021301NS

NaMLiM commented 11 months ago

after looking into createPaymentRequest function i discovered that the function expected to see 200 status code but xendit send 201 status code. is this might be the problem?

adityarx commented 11 months ago

Yeap you're right @NaMLiM, we're fixing this on our end at the moment. Apologies on the issue~

adityarx commented 11 months ago

@NaMLiM our engineering team has just fixed this, could you upgrade to v3.1.0?

NaMLiM commented 11 months ago

@adityarx thank u it work now except for over the counter payment. unsupported channel: merchant 'Anam' has not yet activated channel 'ID::ALFAMART'

i am in development mode and haven't activated my account. is this normal behaviour?

adityarx commented 11 months ago

Ah great to hear its now working @NaMLiM.

Unfortunately for Over-The-Counter Payments in Test mode, we require manual activation. Usually our customer support would be able to help you for this, but for now I've put in the request for you. You should have this channel activated later today.

Since the original issue is resolved, I will close the thread. If you need activation related help, I would suggest visiting this link to reach out to our CS 🙏