SHV in payments (payin and payout)
This option verifies the holder at payment time, with a card, a bank account or Bizum.
When creating the order of a payin or a payout you send source_holder_verification inside extra_data. If the policy does not accept the result, the order ends in REFUSED and is not charged.
| Payment method | Operation | Verification |
|---|---|---|
| Card or account | Payin and payout | Immediate |
| Bizum | Payin (push and redirection) and payout | Immediate or asynchronous (the first time). See Bizum |
The source_holder_verification block and its policy are described in Policy and results.
How to send it
The verification is requested by including extra_data.source_holder_verification in the order creation request. The block is the same for a payin and for a payout:
{
"signature": "341f7de8e6fc49da8d8736473af6b03a",
"amount": 10,
"operative": "AUTHORIZATION",
"customer_ext_id": "test",
"service": "E8952860-5441-45A2-9233-33651DABA250",
"extra_data": {
"profile": {
"first_name": "Luis",
"last_name": "test"
},
"source_holder_verification": {
"enabled": true,
"accepted_verification_results": ["MATCH", "PARTIAL_MATCH"],
"allow_unavailable": true,
"allow_error": false,
"first_name": "Pedro",
"last_name": "Perez"
}
}
}
If you do not send first_name / last_name inside source_holder_verification, they are taken from extra_data.profile.
Where the result is returned
In transactions[].source_holder_verification of the payment response, of the notification to url_post and of GET /order/{uuid}. Format in Policy and results.
Reusing verifications
For cards and bank accounts, you can avoid repeated verifications and their costs: if the source has already been verified, that verification is reused instead of performing a new one.
A previous verification is reused when it meets all of the following:
- it was performed in the last 6 months,
- it belongs to the same
sourceand the same verification method (NAMEorIDENTIFICATION_NUMBER), - its result meets the policy indicated in the current payment.
This option is not enabled by default: it is configured internally for each service and you must request it from Paylands.
Bizum
It works like the rest of the payments (same source_holder_verification body inside extra_data) and is available in payin via push and via redirection, and in payout ("apm": "BIZUM"). What changes is how the payment method is identified:
- The payment method is identified by the user's phone number (
extra_data.profile.phone), not by asource. With SHV, both the verification and the charge use that phone number. - The user must give their consent in their banking app (BizumID). The first time the verification is asynchronous: the order stays in
PENDING_HOLDER_VERIFICATION(it is not an error, nothing has been charged yet). Afterwards it is immediate. - You need a REDSYS service with Bizum enabled.
{
"extra_data": {
"profile": {
"first_name": "Luis",
"last_name": "Pérez López",
"phone": { "prefix": "34", "number": "700000000" }
},
"source_holder_verification": {
"enabled": true,
"verification_method": "NAME",
"accepted_verification_results": ["MATCH", "PARTIAL_MATCH"],
"allow_unavailable": false
}
}
}
Consent, flow diagrams, order statuses, scenarios and frequently asked questions: SHV with Bizum in detail.
Next steps
- Policy and result: Policy and results.
- Test data: Sandbox.