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

[BANKCON-5411] Expands payment_method when attaching FCSessions to PI / SI #5624

Conversation

carlosmuvi-stripe
Copy link
Collaborator

@carlosmuvi-stripe carlosmuvi-stripe commented Sep 27, 2022

Summary

Integrators don't currently have a way to retrieve the financial connections account id from the output of CollectBankAccount flow.

Motivation

Feature parity with iOS and StripeJS

Testing

  • Added tests
  • Modified tests
  • Manually verified

Changelog

- [Changed] `CollectBankAccountResult` included intents will now contain the expanded `payment_method` field. 

@@ -342,7 +342,8 @@ internal class USBankAccountFormViewModel @Inject internal constructor(
ApiRequest.Options(
apiKey = lazyPaymentConfig.get().publishableKey,
stripeAccount = lazyPaymentConfig.get().stripeAccountId
)
),
expandFields = emptyList()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jameswoo-stripe we don't need the payment method to be expanded on payment sheet right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we don't need to expand the payment method 👍

Copy link
Contributor

@vardges-stripe vardges-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, lgtm

@github-actions
Copy link
Contributor

Diffuse output:

OLD: paymentsheet-example-release-master.apk (signature: none)
NEW: paymentsheet-example-release-pr.apk (signature: none)

          │          compressed          │          uncompressed          
          ├──────────┬──────────┬────────┼───────────┬───────────┬────────
 APK      │ old      │ new      │ diff   │ old       │ new       │ diff   
──────────┼──────────┼──────────┼────────┼───────────┼───────────┼────────
      dex │ 15.8 MiB │ 15.8 MiB │ +133 B │  53.4 MiB │  53.4 MiB │ +900 B 
     arsc │  1.9 MiB │  1.9 MiB │    0 B │   1.9 MiB │   1.9 MiB │    0 B 
 manifest │  4.1 KiB │  4.1 KiB │    0 B │  18.9 KiB │  18.9 KiB │    0 B 
      res │    1 MiB │    1 MiB │    0 B │   1.8 MiB │   1.8 MiB │    0 B 
   native │  2.5 MiB │  2.5 MiB │    0 B │   5.9 MiB │   5.9 MiB │    0 B 
    asset │    3 MiB │    3 MiB │   -1 B │     3 MiB │     3 MiB │   -1 B 
    other │ 81.8 KiB │ 81.8 KiB │    0 B │ 155.7 KiB │ 155.7 KiB │    0 B 
──────────┼──────────┼──────────┼────────┼───────────┼───────────┼────────
    total │ 24.3 MiB │ 24.3 MiB │ +132 B │  66.1 MiB │  66.1 MiB │ +899 B 

         │          raw           │            unique             
         ├────────┬────────┬──────┼────────┬────────┬─────────────
 DEX     │ old    │ new    │ diff │ old    │ new    │ diff        
─────────┼────────┼────────┼──────┼────────┼────────┼─────────────
   files │      4 │      4 │    0 │        │        │             
 strings │ 256346 │ 256349 │   +3 │ 219199 │ 219202 │ +3 (+10 -7) 
   types │  45105 │  45106 │   +1 │  41474 │  41475 │ +1 (+1 -0)  
 classes │  38650 │  38651 │   +1 │  38650 │  38651 │ +1 (+1 -0)  
 methods │ 225198 │ 225201 │   +3 │ 217408 │ 217411 │ +3 (+7 -4)  
  fields │ 164462 │ 164464 │   +2 │ 163493 │ 163495 │ +2 (+2 -0)  

 ARSC    │ old  │ new  │ diff 
─────────┼──────┼──────┼──────
 configs │  334 │  334 │  0   
 entries │ 6246 │ 6246 │  0
APK
    compressed    │   uncompressed   │                                
─────────┬────────┼─────────┬────────┤                                
 size    │ diff   │ size    │ diff   │ path                           
─────────┼────────┼─────────┼────────┼────────────────────────────────
 2.4 MiB │ +133 B │ 7.4 MiB │ +900 B │ ∆ classes3.dex                 
   663 B │   -3 B │   531 B │   -3 B │ ∆ assets/dexopt/baseline.profm 
 9.2 KiB │   +2 B │ 9.1 KiB │   +2 B │ ∆ assets/dexopt/baseline.prof  
─────────┼────────┼─────────┼────────┼────────────────────────────────
 2.4 MiB │ +132 B │ 7.4 MiB │ +899 B │ (total)
