You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Create Product

payments/create-product@1.0.0
2 providers

Create Product

Creates a product in a payment system.

Input
Name
Description
Product type
Result
ID

1.Choose a provider

2.Use CreateProduct with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

name
Name of the product to be created.
description
Description of the product to be created.
type
Indicates whether the product is physical or intangible (e.g. a service, or digital goods). Possible values: - `physical` - `digital` - `service`

Example

Result (object)

productId
Unique identifier of the product.

Example

Implementation details

Provider
mock
Use case
CreateProduct
Author
@superface
Source
Verified