Price
A Price defines what a Product costs: the unit amount, currency, and (for subscriptions) billing interval. A single Product can have many Prices, letting you offer the same item in multiple currencies, tiers, or billing models without duplicating your catalog. Reference a Price by ID when creating Checkout Sessions, Payment Links, or line items, and the customer is charged according to what the Price defines.
{
"id": "price_abc123",
"object": "price",
"name": "string",
"description": "string",
"currency": "EGP",
"unitAmount": 0,
"type": "ONE_TIME",
"recurring": {
"interval": "MONTH",
"intervalCount": 1
},
"customUnitAmount": {
"minimum": 0,
"maximum": 0,
"preset": 0
},
"stock": 0,
"startDate": "string",
"expirationDate": "string",
"active": true,
"createdAt": "string",
"updatedAt": "string",
"productId": "string"
}Payment Intent
A PaymentIntent tracks the full lifecycle of collecting one payment from your customer: from creation, through authorization and 3-D Secure, to capture and final outcome. We recommend creating one PaymentIntent per order: you can inspect its history of Charge attempts, watch its `status` as it transitions, and reference the successful Charge it ultimately produces. PaymentIntents are the object that the hosted Checkout and xpay.js drive on the client to complete a payment.
Product
A Product represents a good or service you sell. Products carry only descriptive information (name, description, images), while their pricing is described separately by Price objects. A single Product can have many Prices: for example, the same digital course offered in EGP and USD, or at different tiers. Use Products to model your catalog and Prices to model how each is sold.