Skip to content

[APAM-747] Pass shipping data to Android session builder for billing form pre-fill#68

Merged
weiping-awx merged 1 commit into
mainfrom
fix/APAM-747-shipping-reuse
May 20, 2026
Merged

[APAM-747] Pass shipping data to Android session builder for billing form pre-fill#68
weiping-awx merged 1 commit into
mainfrom
fix/APAM-747-shipping-reuse

Conversation

@weiping-awx

@weiping-awx weiping-awx commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • On Android, OneOffSession and RecurringWithIntentSession were placing the shipping object only into PaymentIntent.order (as a PurchaseOrder) but never calling .setShipping() on the AirwallexPaymentSession / AirwallexRecurringWithIntentSession builder
  • The Android SDK uses the session-level shipping field to pre-fill billing form fields; without it, the form stayed empty even when shipping data was provided
  • This brings Android behaviour in line with iOS, which already maps shippingsession.billing for pre-fill
Screenshot_20260520_164320

Test plan

  • Run the example app on Android, open a card payment flow via OneOffSession with shipping data — confirm billing fields (name, email, phone, address) are pre-filled
  • Repeat for RecurringWithIntentSession
  • Confirm RecurringSession (unchanged) still pre-fills correctly
  • Confirm iOS behaviour is unaffected

🤖 Generated with Claude Code

OneOffSession and RecurringWithIntentSession were only putting shipping
into PaymentIntent.order, not calling setShipping() on the session
builder, so the Android SDK never populated the billing form fields.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@weiping-awx
weiping-awx merged commit cfab256 into main May 20, 2026
4 checks passed
@weiping-awx
weiping-awx deleted the fix/APAM-747-shipping-reuse branch May 20, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants