Configure Card Product

In order for cards to participate in JIT Funded transactions, their associated Card Product must be configured for JIT Funding.

Configure a card product for JIT Funding

This page explains how to configure a card product for JIT Funding. This task is one of the tasks involved in implementing JIT Funding. See JIT Funding Overview for an overview of the entire procedure.

In order for user accounts to be JIT funded, their associated card product must be configured for JIT Funding. You can perform this configuration either:

  • when creating a card product
  • when updating an existing card product.

Note: Card products are complex objects. This page focuses on fields related to JIT Funding and does not attempt to completely document the card product structure. For detailed information on creating or updating card products, see Card Products.


Create a card product

To configure a card product for JIT Funding at the time you create it, send a POST request to the /cardproducts endpoint and include the card product's specifications in JSON format in the body of the request. Set the following fields as indicated:

Name Value
funding_source_token Set to the value of your JIT funding source's token field.
enabled Set to true.
refunds_destination For Managed JIT Funding, set to "PROGRAM_FUNDING_SOURCE". This setting returns refunds to the Program Funding Source.

For Gateway JIT Funding, set to "GATEWAY". This setting returns refunds to the Program Gateway Funding Source.

Sample request bodies

This section shows sample request bodies for creating a card product configured for JIT Funding. These samples are simple in that they specify only required fields, the token field, and the JIT Funding fields. All others are omitted and therefore use their default values.

The following sample creates a card product with JIT Funding enabled for a Managed JIT Funding scenario.

{
"name": "My Card Product Name",
"token": "my_cardproduct_token",
"start_date": "2016-12-15",
"config": {
"jit_funding": {
"program_funding_source": {
"funding_source_token": "my_pfs_token",
"refunds_destination": "PROGRAM_FUNDING_SOURCE",
"enabled": true
}
}
}
}

The following sample creates a card product with JIT Funding enabled for a Gateway JIT Funding scenario.

{
"name": "My Card Product Name",
"token": "my_cardproduct_token",
"start_date": "2016-12-15",
"config": {
"jit_funding": {
"programgateway_funding_source": {
"funding_source_token": "my_pgfs_token",
"refunds_destination": "GATEWAY",
"enabled": true
}
}
}
}

Sample response bodies

The following sample shows the response from creating a card product with Managed JIT Funding enabled.

{
"token": "my_cardproduct_token",
"name": "My Card Product Name",
"active": true,
"config": {
// ... Shortened for brevity
"jit_funding": {
// ... Shortened for brevity
"program_funding_source": {
"enabled": true,
"funding_source_token": "my_pfs_token",
"refunds_destination": "PROGRAM_FUNDING_SOURCE"
}
}
},
"start_date": "2016-12-15"
}

The following sample shows the response from creating a card product with Gateway JIT Funding enabled.

{
"token": "my_cardproduct_token",
"name": "My Card Product Name",
"active": true,
"config": {
// ... Shortened for brevity
"jit_funding": {
// ... Shortened for brevity
"programgateway_funding_source": {
"enabled": true,
"funding_source_token": "my_pgfs_token",
"refunds_destination": "GATEWAY"
}
}
},
"start_date": "2016-12-15"
}