When using PayPal, it is possible to create buttons that include a dropdown selection feature.
For example: https://www.paypal.com/ncp/payment/[token]
https://i.sstatic.net/ifhe10j8.png
I am struggling to implement a similar feature through a session URL, as it requires custom IDs for the entire process and backend logic.
For creating a standard monthly subscription, I typically use the following code:
const response = await fetch('https://api-m.paypal.com/v1/billing/subscr..
...
Is there a way to achieve this with a dropdown menu offering selectable options? Or must I manually create the dropdown and then generate an order based on the selection?
const response = await fetch('https://api-m.paypal.com/v2/checkout/orders'...
...
The issue with this method is that it combines all the choices I want to provide into one list.