Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support updating payment method in CustomerSheet. #7644

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

samer-stripe
Copy link
Collaborator

@samer-stripe samer-stripe commented Nov 20, 2023

Summary

Support updating payment method in CustomerSheet.

Motivation

Allows merchant to update their Card Brand Choice through CustomerSheet.

Testing

  • Added tests
  • Modified tests
  • Manually verified

@samer-stripe samer-stripe force-pushed the samer/support-update-method-in-customer-sheet branch from 835fc81 to 39392fd Compare November 20, 2023 19:42
Copy link
Contributor

Diffuse output:

OLD: paymentsheet-example-release-master.apk (signature: V1, V2)
NEW: paymentsheet-example-release-pr.apk (signature: V1, V2)

          │           compressed           │           uncompressed           
          ├───────────┬───────────┬────────┼───────────┬───────────┬──────────
 APK      │ old       │ new       │ diff   │ old       │ new       │ diff     
──────────┼───────────┼───────────┼────────┼───────────┼───────────┼──────────
      dex │   3.6 MiB │   3.6 MiB │ +951 B │   7.8 MiB │   7.8 MiB │ +1.9 KiB 
     arsc │   2.3 MiB │   2.3 MiB │    0 B │   2.3 MiB │   2.3 MiB │      0 B 
 manifest │   5.1 KiB │   5.1 KiB │    0 B │  25.4 KiB │  25.4 KiB │      0 B 
      res │ 905.5 KiB │ 905.5 KiB │    0 B │   1.4 MiB │   1.4 MiB │      0 B 
   native │   2.6 MiB │   2.6 MiB │    0 B │     6 MiB │     6 MiB │      0 B 
    asset │     3 MiB │     3 MiB │  +23 B │     3 MiB │     3 MiB │    +23 B 
    other │ 204.5 KiB │ 204.5 KiB │   -3 B │ 460.3 KiB │ 460.3 KiB │      0 B 
──────────┼───────────┼───────────┼────────┼───────────┼───────────┼──────────
    total │  12.5 MiB │  12.5 MiB │ +971 B │  20.9 MiB │  20.9 MiB │ +1.9 KiB 

 DEX     │ old   │ new   │ diff            
─────────┼───────┼───────┼─────────────────
   files │     1 │     1 │   0             
 strings │ 38555 │ 38557 │  +2 (+4 -2)     
   types │ 12687 │ 12689 │  +2 (+3 -1)     
 classes │ 10668 │ 10670 │  +2 (+2 -0)     
 methods │ 55545 │ 55557 │ +12 (+183 -171) 
  fields │ 35730 │ 35740 │ +10 (+221 -211) 

 ARSC    │ old  │ new  │ diff 
─────────┼──────┼──────┼──────
 configs │  292 │  292 │  0   
 entries │ 6936 │ 6936 │  0
APK
    compressed     │     uncompressed     │                               
──────────┬────────┼───────────┬──────────┤                               
 size     │ diff   │ size      │ diff     │ path                          
──────────┼────────┼───────────┼──────────┼───────────────────────────────
  3.6 MiB │ +951 B │   7.8 MiB │ +1.9 KiB │ ∆ classes.dex                 
  6.4 KiB │  +23 B │   6.2 KiB │    +23 B │ ∆ assets/dexopt/baseline.prof 
 49.9 KiB │   -5 B │ 147.1 KiB │      0 B │ ∆ META-INF/MANIFEST.MF        
 65.6 KiB │   +2 B │ 147.1 KiB │      0 B │ ∆ META-INF/CERT.SF            
──────────┼────────┼───────────┼──────────┼───────────────────────────────
  3.7 MiB │ +971 B │   8.1 MiB │ +1.9 KiB │ (total)