DEX
STRINGS:

   old    │ new    │ diff        
  ────────┼────────┼─────────────
   219199 │ 219202 │ +3 (+10 -7) 
  + �
  ���
  ��
  ���
  �� 
  ���
  ����2�0�B���¢����R���������0�0�X��¢��
  ¨��
  + ,
  ���
  ��
  
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  ����� �2�0�:��B���������0�¢����JD��������0�0�2�����0	2��
  ��0	2�����0	2������0	H�@ø�ø��ø��ø��¢���
  ��JD��������0�0�2�����0	2��
  ��0	2�����0	2������0	H�@ø�ø��ø��ø��¢������R�����0�X��¢��
  ���
  ��!
  ��¡�0�
  ���¨��
  + ¶�
  ���
  ��
  ���
  ���
  
  ���
  ���
  ��
  ���
  ���
  ���
  ���
  ���
  �� 
  ���
  ���
  ���
  ���
  ��	
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  
  ���
  ���
  ���
  
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ��
  
  ���
  ���
  ���
  ����'�2�0�B�¢����JK������0�2�����0�2�����0�2��������0�0	2��
  ��0�2�����0�2����0
  H @ø�¢������JA������0�2�����0�2�����0�2�����0�2����0
  2��������0�0�H§@ø�¢����JA������0�2�����0�2�����0�2�����0�2����0
  2��������0�0�H§@ø�¢����JA������0�2�����0�2�����0�2��������0�0	2�����0�2����0
  H§@ø�¢����J-������0�2�����0�2��
  ��0�2�� ��0
  H @ø�¢���!�J-�#����0�2�����0�2��
  ��0�2�� ��0
  H @ø�¢���_�J%�%����0&2��
  ��0�2����0
  H @ø�¢���'�(J5�)����0*2��+��0�2��,��0�2��-����0�2����0
  H§@ø�¢���.J5�/����0�2��0��012�� ��0
  2�����������0�0�H @ø�¢���2�3J5�4����0�2��5��062�� ��0
  2�����������0�0�H @ø�¢���7�8JY�9����0*2��:��0�2��;��0�2��<��0�2��=����0�2��>����0?2��-����0�2��@��0A2����0
  H§@ø�¢���BJ#�C��0D2��E��0F2����0
  H @ø�¢���G�HJ#�I����0J2��+��0�2����0
  H§@ø�¢���(J+�K����0L2��+��0�2��M��0N2����0
  H§@ø�¢���OJ+�K����0L2��+��0�2��P��0�2����0
  H§@ø�¢���J-�Q����0J2�����0�2��R��0S2����0
  H @ø�¢���T�UJ#�V����0�2��W��0X2�� ��0
  H§@ø�¢���YJ��Z����0[2����0
  H @ø�¢���\�]J-�^����0J2�����0�2��R��0S2����0
  H @ø�¢���_�UJ%�����0�2��a��0b2�� ��0
  H @ø�¢���c�dJ%�e����0f2��g��0h2�� ��0
  H @ø�¢���i�jJC�k����0�2�����0�2�����0�2��������0�0	2��
  ��0�2����0
  H @ø�¢���l��J)�m��0n2��+��0�2��o��0�2����0
  H§@ø�¢���J9�p����0�2�����0�2��������0�0	2�����0�2����0
  H§@ø�¢���qJ%�r����0s2��t��0u2�� ��0
  H @ø�¢���v�wJ��x��0y2�� ��0
  H @ø�¢���z�]J=�{������0�0�2��|��0}2�����0�2��������0�0	2����0
  H§@ø�¢���~J3������0L2��+��0�2
  ���������0�0	2����0
  H§@ø�¢�����J.�������0*2��+��0�2��-����0�2����0
  H§@ø�¢���J1�������0��2��:����0�2��-����0�2����0
  H§@ø�¢���J'�������0�2�����0�2�� ��0
  H¡@ø�¢������(J7�������0��2�����0�2��������0�0	2����0
  H @ø�¢��������J:�������0�2������0�2������0�2������0�2����0
  H @ø�¢������.J-����	����0�0��2������0�2����0
  H @ø�¢������(J5�������0�2�����0�2�� ��0
  2�����������0�0�H§@ø�¢�����J.�������0��2�����0�2�� ��0
  2��>��0?H§@ø�¢�����J5�������0�2�����0�2�� ��0
  2�����������0�0�H§@ø�¢�����J.�������0��2�����0�2�� ��0
  2��>��0?H§@ø�¢�����J/�������0�2��
  ��0�2�����0�2�� ��0
  H @ø�¢������J7�����0��2�����0�2�� ��0
  2�����������0�0�H @ø�¢��������JI�������0��2�����0�2�����0�2��������0�0	2�� ���0¡�2����0
  H @ø�¢���¢��£�JN�¤�����0��2�����0�2�����0�2��������0�0	2��
  ��0�2�����0�2����0
  H @ø�¢���¥���J*�¦�����0&2��§���0¨�2����0
  H @ø�¢���©��ª�J7�«�����0*2��+��0�2��>��0?2��-����0�2����0
  H§@ø�¢���¬�JB�­���0n2������0�2��®���0�2������0�2������0�2����0
  H @ø�¢���¯��°�J/�±�����0L2��+��0�2��²���0³�2����0
  H§@ø�¢���´�J9�µ�����0�2�����0�2��¶���0·�2��¸���0·�2����0
  H§@ø�¢���¹�J-�µ�����0�2�����0�2��º���0�2����0
  H§@ø�¢���J9�»�����0�2�����0�2��¶���0·�2��¸���0·�2����0
  H§@ø�¢���¹�J-�»�����0�2�����0�2��º���0�2����0
  H§@ø�¢������
  ���¨�¼�
  + Ú�
  ���
  ���
  
  ���
  
  ���
  ���
  
  ���
  
  ��
  
  ���
  
  ���
  
  ���
  ���
  ���
  
  ���
  
  ���
  
  ���
  
  ���
  ���
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  �� 
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  ���
  ��_
  ��
  
  ���
  
  ���
  ���
  ���
  
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ��
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ���
  ��
  
  ���
  ���
  ���
  ��	��� ��2�0�:�
...✂

@carlosmuvi-stripe carlosmuvi-stripe merged commit 176c0ef into master Sep 27, 2022
@carlosmuvi-stripe carlosmuvi-stripe deleted the f/BANKCON-5411_ACH_Expand_payment_method_by_default_when_attaching_FCSessions branch September 27, 2022 16:53
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

3 participants