i have got a problem recently trying to make a paypal invoice. well, check this code here.
paypal.invoice.create({
merchant_info: {
email: "EMAIL",
first_name: "FIRST_NAME",
last_name: "LAST_NAME",
business_name: "NAME",
phone: {
country_code: "CODE",
national_number: "NUMBER"
},
address: {
line1: "STREET",
city: "Riyadh",
state: "Riyadh Province",
postal_code: "0000",
country_code: "SA"
}
},
status: "UNPAID",
billing_info: [{
"email": "[email protected]"
}],
items: [],
note: `Thank You For Buying`
})
Ok, i got the invoice made and everything, but the status is “DRAFT”, can someone explain please?
btw i want the status to be “UNPAID”