You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Add Banxa create-order support and simplify related models and client logic.
- Introduce CreateOrderRequest and CheckoutOrder models and PAYMENT_METHOD_CARD constant (models/create_order.rs).
- Implement BanxaClient::create_buy_order to POST create-order requests and return checkout info; remove build_quote_url and related URL-building logic (client.rs, provider.rs).
- Add BUY_ORDER_TYPE constant and rename/get specific fiat methods to *_buy variants; use PAYMENT_METHOD_CARD in quote calls.
- Remove obsolete Coin type and several order fields (crypto, fiat, crypto_amount, fees, country) and export adjustments (models/asset.rs, models/order.rs, models/mod.rs).
- Update mapper tests to match the simplified Order shape (mapper.rs).
- Minor cleanup: inline HMAC finalize/encode call (hmac_signature.rs).
These changes move the buy-quote flow from generating redirect URLs locally to creating orders via Banxa's API and returning the checkout URL and provider transaction id.
0 commit comments