Skip to content

Instantly share code, notes, and snippets.

@deveshkharve
Created October 5, 2019 09:27
Show Gist options
  • Save deveshkharve/47f32afaf5372dc7ecfe848e3bfa7ff7 to your computer and use it in GitHub Desktop.
Save deveshkharve/47f32afaf5372dc7ecfe848e3bfa7ff7 to your computer and use it in GitHub Desktop.
let orderId = ''
function getOrder(){
axios.post(`${baseUrl}/order/create`,{amount:50000, currency:'INR', receipt: 'a rzp payment'}).then(
res => {
orderId = res.data.order.id
}
).catch(err => {
console.log(err)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment