The SDK reads the key’s prefix and calls the right API, so your code does not change.
Paying in the sandbox
Payments are real testnet transactions. To pay a funding intent:- Create a testnet account in Stellar Lab and fund it with Friendbot, which gives you free testnet XLM.
- Open the intent’s
hosted_funding_url, or send the amount infunding_instructionsto its deposit address from that account.
useroutr.assets.list().
Your destination account must exist on testnet too, and hold a trustline for any issued asset you
ask to receive.
Going live
- Create a
ur_live_key in the dashboard. - Set a mainnet destination account in Settings.
- Point your webhook endpoints at production and store their new secrets.
- Swap the key in your server’s environment.