Overview
Medusa Wallet integrates with Maxfy to enable seamless Bitcoin purchases directly within the app. You can buy Bitcoin using vouchers at competitive rates and receive the funds instantly in your Lightning wallet.Bitcoin purchases are processed through Maxfy’s payment infrastructure and delivered directly to your Lightning address.
How It Works
The buy flow is designed to be simple and secure:Available Vouchers
The app displays active vouchers with the following information:- Amount: The Bitcoin value of the voucher
- Fee: Processing fee charged by the payment provider
- Total Price: Amount + fee displayed in your selected fiat currency
Current Bitcoin Price
Before making a purchase, you can see the current Bitcoin price in your preferred fiat currency. The price is fetched from the Medusa pricing API and updated in real-time.Email Selection
You can choose which email to use for the purchase receipt:- Account Email
- Other Email
Use the email associated with your Medusa Wallet account (default)
The email you provide will receive the purchase receipt and transaction details from the payment processor.
Payment Process
Creating a Transaction
When you select a voucher and continue to checkout:Secure Checkout
The payment is processed through Stripe’s secure WebView interface:- Transaction ID is generated and tracked
- Payment information is securely transmitted
- Cookies are set for session management
- Bitcoin is delivered upon successful payment
Integration Details
Maxfy API
The buy feature integrates with the Maxfy API: Base URL:https://api.maxfy.app/v1
Available Methods:
getVouchers()- Fetches available active voucherscreateTransaction(lnaddress, email, voucherId)- Creates a purchase transaction
Requirements
To use the Buy Bitcoin feature:- Active Medusa Wallet account
- At least one wallet created
- Lightning address configured (automatic with account creation)
- Valid email address for receipt delivery
Troubleshooting
Why can't I see any vouchers?
Why can't I see any vouchers?
Vouchers may not be available if:
- The Maxfy service is temporarily unavailable
- Your region is not supported
- No active vouchers are configured
What happens if my payment fails?
What happens if my payment fails?
If the payment fails during checkout:
- No Bitcoin will be delivered
- No charges will be made to your payment method
- You can retry the purchase or contact support
How long does delivery take?
How long does delivery take?
Bitcoin is typically delivered to your Lightning address within seconds of payment confirmation. The payment is processed through the Lightning Network for instant settlement.
Can I use a different email for the receipt?
Can I use a different email for the receipt?
Yes, you can choose to use your account email or provide a different email address specifically for the purchase receipt. This is useful if you want receipts sent to a separate accounting or personal email.
Related Features
Lightning Address
Learn more about your Lightning address
Wallet Management
Manage multiple wallets for organizing funds