I am using the SANDBOX environment.
Created card_nounce from Web Payment SDK, using testing card details (4111111111111111, 12/24, 111, 12374)
- Successfully generated card-nonce
Create customer_id from PHP SDK.
While I am trying to create a card on file at that time received the following error.
Square\Models\Error::__set_state(array(
‘category’ => ‘INVALID_REQUEST_ERROR’,
‘code’ => ‘INVALID_CARD_DATA’,
‘detail’ => ‘Invalid card data.’,
‘field’ => "source_id",
)),
I am stuck in this process for the last 3 days, please help me out.
Thanks