DEX
STRINGS:

   old   │ new   │ diff       
  ───────┼───────┼────────────
   38555 │ 38557 │ +2 (+4 -2) 
  + Lta/a3;
  + Lta/b3;
  + [Lta/m2;
  + ~~R8{backend:dex,compilation-mode:release,has-checksums:false,min-api:21,pg-map-id:624832b,r8-mode:full,version:8.1.65}
  
  - [Lta/j2;
  - ~~R8{backend:dex,compilation-mode:release,has-checksums:false,min-api:21,pg-map-id:492d517,r8-mode:full,version:8.1.65}
  

TYPES:

   old   │ new   │ diff       
  ───────┼───────┼────────────
   12687 │ 12689 │ +2 (+3 -1) 
  + Lta/a3;
  + Lta/b3;
  + [Lta/m2;
  
  - [Lta/j2;
  

METHODS:

   old   │ new   │ diff            
  ───────┼───────┼─────────────────
   55545 │ 55557 │ +12 (+183 -171) 
  + bd.r0 K(String, t3, i, d) → Object
  + ce.n <init>(k, q2, String)
  + ce.n a(n, q2, String) → n
  + com.stripe.android.customersheet.CustomerSheetActivity i() → u1
  + com.stripe.android.customersheet.CustomerSheetViewModel_registerFromActivity_3 <init>(e, u1)
  + de.f0 <init>(q2, String, String, String, String)
  + de.f0 a(f0, q2, String) → f0
  + de.h <init>(boolean, b3)
  + de.h a(String, s3, d) → Object
  + de.h b(e, d) → Object
  + de.h c(String, d) → Object
  + de.h d(d) → Object
  + de.h e(String, d) → Object
  + de.h f(d) → Object
  + de.h g() → boolean
  + de.h h(d) → Object
  + e1.k o(w2, h, d) → Object
  + ih.j a(w1, c, m, i, int, int)
  + ih.j c(a2, a, m, c, c, i, int, int)
  + ih.j m(z1, c, c, m, i, int, int)
  + ih.j o(x1, m, i, int, int)
  + p0.j0 <init>(a2, a, m, c, c, int, int)
  + p0.o0 <init>(a2, c, c, int, a)
  + qe.a A(int) → boolean
  + qe.a B(View)
  + qe.a o(Application, h, h) → b3
  + qe.a r(r3) → s3
  + qe.a s(JSONObject) → l3
  + qe.a t(i) → l1
  + qe.a u(String, int, int, d) → Object
  + qe.a v(BitmapFactory_Options, String, c) → Object
  + qe.a w(String) → String
  + qe.a x(String, Object[]) → String
  + qe.a y(String, JSONObject) → String
  + qe.a z(String) → int
  + ta.a0 <init>(q2)
  + ta.a1 <init>(u1, w2, d)
  + ta.a2 <init>(List, boolean, boolean, f, c)
  + ta.a2 a() → c
  + ta.a2 b() → List
  + ta.a2 c() → boolean
  + ta.a2 d() → boolean
  + ta.a2 e() → boolean
  + ta.a3 <init>(b3, d)
  + ta.a3 i(Object) → Object
  + ta.b1 <init>(u1, d)
  + ta.b2 <init>(i2, d)
  + ta.b3 <init>(Context, l, r2, h, h, h)
  + ta.b3 a(String, s3, d) → Object
  + ta.b3 b(e, d) → Object
  + ta.b3 c(String, d) → Object
  + ta.b3 d(d) → Object
  + ta.b3 e(String, d) → Object
  + ta.b3 f(d) → Object
  + ta.b3 g() → boolean
  + ta.b3 h(d) → Object
  + ta.b3 i(c) → Object
  + ta.c0 <init>(q2)
  + ta.c2 <init>(i2, d)
  + ta.c2 i(Object) → Object
  + ta.d2 <init>(int, e)
  + ta.d2 compare(Object, Object) → int
  + ta.e1 <init>(u1, l3, d)
  + ta.e2 <init>(i2, d)
  + ta.f1 <init>(u1, d)
  + ta.f2 <init>(i2, d)
  + ta.g1 <init>(u1, d)
  + ta.g2 <init>(i2, n, w0, d)
  + ta.g2 F(Object, Object) → Object
  + ta.g2 b(Object, d) → d
  + ta.h1 <init>(u1, int)
  + ta.h1 a(z1) → z1
  + ta.h2 <init>(i2, d)
  + ta.h2 i(Object) → Object
  + ta.i1 <init>(u1, d)
  + ta.i2 <init>(a, c, l, e, d, j)
  + ta.i2 a(n, d) → Object
  + ta.i2 b(n, w0, d) → Object
  + ta.i2 c(n, d) → Object
  + ta.j1 <init>(u1, d)
  + ta.j2 <init>(a, a, a, a, a, a, int)
  + ta.j2 get() → Object
  + ta.j a(String, s3, d) → Object
  + ta.j b(e, d) → Object
  + ta.j c(String, d) → Object
  + ta.j d(d) → Object
  + ta.j e(String, d) → Object
  + ta.j f(d) → Object
  + ta.j g() → boolean
  + ta.j h(d) → Object
  + ta.k1 <init>(u1, d)
  + ta.k2 <init>(w)
  + ta.k2 equals(Object) → boolean
  + ta.k2 hashCode() → int
  + ta.k2 toString() → String
  + ta.l1 <init>(u1, w2, d)
  + ta.l2 <init>(Throwable)
  + ta.m1 <init>(u1, d)
  + ta.m1 F(Object, Object) → Object
  + ta.m1 b(Object, d) → d
  + ta.m2 <clinit>()
  + ta.m2 <init>(w)
  + ta.m2 describeContents() → int
  + ta.m2 equals(Object) → boolean
  + ta.m2 hashCode() → int
  + ta.m2 toString() → String
  + ta.m2 writeToParcel(Parcel, int)
  + ta.n1 <init>(u1, int)
  + ta.n2 <init>()
  + ta.n2 c(j) → d0
  + ta.o1 <init>(u1, d)
  + ta.o2 <init>(h)
  + ta.p1 <init>(u1, w2, d)
  + ta.p2 <init>(w2, h)
  + ta.q1 <init>(int, c)
  + ta.q1 a(Object)
  + ta.q1 b() → c
  + ta.q1 equals(Object) → boolean
  + ta.q1 hashCode() → int
  + ta.q2 <init>()
  + ta.q2 a() → h
  + ta.r1 <init>(u1, d)
  + ta.s1 <init>(u1, v, d)
  + ta.s1 F(Object, Object) → Object
  + ta.s1 b(Object, d) → d
  + ta.s1 i(Object) → Object
  + ta.s2 <init>(b3, d)
  + ta.t1 <init>(u1, w2, d)
  + ta.t1 F(Object, Object) → Object
  + ta.t
...✂

@samer-stripe samer-stripe merged commit feb2a61 into master Nov 21, 2023
11 checks passed
@samer-stripe samer-stripe deleted the samer/support-update-method-in-customer-sheet branch November 21, 2023 21:51
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.

None yet

2 participants