buckaroo-it/BuckarooSDK_PHP

BP-3179 External payments support

Closed this issue · 4 comments

byr0n3 commented

There seems to be no way to create external payments using this SDK. I also noticed there doesn't seem to be any documentation on this, only on the Dutch docs. The documentation that is available however, is very barebones. External payment docs

It'd be nice if there was built-in support for this in the SDK and maybe the documentation on this could be expanded aswel.

byr0n3 commented

After some tinkering I managed to locally create a custom payment provider for this that adds the required parameters as described in the docs. However, the API returns the following channel error:
Channel 'WEB' not supported on action Pay for service externalpayment.
This endpoint doesn't seem to be working as expected, yet it's still described in the documentation.

@byr0n3 ,
Thankyou for contacting us. This feature is not yet implemented within our SDK's,
However we would like to implement this and therefore I created a ticket for it.
I think we can add it to our next sprint which will start on 28-11 and it will last up to 2 weeks.

In the meanwhile I can confirm to you that the channel WEB is not supported for the "External Payment" request.
You can use one of the following channels instead:
BACKOFFICE
POINT-OF-SALE

byr0n3 commented

Thank you for your quick reply! I've managed to get this to work manually by creating a simple ExternalPayment class that extends from the PayablePaymentMethod class and adding the backoffice channel to the config of the BuckarooClient. I also noticed that the English docs have been updated with a section about External Payments and the note about the usage of a different channel, thanks for the quick update!

I think it might be nice to add a section about refunding an external payment in the docs. Simply changing the action to Refund and adding the OriginalTransactionKey does the trick but it might be overlooked.

@byr0n3 ,
Thankyou for the feedback. We'll ad some more information about refunding too.
Good to hear that you've managed to get it work already.
In the future this will be available within the PHP SDK (and Node SDK).