Skip to main content

fetchOrder

Constants

fetchOrderPromise.<Object>

Fetch the order.

placeOrderPromise.<Object>

Place an order.

getPaymentIntentPromise.<Object>

Get payment intent.

fetchOrder ⇒ Promise.<Object>

Fetch the order.

Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:

  • Error If the response status is not 200.
ParamTypeDescription
tokenstringThe authorization token.

placeOrder ⇒ Promise.<Object>

Place an order.

Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:

  • Error If the response status is not 201.
ParamTypeDescription
tokenstringThe authorization token.
orderObjectThe order data.

getPaymentIntent ⇒ Promise.<Object>

Get payment intent.

Kind: global constant
Returns: Promise.<Object> - The response data.
Throws:

  • Error If the response status is not 201.
ParamTypeDescription
tokenstringThe authorization token.
amountnumberThe amount to be paid.