SAP Digital Payments - Get payment card registration URL
Get URL of payment card registration UI from payment service provider.
URL
/cnbs/v1/dp/reg_url
Method
POST
Parameters
Required
- Payer (payer_data)
- Customer Number (customer_number)
- Company Code (company_code)
- Redirect URL (redirect_url)
- Session Card (session_card)
- true … add card as session card
- false … add card to customer master account
- Payment Method (payment_method)
- CC … Credit Card
- EC … E-Check
Sample Implementation
Response
- Registration URL (registration_url)
- Session ID (session_id)
- The session ID will be needed to get the payment card data
- Payment Service Provider (psp)
- Status (status)
- Message Type (message_type)
- SAP Message Type.
- Errors:
- E = Error
- A = Abort
- X = Exception
- Others:
- S = Success
- W = Warning
- I = Information
- Message Identifier (message_identification)
- SAP Message ID.
- Message Number (message_number)
- SAP Message Number.
- Message Line (message_line_string)
- SAP Message Text.
Example Response
{
"registration_url": "https://sandbox.payfabric.com/payment/web/wallet/create?customer=19b2b8020aea99a125a16884e0dac0ba16ebca7b9ce&tender=CreditCard&token=2:4us00lbgckfo&MultipleTender=true&ReturnURI=https://epay-s4dev.cnbssoftware.com/",
"session_id": "19b2c8ef4892209acecb362422abd9a030a5ef54b5",
"psp": "PFEP",
"status": {
"message_type": "S",
"message_identification": "/CNBS/X_API",
"message_number": 10,
"message_line_string": "Request successfully processed"
}
}