Open zachweinberg opened 4 years ago
You can already add text (description) to the payment. Just not through a prop.
createOrder={(data, actions) => {
return actions.order.create({
purchase_units: [
{
description: this.state.itemName,
amount: {
currency_code: "USD",
value: this.props.price,
},
},
],
});
}}
@ovxrfl0w thank you!!!!
Can it be sent as a parameter?
It would be great to be able to add a description prop to the component so we can add text to the order details and know what an order was for.