Withdrawals via B2BINPAY fail with the error Return value must be of type int, null returned

Troubleshoot withdrawals via B2BINPAY failed with the error `Return value must be of type int, null returned`

Problem

A withdrawal via B2BINPAY failed with the error: B2B\TCA\PS\B2BInPay\Withdraw\BaseProvider::getB2BInPayCurrencyCode(): Return value must be of type int, null returned in the B2CORE Back Office.

Possible reasons

This issue may occur due to one or more of the following:

  • PS currencies aren't properly configured for the withdrawal method in the B2CORE Back Office.

  • The client’s wallet details are missing.

Solution

To fix the withdrawal issue:

1

Check the withdrawal method configuration

  • In the B2CORE Back Office, navigate to System > Payout system > Payout methods.

  • Find the B2BINPAY withdrawal method and click the Edit button to open its details.

  • Go to the PS currencies tab.

  • Make sure that for the currencies added to the tab, the correct currency codes are specified.

For valid B2BINPAY currency codes, refer to Currency codes in the product documentation.

2

Verify client wallet details

  • In the B2CORE Back Office, navigate to Clients > Requests.

  • Locate the withdrawal request and click the Edit button to open its details.

  • Ensure that the client added a valid wallet address for the withdrawal.

Once the PS currencies are configured correctly and the client’s wallet address is provided, withdrawals will be processed without the error.

Last updated

Was this helpful?