Usage
from paystackapi.product import Product
response = Product.create(name="Product PyPaystack test",
description="Description of the product",
price=500000, currency="NGN", **kwargs)Arguments
name: Name of the productdescription: Description of productprice: Price of the product, in kobo(Integer)currency: Currency in which the amount should be charged- **kwargs
Returns
JSON data from Paystack API.
Usage
from paystackapi.product import Product
response = Product.list()Arguments
No argument required.
Returns
JSON data from Paystack API.
Usage
from paystackapi.product import Product
response = Product.fetch(product_id=5499)Arguments
product_id: Product ID (integer).
Returns
JSON data from Paystack API.
Usage
from paystackapi.product import Product
response = Product.update(product_id=5499, **kwargs)Arguments
product_id: Paystack product id.name: Name of the productdescription: Description of productprice: Price of the product, in kobo(Integer)currency: Currency in which the amount should be charged**kwargs
Returns
JSON data from Paystack API.