...
Parameter | Attribute | Description | Required | Length |
---|---|---|---|---|
pbtoken | PB_pbtoken | Token assigned to your merchant account. Your token is displayed at the PagBrasil Dashboard, menu Account > Settings. | Yes | 32 |
authentication | PB_authentication | Required when payment method is Débito Flash™ (value "3DS2"). | No | 4 |
authentication_onfailure | PB_authentication_onfailure | Required when payment method is Débito Flash™ (value "false"). | No | 5 |
...
homolog | PB_homolog | Required when connecting to the sandbox account |
...
Code Block |
---|
$PB.setMerchant({
"pbtoken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"homolog": true
}); |
Production environment:
Code Block |
---|
$PB.setMerchant({
"pbtoken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}); |
4.2. setCustomer
Parameter
Attribute
Description
Required
Length
customer_name
PB_customer_name
(value “true“). See note “q“ | No | 4 |
4.2. setCustomer
Parameter | Attribute | Description | Required | Length | |||
---|---|---|---|---|---|---|---|
customer_name | PB_customer_name | Customer's full name if an individual, or "razão social" if the customer is a company. See note "c" | Yes | 128 | |||
customer_taxid | PB_customer_taxid | CPF if an individual, or CNPJ if the customer is a company. See note "d" | Yes | 14 | |||
customer_email | PB_customer_email | Customer's e-mail address | Yes | 128 | |||
customer_taxidphone | PB_customer_taxid | CPF if an individual, or CNPJ if the customer is a company. See note "d" | Yes | 14 | |||
customer_email | PB_customer_email | Customer's e-mail address | Yes | 128 | |||
customer_phone | PB_customer_phone | Customer's phone number (including the 2-digit area code) | Yes | phone | Customer's phone number (including the 2-digit area code) | Yes | 40 |
address_street | PB_address_street | Customer's street address | Yes | 200 | |||
address_zip | PB_address_zip | Customer's postal code (in Brazil called CEP). Only digits, do not include the dash. | Yes | 8 | |||
address_city | PB_address_city | Customer's city | Yes | 40 | |||
address_state | PB_address_state | Customer's state. See note "e" | Yes | 2 |
...
Anchor | ||||
---|---|---|---|---|
|
...
Anchor | ||||
---|---|---|---|---|
|
setMerchant()
method by adding the parameter "homolog": true
. Please find the sample below.Sandbox environment:
Code Block |
---|
$PB.setMerchant({
"pbtoken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"homolog": true
}); |
Production environment:
Code Block |
---|
$PB.setMerchant({
"pbtoken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}); |