Created
October 5, 2019 09:27
-
-
Save deveshkharve/47f32afaf5372dc7ecfe848e3bfa7ff7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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