Skip to content

Commit

Permalink
Merge pull request #70 from kaizen-cmd/master
Browse files Browse the repository at this point in the history
Added and used OrderMeta instead of CreateOrderRequestMeta in README.md
  • Loading branch information
suhas-cashfree authored Aug 12, 2024
2 parents e382559 + 4d16454 commit 215bf76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pip install cashfree_pg
from cashfree_pg.models.create_order_request import CreateOrderRequest
from cashfree_pg.api_client import Cashfree
from cashfree_pg.models.customer_details import CustomerDetails
from cashfree_pg.models.order_meta import OrderMeta

Cashfree.XClientId = "<x-client-id>"
Cashfree.XClientSecret = "<x-client-secret>"
Expand All @@ -38,7 +39,7 @@ Generate your API keys (x-client-id , x-client-secret) from [Cashfree Merchant D
Create Order
```python
customerDetails = CustomerDetails(customer_id="walterwNrcMi", customer_phone="9999999999")
orderMeta = CreateOrderRequestOrderMeta(return_url="https://www.cashfree.com/devstudio/preview/pg/web/checkout?order_id={order_id}")
orderMeta = OrderMeta(return_url="https://www.cashfree.com/devstudio/preview/pg/web/checkout?order_id={order_id}")
createOrderRequest = CreateOrderRequest(order_amount=1, order_currency="INR", customer_details=customerDetails, order_meta=orderMeta)
try:
api_response = Cashfree().PGCreateOrder(x_api_version, createOrderRequest, None, None)
Expand Down

0 comments on commit 215bf76

Please sign in to comment.