I have created a product in the BlueSnap product catalog. Now I want to make a transaction under that specif product. I have also created a custom field in the product. Now how to pass the value in the custom field using hosted payment field API?
$transactionData = array(
"pfToken" => $pfToken,
"product" => array(
"product-name" => "Product-name",
"product-id" => 566291,
"catalog-sku" => array(
"contract-name" => "contract-name",
"contract-id" => 2617873,
"sku-custom-parameters" => array(
"custom1" => "Custom value",
),
),
),
"amount" => "08",
"currency"=>"USD",
"cardTransactionType"=> "AUTH_CAPTURE",
"cardHolderInfo" => array (
"firstName" => "first-name",
"lastName" => "last-name",
"zip" => "02451"
)
);
You cannot use a product id with the payment API. Maybe this feature can be useful to you instead? Otherwise, BlueSnap has a legacy API that allows you to use product-id and skus, contact their support to get the documentation for that.