I want to accomplish the following tasks:
- Create a customer
- Recharge wallet with an arbitrary amount given by the user (Add products specified in the bucket equivalent to the amount recharged)
- Generate invoice for this payment
- Deduct the amount using API requests
If arbitrary amount is not possible please suggest some other flow like using bucket group and generating invoice for that.
Can you please mention which APIs need to be used to accomplish this, also how to achieve this on UI?
Edit: I also need an find the amount that needs to be charged to the user (amount given by him + the tax applicable on the specific product)