@stripe/stripe-react-native 0.33.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/android/build.gradle +8 -3
  3. package/android/gradle.properties +1 -1
  4. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +10 -0
  5. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonView.kt +84 -19
  6. package/android/src/main/java/com/reactnativestripesdk/GooglePayLauncherFragment.kt +1 -1
  7. package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +1 -0
  8. package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +17 -2
  9. package/android/src/main/res/layout/stripe_react_native_google_pay_button.xml +14 -0
  10. package/ios/AddressSheet/AddressSheetView.swift +8 -0
  11. package/ios/CustomerSheet/CustomerSheetUtils.swift +8 -0
  12. package/lib/commonjs/components/AddressSheet.js +1 -1
  13. package/lib/commonjs/components/AddressSheet.js.map +1 -1
  14. package/lib/commonjs/components/PlatformPayButton.js +1 -1
  15. package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
  16. package/lib/commonjs/types/CustomerSheet.js.map +1 -1
  17. package/lib/commonjs/types/PlatformPay.js.map +1 -1
  18. package/lib/commonjs/types/components/GooglePayButtonComponent.js.map +1 -1
  19. package/lib/module/components/AddressSheet.js +1 -1
  20. package/lib/module/components/AddressSheet.js.map +1 -1
  21. package/lib/module/components/PlatformPayButton.js +1 -1
  22. package/lib/module/components/PlatformPayButton.js.map +1 -1
  23. package/lib/module/types/CustomerSheet.js.map +1 -1
  24. package/lib/module/types/PlatformPay.js.map +1 -1
  25. package/lib/module/types/components/GooglePayButtonComponent.js.map +1 -1
  26. package/lib/typescript/src/components/AddressSheet.d.ts +2 -2
  27. package/lib/typescript/src/components/PlatformPayButton.d.ts +2 -2
  28. package/lib/typescript/src/types/CustomerSheet.d.ts +2 -2
  29. package/lib/typescript/src/types/PlatformPay.d.ts +2 -2
  30. package/lib/typescript/src/types/components/GooglePayButtonComponent.d.ts +2 -0
  31. package/package.json +2 -2
  32. package/src/components/AddressSheet.tsx +8 -2
  33. package/src/components/PlatformPayButton.tsx +4 -2
  34. package/src/types/CustomerSheet.ts +8 -2
  35. package/src/types/PlatformPay.ts +2 -2
  36. package/src/types/components/GooglePayButtonComponent.ts +2 -0
  37. package/stripe-react-native.podspec +1 -1
  38. package/android/src/main/res/drawable/book_with_googlepay_button_content.xml +0 -14
  39. package/android/src/main/res/drawable/buy_with_googlepay_button_content.xml +0 -14
  40. package/android/src/main/res/drawable/checkout_with_googlepay_button_content.xml +0 -14
  41. package/android/src/main/res/drawable/donate_with_googlepay_button_content.xml +0 -14
  42. package/android/src/main/res/drawable/googlepay_button_background_shape.xml +0 -5
  43. package/android/src/main/res/drawable/googlepay_button_content.xml +0 -48
  44. package/android/src/main/res/drawable/googlepay_mark_background.xml +0 -12
  45. package/android/src/main/res/drawable/googlepay_mark_content.xml +0 -27
  46. package/android/src/main/res/drawable/order_with_googlepay_button_content.xml +0 -14
  47. package/android/src/main/res/drawable/pay_with_googlepay_button_content.xml +0 -14
  48. package/android/src/main/res/drawable/subscribe_with_googlepay_button_content.xml +0 -14
  49. package/android/src/main/res/drawable-ar/book_with_googlepay_button_content.xml +0 -14
  50. package/android/src/main/res/drawable-ar/buy_with_googlepay_button_content.xml +0 -14
  51. package/android/src/main/res/drawable-ar/checkout_with_googlepay_button_content.xml +0 -14
  52. package/android/src/main/res/drawable-ar/donate_with_googlepay_button_content.xml +0 -14
  53. package/android/src/main/res/drawable-ar/order_with_googlepay_button_content.xml +0 -14
  54. package/android/src/main/res/drawable-ar/pay_with_googlepay_button_content.xml +0 -14
  55. package/android/src/main/res/drawable-ar/subscribe_with_googlepay_button_content.xml +0 -14
  56. package/android/src/main/res/drawable-bg/book_with_googlepay_button_content.xml +0 -14
  57. package/android/src/main/res/drawable-bg/buy_with_googlepay_button_content.xml +0 -14
  58. package/android/src/main/res/drawable-bg/checkout_with_googlepay_button_content.xml +0 -14
  59. package/android/src/main/res/drawable-bg/donate_with_googlepay_button_content.xml +0 -14
  60. package/android/src/main/res/drawable-bg/order_with_googlepay_button_content.xml +0 -14
  61. package/android/src/main/res/drawable-bg/pay_with_googlepay_button_content.xml +0 -14
  62. package/android/src/main/res/drawable-bg/subscribe_with_googlepay_button_content.xml +0 -14
  63. package/android/src/main/res/drawable-ca/book_with_googlepay_button_content.xml +0 -14
  64. package/android/src/main/res/drawable-ca/buy_with_googlepay_button_content.xml +0 -14
  65. package/android/src/main/res/drawable-ca/checkout_with_googlepay_button_content.xml +0 -14
  66. package/android/src/main/res/drawable-ca/donate_with_googlepay_button_content.xml +0 -14
  67. package/android/src/main/res/drawable-ca/order_with_googlepay_button_content.xml +0 -14
  68. package/android/src/main/res/drawable-ca/pay_with_googlepay_button_content.xml +0 -14
  69. package/android/src/main/res/drawable-ca/subscribe_with_googlepay_button_content.xml +0 -14
  70. package/android/src/main/res/drawable-cs/book_with_googlepay_button_content.xml +0 -14
  71. package/android/src/main/res/drawable-cs/buy_with_googlepay_button_content.xml +0 -14
  72. package/android/src/main/res/drawable-cs/checkout_with_googlepay_button_content.xml +0 -14
  73. package/android/src/main/res/drawable-cs/donate_with_googlepay_button_content.xml +0 -14
  74. package/android/src/main/res/drawable-cs/order_with_googlepay_button_content.xml +0 -14
  75. package/android/src/main/res/drawable-cs/pay_with_googlepay_button_content.xml +0 -14
  76. package/android/src/main/res/drawable-cs/subscribe_with_googlepay_button_content.xml +0 -14
  77. package/android/src/main/res/drawable-da/book_with_googlepay_button_content.xml +0 -14
  78. package/android/src/main/res/drawable-da/buy_with_googlepay_button_content.xml +0 -14
  79. package/android/src/main/res/drawable-da/checkout_with_googlepay_button_content.xml +0 -14
  80. package/android/src/main/res/drawable-da/donate_with_googlepay_button_content.xml +0 -14
  81. package/android/src/main/res/drawable-da/order_with_googlepay_button_content.xml +0 -14
  82. package/android/src/main/res/drawable-da/pay_with_googlepay_button_content.xml +0 -14
  83. package/android/src/main/res/drawable-da/subscribe_with_googlepay_button_content.xml +0 -14
  84. package/android/src/main/res/drawable-de/book_with_googlepay_button_content.xml +0 -15
  85. package/android/src/main/res/drawable-de/buy_with_googlepay_button_content.xml +0 -15
  86. package/android/src/main/res/drawable-de/checkout_with_googlepay_button_content.xml +0 -15
  87. package/android/src/main/res/drawable-de/donate_with_googlepay_button_content.xml +0 -15
  88. package/android/src/main/res/drawable-de/order_with_googlepay_button_content.xml +0 -15
  89. package/android/src/main/res/drawable-de/pay_with_googlepay_button_content.xml +0 -15
  90. package/android/src/main/res/drawable-de/subscribe_with_googlepay_button_content.xml +0 -15
  91. package/android/src/main/res/drawable-el/book_with_googlepay_button_content.xml +0 -14
  92. package/android/src/main/res/drawable-el/buy_with_googlepay_button_content.xml +0 -14
  93. package/android/src/main/res/drawable-el/checkout_with_googlepay_button_content.xml +0 -14
  94. package/android/src/main/res/drawable-el/donate_with_googlepay_button_content.xml +0 -14
  95. package/android/src/main/res/drawable-el/order_with_googlepay_button_content.xml +0 -14
  96. package/android/src/main/res/drawable-el/pay_with_googlepay_button_content.xml +0 -14
  97. package/android/src/main/res/drawable-el/subscribe_with_googlepay_button_content.xml +0 -14
  98. package/android/src/main/res/drawable-et/book_with_googlepay_button_content.xml +0 -15
  99. package/android/src/main/res/drawable-et/buy_with_googlepay_button_content.xml +0 -15
  100. package/android/src/main/res/drawable-et/checkout_with_googlepay_button_content.xml +0 -15
  101. package/android/src/main/res/drawable-et/donate_with_googlepay_button_content.xml +0 -15
  102. package/android/src/main/res/drawable-et/order_with_googlepay_button_content.xml +0 -15
  103. package/android/src/main/res/drawable-et/pay_with_googlepay_button_content.xml +0 -15
  104. package/android/src/main/res/drawable-et/subscribe_with_googlepay_button_content.xml +0 -15
  105. package/android/src/main/res/drawable-fi/book_with_googlepay_button_content.xml +0 -15
  106. package/android/src/main/res/drawable-fi/buy_with_googlepay_button_content.xml +0 -15
  107. package/android/src/main/res/drawable-fi/checkout_with_googlepay_button_content.xml +0 -15
  108. package/android/src/main/res/drawable-fi/donate_with_googlepay_button_content.xml +0 -15
  109. package/android/src/main/res/drawable-fi/order_with_googlepay_button_content.xml +0 -15
  110. package/android/src/main/res/drawable-fi/pay_with_googlepay_button_content.xml +0 -15
  111. package/android/src/main/res/drawable-fi/subscribe_with_googlepay_button_content.xml +0 -15
  112. package/android/src/main/res/drawable-fr/book_with_googlepay_button_content.xml +0 -14
  113. package/android/src/main/res/drawable-fr/buy_with_googlepay_button_content.xml +0 -14
  114. package/android/src/main/res/drawable-fr/checkout_with_googlepay_button_content.xml +0 -14
  115. package/android/src/main/res/drawable-fr/donate_with_googlepay_button_content.xml +0 -14
  116. package/android/src/main/res/drawable-fr/order_with_googlepay_button_content.xml +0 -14
  117. package/android/src/main/res/drawable-fr/pay_with_googlepay_button_content.xml +0 -14
  118. package/android/src/main/res/drawable-fr/subscribe_with_googlepay_button_content.xml +0 -14
  119. package/android/src/main/res/drawable-hdpi/googlepay_button_background_image.9.png +0 -0
  120. package/android/src/main/res/drawable-hdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  121. package/android/src/main/res/drawable-hr/book_with_googlepay_button_content.xml +0 -14
  122. package/android/src/main/res/drawable-hr/buy_with_googlepay_button_content.xml +0 -14
  123. package/android/src/main/res/drawable-hr/checkout_with_googlepay_button_content.xml +0 -14
  124. package/android/src/main/res/drawable-hr/donate_with_googlepay_button_content.xml +0 -14
  125. package/android/src/main/res/drawable-hr/order_with_googlepay_button_content.xml +0 -14
  126. package/android/src/main/res/drawable-hr/pay_with_googlepay_button_content.xml +0 -14
  127. package/android/src/main/res/drawable-hr/subscribe_with_googlepay_button_content.xml +0 -14
  128. package/android/src/main/res/drawable-id/book_with_googlepay_button_content.xml +0 -14
  129. package/android/src/main/res/drawable-id/buy_with_googlepay_button_content.xml +0 -14
  130. package/android/src/main/res/drawable-id/checkout_with_googlepay_button_content.xml +0 -14
  131. package/android/src/main/res/drawable-id/donate_with_googlepay_button_content.xml +0 -14
  132. package/android/src/main/res/drawable-id/order_with_googlepay_button_content.xml +0 -14
  133. package/android/src/main/res/drawable-id/pay_with_googlepay_button_content.xml +0 -14
  134. package/android/src/main/res/drawable-id/subscribe_with_googlepay_button_content.xml +0 -14
  135. package/android/src/main/res/drawable-it/book_with_googlepay_button_content.xml +0 -14
  136. package/android/src/main/res/drawable-it/buy_with_googlepay_button_content.xml +0 -14
  137. package/android/src/main/res/drawable-it/checkout_with_googlepay_button_content.xml +0 -14
  138. package/android/src/main/res/drawable-it/donate_with_googlepay_button_content.xml +0 -14
  139. package/android/src/main/res/drawable-it/order_with_googlepay_button_content.xml +0 -14
  140. package/android/src/main/res/drawable-it/pay_with_googlepay_button_content.xml +0 -14
  141. package/android/src/main/res/drawable-it/subscribe_with_googlepay_button_content.xml +0 -14
  142. package/android/src/main/res/drawable-ja/book_with_googlepay_button_content.xml +0 -14
  143. package/android/src/main/res/drawable-ja/buy_with_googlepay_button_content.xml +0 -14
  144. package/android/src/main/res/drawable-ja/checkout_with_googlepay_button_content.xml +0 -14
  145. package/android/src/main/res/drawable-ja/donate_with_googlepay_button_content.xml +0 -14
  146. package/android/src/main/res/drawable-ja/order_with_googlepay_button_content.xml +0 -14
  147. package/android/src/main/res/drawable-ja/pay_with_googlepay_button_content.xml +0 -14
  148. package/android/src/main/res/drawable-ja/subscribe_with_googlepay_button_content.xml +0 -14
  149. package/android/src/main/res/drawable-ko/book_with_googlepay_button_content.xml +0 -14
  150. package/android/src/main/res/drawable-ko/buy_with_googlepay_button_content.xml +0 -14
  151. package/android/src/main/res/drawable-ko/checkout_with_googlepay_button_content.xml +0 -14
  152. package/android/src/main/res/drawable-ko/donate_with_googlepay_button_content.xml +0 -14
  153. package/android/src/main/res/drawable-ko/order_with_googlepay_button_content.xml +0 -14
  154. package/android/src/main/res/drawable-ko/pay_with_googlepay_button_content.xml +0 -14
  155. package/android/src/main/res/drawable-ko/subscribe_with_googlepay_button_content.xml +0 -14
  156. package/android/src/main/res/drawable-mdpi/googlepay_button_background_image.9.png +0 -0
  157. package/android/src/main/res/drawable-mdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  158. package/android/src/main/res/drawable-ms/book_with_googlepay_button_content.xml +0 -14
  159. package/android/src/main/res/drawable-ms/buy_with_googlepay_button_content.xml +0 -14
  160. package/android/src/main/res/drawable-ms/checkout_with_googlepay_button_content.xml +0 -14
  161. package/android/src/main/res/drawable-ms/donate_with_googlepay_button_content.xml +0 -14
  162. package/android/src/main/res/drawable-ms/order_with_googlepay_button_content.xml +0 -14
  163. package/android/src/main/res/drawable-ms/pay_with_googlepay_button_content.xml +0 -14
  164. package/android/src/main/res/drawable-ms/subscribe_with_googlepay_button_content.xml +0 -14
  165. package/android/src/main/res/drawable-nl/book_with_googlepay_button_content.xml +0 -14
  166. package/android/src/main/res/drawable-nl/buy_with_googlepay_button_content.xml +0 -14
  167. package/android/src/main/res/drawable-nl/checkout_with_googlepay_button_content.xml +0 -14
  168. package/android/src/main/res/drawable-nl/donate_with_googlepay_button_content.xml +0 -14
  169. package/android/src/main/res/drawable-nl/order_with_googlepay_button_content.xml +0 -14
  170. package/android/src/main/res/drawable-nl/pay_with_googlepay_button_content.xml +0 -14
  171. package/android/src/main/res/drawable-nl/subscribe_with_googlepay_button_content.xml +0 -14
  172. package/android/src/main/res/drawable-no/book_with_googlepay_button_content.xml +0 -14
  173. package/android/src/main/res/drawable-no/buy_with_googlepay_button_content.xml +0 -14
  174. package/android/src/main/res/drawable-no/checkout_with_googlepay_button_content.xml +0 -14
  175. package/android/src/main/res/drawable-no/donate_with_googlepay_button_content.xml +0 -14
  176. package/android/src/main/res/drawable-no/order_with_googlepay_button_content.xml +0 -14
  177. package/android/src/main/res/drawable-no/pay_with_googlepay_button_content.xml +0 -14
  178. package/android/src/main/res/drawable-no/subscribe_with_googlepay_button_content.xml +0 -14
  179. package/android/src/main/res/drawable-pl/book_with_googlepay_button_content.xml +0 -14
  180. package/android/src/main/res/drawable-pl/buy_with_googlepay_button_content.xml +0 -14
  181. package/android/src/main/res/drawable-pl/checkout_with_googlepay_button_content.xml +0 -14
  182. package/android/src/main/res/drawable-pl/donate_with_googlepay_button_content.xml +0 -14
  183. package/android/src/main/res/drawable-pl/order_with_googlepay_button_content.xml +0 -14
  184. package/android/src/main/res/drawable-pl/pay_with_googlepay_button_content.xml +0 -14
  185. package/android/src/main/res/drawable-pl/subscribe_with_googlepay_button_content.xml +0 -14
  186. package/android/src/main/res/drawable-ru/book_with_googlepay_button_content.xml +0 -14
  187. package/android/src/main/res/drawable-ru/buy_with_googlepay_button_content.xml +0 -14
  188. package/android/src/main/res/drawable-ru/checkout_with_googlepay_button_content.xml +0 -14
  189. package/android/src/main/res/drawable-ru/donate_with_googlepay_button_content.xml +0 -14
  190. package/android/src/main/res/drawable-ru/order_with_googlepay_button_content.xml +0 -14
  191. package/android/src/main/res/drawable-ru/pay_with_googlepay_button_content.xml +0 -14
  192. package/android/src/main/res/drawable-ru/subscribe_with_googlepay_button_content.xml +0 -14
  193. package/android/src/main/res/drawable-sk/book_with_googlepay_button_content.xml +0 -14
  194. package/android/src/main/res/drawable-sk/buy_with_googlepay_button_content.xml +0 -14
  195. package/android/src/main/res/drawable-sk/checkout_with_googlepay_button_content.xml +0 -14
  196. package/android/src/main/res/drawable-sk/donate_with_googlepay_button_content.xml +0 -14
  197. package/android/src/main/res/drawable-sk/order_with_googlepay_button_content.xml +0 -14
  198. package/android/src/main/res/drawable-sk/pay_with_googlepay_button_content.xml +0 -14
  199. package/android/src/main/res/drawable-sk/subscribe_with_googlepay_button_content.xml +0 -14
  200. package/android/src/main/res/drawable-sl/book_with_googlepay_button_content.xml +0 -14
  201. package/android/src/main/res/drawable-sl/buy_with_googlepay_button_content.xml +0 -14
  202. package/android/src/main/res/drawable-sl/checkout_with_googlepay_button_content.xml +0 -14
  203. package/android/src/main/res/drawable-sl/donate_with_googlepay_button_content.xml +0 -14
  204. package/android/src/main/res/drawable-sl/order_with_googlepay_button_content.xml +0 -14
  205. package/android/src/main/res/drawable-sl/pay_with_googlepay_button_content.xml +0 -14
  206. package/android/src/main/res/drawable-sl/subscribe_with_googlepay_button_content.xml +0 -14
  207. package/android/src/main/res/drawable-sr/book_with_googlepay_button_content.xml +0 -14
  208. package/android/src/main/res/drawable-sr/buy_with_googlepay_button_content.xml +0 -14
  209. package/android/src/main/res/drawable-sr/checkout_with_googlepay_button_content.xml +0 -14
  210. package/android/src/main/res/drawable-sr/donate_with_googlepay_button_content.xml +0 -14
  211. package/android/src/main/res/drawable-sr/order_with_googlepay_button_content.xml +0 -14
  212. package/android/src/main/res/drawable-sr/pay_with_googlepay_button_content.xml +0 -14
  213. package/android/src/main/res/drawable-sr/subscribe_with_googlepay_button_content.xml +0 -14
  214. package/android/src/main/res/drawable-sv/book_with_googlepay_button_content.xml +0 -14
  215. package/android/src/main/res/drawable-sv/buy_with_googlepay_button_content.xml +0 -14
  216. package/android/src/main/res/drawable-sv/checkout_with_googlepay_button_content.xml +0 -14
  217. package/android/src/main/res/drawable-sv/donate_with_googlepay_button_content.xml +0 -14
  218. package/android/src/main/res/drawable-sv/order_with_googlepay_button_content.xml +0 -14
  219. package/android/src/main/res/drawable-sv/pay_with_googlepay_button_content.xml +0 -14
  220. package/android/src/main/res/drawable-sv/subscribe_with_googlepay_button_content.xml +0 -14
  221. package/android/src/main/res/drawable-th/book_with_googlepay_button_content.xml +0 -14
  222. package/android/src/main/res/drawable-th/buy_with_googlepay_button_content.xml +0 -14
  223. package/android/src/main/res/drawable-th/checkout_with_googlepay_button_content.xml +0 -14
  224. package/android/src/main/res/drawable-th/donate_with_googlepay_button_content.xml +0 -14
  225. package/android/src/main/res/drawable-th/order_with_googlepay_button_content.xml +0 -14
  226. package/android/src/main/res/drawable-th/pay_with_googlepay_button_content.xml +0 -14
  227. package/android/src/main/res/drawable-th/subscribe_with_googlepay_button_content.xml +0 -14
  228. package/android/src/main/res/drawable-tr/book_with_googlepay_button_content.xml +0 -14
  229. package/android/src/main/res/drawable-tr/buy_with_googlepay_button_content.xml +0 -14
  230. package/android/src/main/res/drawable-tr/checkout_with_googlepay_button_content.xml +0 -14
  231. package/android/src/main/res/drawable-tr/donate_with_googlepay_button_content.xml +0 -14
  232. package/android/src/main/res/drawable-tr/order_with_googlepay_button_content.xml +0 -14
  233. package/android/src/main/res/drawable-tr/pay_with_googlepay_button_content.xml +0 -14
  234. package/android/src/main/res/drawable-tr/subscribe_with_googlepay_button_content.xml +0 -14
  235. package/android/src/main/res/drawable-uk/book_with_googlepay_button_content.xml +0 -14
  236. package/android/src/main/res/drawable-uk/buy_with_googlepay_button_content.xml +0 -14
  237. package/android/src/main/res/drawable-uk/checkout_with_googlepay_button_content.xml +0 -14
  238. package/android/src/main/res/drawable-uk/donate_with_googlepay_button_content.xml +0 -14
  239. package/android/src/main/res/drawable-uk/order_with_googlepay_button_content.xml +0 -14
  240. package/android/src/main/res/drawable-uk/pay_with_googlepay_button_content.xml +0 -14
  241. package/android/src/main/res/drawable-uk/subscribe_with_googlepay_button_content.xml +0 -14
  242. package/android/src/main/res/drawable-v21/googlepay_button_background.xml +0 -7
  243. package/android/src/main/res/drawable-v21/googlepay_button_no_shadow_background.xml +0 -7
  244. package/android/src/main/res/drawable-xhdpi/googlepay_button_background_image.9.png +0 -0
  245. package/android/src/main/res/drawable-xhdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  246. package/android/src/main/res/drawable-xxhdpi/googlepay_button_background_image.9.png +0 -0
  247. package/android/src/main/res/drawable-xxhdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  248. package/android/src/main/res/drawable-xxxhdpi/googlepay_button_background_image.9.png +0 -0
  249. package/android/src/main/res/drawable-xxxhdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  250. package/android/src/main/res/layout/book_with_googlepay_button.xml +0 -20
  251. package/android/src/main/res/layout/buy_with_googlepay_button.xml +0 -20
  252. package/android/src/main/res/layout/checkout_with_googlepay_button.xml +0 -20
  253. package/android/src/main/res/layout/donate_with_googlepay_button.xml +0 -20
  254. package/android/src/main/res/layout/googlepay_mark_button.xml +0 -16
  255. package/android/src/main/res/layout/order_with_googlepay_button.xml +0 -20
  256. package/android/src/main/res/layout/pay_with_googlepay_button.xml +0 -20
  257. package/android/src/main/res/layout/plain_googlepay_button.xml +0 -17
  258. package/android/src/main/res/layout/subscribe_with_googlepay_button.xml +0 -20
  259. package/android/src/main/res/values/googlepay_strings.xml +0 -14
@@ -1 +1 @@
1
- {"version":3,"names":["PlatformPayButton","type","ButtonType","Default","appearance","ButtonStyle","Automatic","onPress","disabled","borderRadius","onShippingMethodSelected","onShippingContactSelected","onCouponCodeEntered","setOrderTracking","style","props","shippingMethodCallback","value","nativeEvent","undefined","shippingContactCallback","couponCodeCallback","orderTrackingCallback","NativeStripeSdk","configureOrderTracking","styles","notDisabled","Platform","OS","nativeButtonStyle","StyleSheet","create","flex","opacity"],"sources":["PlatformPayButton.tsx"],"sourcesContent":["import React from 'react';\nimport {\n AccessibilityProps,\n StyleProp,\n ViewStyle,\n TouchableOpacity,\n StyleSheet,\n Platform,\n NativeSyntheticEvent,\n} from 'react-native';\nimport NativeStripeSdk from '../NativeStripeSdk';\nimport {\n ButtonType,\n ButtonStyle,\n ShippingMethod,\n ShippingContact,\n} from '../types/PlatformPay';\nimport GooglePayButtonNative from './GooglePayButtonNative';\nimport ApplePayButtonNative from './ApplePayButtonNative';\n\n/**\n * PlatformPayButton Component Props\n */\nexport interface Props extends AccessibilityProps {\n /** Sets the text displayed by the button. */\n type?: ButtonType;\n /** iOS only. Sets the coloring of the button. */\n appearance?: ButtonStyle;\n /** Affects iOS only. Sets the border radius of the button. On Android, you cannot modify the radius of the Google Pay button, since doing so violates the [Google Brand Guidelines](https://developers.google.com/pay/api/android/guides/brand-guidelines#style). */\n borderRadius?: number;\n /** Function called whenever the button is pressed. */\n onPress(): void;\n /** Set to `true` to disable the button from being pressed & apply a slight opacity to indicate that it is unpressable. Defaults to false. */\n disabled?: boolean;\n /**\n * This callback is triggered whenever the user selects a shipping method in the Apple Pay sheet.\n * It receives one parameter: an `event` object with a `shippingMethod` field. You MUST\n * update the Apple Pay sheet in your callback using the updatePlatformPaySheet function, otherwise the\n * Apple Pay sheet will hang and the payment flow will automatically cancel.\n */\n onShippingMethodSelected?: (event: {\n shippingMethod: ShippingMethod;\n }) => void;\n /**\n * This callback is triggered whenever the user selects a shipping contact in the Apple Pay sheet IF\n * ContactField.PostalAddress was included in the requiredShippingAddressFields array.\n * It receives one parameter: an `event` object with a `shippingContact` field. You MUST\n * update the Apple Pay sheet in your callback using the updatePlatformPaySheet function, otherwise the\n * Apple Pay sheet will hang and the payment flow will automatically cancel.\n */\n onShippingContactSelected?: (event: {\n shippingContact: ShippingContact;\n }) => void;\n /**\n * This callback is triggered whenever the user inputs a coupon code in the Apple Pay sheet.\n * It receives one parameter: an `event` object with a `couponCode` field. You MUST\n * update the Apple Pay sheet in your callback using the updatePlatformPaySheet function, otherwise the\n * Apple Pay sheet will hang and the payment flow will automatically cancel.\n */\n onCouponCodeEntered?: (event: { couponCode: string }) => void;\n /** Callback function for setting the order details (retrieved from your server) to give users the\n * ability to track and manage their purchases in Wallet. Stripe calls your implementation after the\n * payment is complete, but before iOS dismisses the Apple Pay sheet. You must call the `completion`\n * function, or else the Apple Pay sheet will hang.*/\n setOrderTracking?: (\n completion: (\n orderIdentifier: string,\n orderTypeIdentifier: string,\n authenticationToken: string,\n webServiceUrl: string\n ) => void\n ) => void;\n testID?: string;\n style?: StyleProp<ViewStyle>;\n}\n\n/**\n * PlatformPayButton Component. Display the platform-specific native wallet pay button: Apple Pay on iOS, and Google Pay on Android.\n *\n * @example\n * ```ts\n * <PlatformPayButton\n * onPress={pay}\n * type={PlatformPay.ButtonType.Subscribe}\n * appearance={PlatformPay.ButtonStyle.WhiteOutline}\n * borderRadius={4}\n * disabled={!isApplePaySupported}\n * style={styles.payButton}\n * />\n * ```\n * @param __namedParameters Props\n * @returns JSX.Element\n * @category ReactComponents\n */\nexport function PlatformPayButton({\n type = ButtonType.Default,\n appearance = ButtonStyle.Automatic,\n onPress,\n disabled,\n borderRadius,\n onShippingMethodSelected,\n onShippingContactSelected,\n onCouponCodeEntered,\n setOrderTracking,\n style,\n ...props\n}: Props) {\n const shippingMethodCallback = onShippingMethodSelected\n ? (\n value: NativeSyntheticEvent<{\n shippingMethod: ShippingMethod;\n }>\n ) => {\n onShippingMethodSelected && onShippingMethodSelected(value.nativeEvent);\n }\n : undefined;\n\n const shippingContactCallback = onShippingContactSelected\n ? (\n value: NativeSyntheticEvent<{\n shippingContact: ShippingContact;\n }>\n ) => {\n onShippingContactSelected(value.nativeEvent);\n }\n : undefined;\n\n const couponCodeCallback = onCouponCodeEntered\n ? (\n value: NativeSyntheticEvent<{\n couponCode: string;\n }>\n ) => {\n onCouponCodeEntered && onCouponCodeEntered(value.nativeEvent);\n }\n : undefined;\n\n const orderTrackingCallback = setOrderTracking\n ? () => {\n setOrderTracking(NativeStripeSdk.configureOrderTracking);\n }\n : undefined;\n\n return (\n <TouchableOpacity\n disabled={disabled}\n activeOpacity={disabled ? 0.3 : 1}\n onPress={onPress}\n style={[disabled ? styles.disabled : styles.notDisabled, style]}\n >\n {Platform.OS === 'ios' ? (\n <ApplePayButtonNative\n type={type}\n buttonStyle={appearance}\n borderRadius={borderRadius}\n disabled={disabled}\n onShippingMethodSelectedAction={shippingMethodCallback}\n onShippingContactSelectedAction={shippingContactCallback}\n onCouponCodeEnteredAction={couponCodeCallback}\n onOrderTrackingAction={orderTrackingCallback}\n style={styles.nativeButtonStyle}\n {...props}\n />\n ) : (\n <GooglePayButtonNative\n type={type}\n style={styles.nativeButtonStyle}\n {...props}\n />\n )}\n </TouchableOpacity>\n );\n}\n\nconst styles = StyleSheet.create({\n disabled: {\n flex: 0,\n opacity: 0.4,\n },\n notDisabled: {\n flex: 0,\n },\n nativeButtonStyle: { flex: 1 },\n});\n"],"mappings":"wXAAA,oDACA,yCASA,2EACA,iDAMA,sFACA,oFAA0D,wRA4EnD,QAASA,kBAAiB,MAYvB,oBAXRC,IAAI,CAAJA,IAAI,oBAAGC,uBAAU,CAACC,OAAO,gCACzBC,UAAU,CAAVA,UAAU,0BAAGC,wBAAW,CAACC,SAAS,iBAClCC,OAAO,MAAPA,OAAO,CACPC,QAAQ,MAARA,QAAQ,CACRC,YAAY,MAAZA,YAAY,CACZC,wBAAwB,MAAxBA,wBAAwB,CACxBC,yBAAyB,MAAzBA,yBAAyB,CACzBC,mBAAmB,MAAnBA,mBAAmB,CACnBC,gBAAgB,MAAhBA,gBAAgB,CAChBC,KAAK,MAALA,KAAK,CACFC,KAAK,uDAER,GAAMC,uBAAsB,CAAGN,wBAAwB,CACnD,SACEO,KAEE,CACC,CACHP,wBAAwB,EAAIA,wBAAwB,CAACO,KAAK,CAACC,WAAW,CAAC,CACzE,CAAC,CACDC,SAAS,CAEb,GAAMC,wBAAuB,CAAGT,yBAAyB,CACrD,SACEM,KAEE,CACC,CACHN,yBAAyB,CAACM,KAAK,CAACC,WAAW,CAAC,CAC9C,CAAC,CACDC,SAAS,CAEb,GAAME,mBAAkB,CAAGT,mBAAmB,CAC1C,SACEK,KAEE,CACC,CACHL,mBAAmB,EAAIA,mBAAmB,CAACK,KAAK,CAACC,WAAW,CAAC,CAC/D,CAAC,CACDC,SAAS,CAEb,GAAMG,sBAAqB,CAAGT,gBAAgB,CAC1C,UAAM,CACJA,gBAAgB,CAACU,wBAAe,CAACC,sBAAsB,CAAC,CAC1D,CAAC,CACDL,SAAS,CAEb,MACE,8BAAC,6BAAgB,EACf,QAAQ,CAAEX,QAAS,CACnB,aAAa,CAAEA,QAAQ,CAAG,GAAG,CAAG,CAAE,CAClC,OAAO,CAAED,OAAQ,CACjB,KAAK,CAAE,CAACC,QAAQ,CAAGiB,MAAM,CAACjB,QAAQ,CAAGiB,MAAM,CAACC,WAAW,CAAEZ,KAAK,CAAE,6EAE/Da,qBAAQ,CAACC,EAAE,GAAK,KAAK,CACpB,6BAAC,6BAAoB,wBACnB,IAAI,CAAE3B,IAAK,CACX,WAAW,CAAEG,UAAW,CACxB,YAAY,CAAEK,YAAa,CAC3B,QAAQ,CAAED,QAAS,CACnB,8BAA8B,CAAEQ,sBAAuB,CACvD,+BAA+B,CAAEI,uBAAwB,CACzD,yBAAyB,CAAEC,kBAAmB,CAC9C,qBAAqB,CAAEC,qBAAsB,CAC7C,KAAK,CAAEG,MAAM,CAACI,iBAAkB,EAC5Bd,KAAK,+EACT,CAEF,6BAAC,8BAAqB,wBACpB,IAAI,CAAEd,IAAK,CACX,KAAK,CAAEwB,MAAM,CAACI,iBAAkB,EAC5Bd,KAAK,+EAEZ,CACgB,CAEvB,CAEA,GAAMU,OAAM,CAAGK,uBAAU,CAACC,MAAM,CAAC,CAC/BvB,QAAQ,CAAE,CACRwB,IAAI,CAAE,CAAC,CACPC,OAAO,CAAE,GACX,CAAC,CACDP,WAAW,CAAE,CACXM,IAAI,CAAE,CACR,CAAC,CACDH,iBAAiB,CAAE,CAAEG,IAAI,CAAE,CAAE,CAC/B,CAAC,CAAC"}
1
+ {"version":3,"names":["PlatformPayButton","type","ButtonType","Default","appearance","ButtonStyle","Automatic","onPress","disabled","borderRadius","onShippingMethodSelected","onShippingContactSelected","onCouponCodeEntered","setOrderTracking","style","props","shippingMethodCallback","value","nativeEvent","undefined","shippingContactCallback","couponCodeCallback","orderTrackingCallback","NativeStripeSdk","configureOrderTracking","styles","notDisabled","Platform","OS","nativeButtonStyle","StyleSheet","create","flex","opacity"],"sources":["PlatformPayButton.tsx"],"sourcesContent":["import React from 'react';\nimport {\n AccessibilityProps,\n StyleProp,\n ViewStyle,\n TouchableOpacity,\n StyleSheet,\n Platform,\n NativeSyntheticEvent,\n} from 'react-native';\nimport NativeStripeSdk from '../NativeStripeSdk';\nimport {\n ButtonType,\n ButtonStyle,\n ShippingMethod,\n ShippingContact,\n} from '../types/PlatformPay';\nimport GooglePayButtonNative from './GooglePayButtonNative';\nimport ApplePayButtonNative from './ApplePayButtonNative';\n\n/**\n * PlatformPayButton Component Props\n */\nexport interface Props extends AccessibilityProps {\n /** Sets the text displayed by the button. */\n type?: ButtonType;\n /** Sets the coloring of the button. */\n appearance?: ButtonStyle;\n /** Sets the border radius of the button. */\n borderRadius?: number;\n /** Function called whenever the button is pressed. */\n onPress(): void;\n /** Set to `true` to disable the button from being pressed & apply a slight opacity to indicate that it is unpressable. Defaults to false. */\n disabled?: boolean;\n /**\n * This callback is triggered whenever the user selects a shipping method in the Apple Pay sheet.\n * It receives one parameter: an `event` object with a `shippingMethod` field. You MUST\n * update the Apple Pay sheet in your callback using the updatePlatformPaySheet function, otherwise the\n * Apple Pay sheet will hang and the payment flow will automatically cancel.\n */\n onShippingMethodSelected?: (event: {\n shippingMethod: ShippingMethod;\n }) => void;\n /**\n * This callback is triggered whenever the user selects a shipping contact in the Apple Pay sheet IF\n * ContactField.PostalAddress was included in the requiredShippingAddressFields array.\n * It receives one parameter: an `event` object with a `shippingContact` field. You MUST\n * update the Apple Pay sheet in your callback using the updatePlatformPaySheet function, otherwise the\n * Apple Pay sheet will hang and the payment flow will automatically cancel.\n */\n onShippingContactSelected?: (event: {\n shippingContact: ShippingContact;\n }) => void;\n /**\n * This callback is triggered whenever the user inputs a coupon code in the Apple Pay sheet.\n * It receives one parameter: an `event` object with a `couponCode` field. You MUST\n * update the Apple Pay sheet in your callback using the updatePlatformPaySheet function, otherwise the\n * Apple Pay sheet will hang and the payment flow will automatically cancel.\n */\n onCouponCodeEntered?: (event: { couponCode: string }) => void;\n /** Callback function for setting the order details (retrieved from your server) to give users the\n * ability to track and manage their purchases in Wallet. Stripe calls your implementation after the\n * payment is complete, but before iOS dismisses the Apple Pay sheet. You must call the `completion`\n * function, or else the Apple Pay sheet will hang.*/\n setOrderTracking?: (\n completion: (\n orderIdentifier: string,\n orderTypeIdentifier: string,\n authenticationToken: string,\n webServiceUrl: string\n ) => void\n ) => void;\n testID?: string;\n style?: StyleProp<ViewStyle>;\n}\n\n/**\n * PlatformPayButton Component. Display the platform-specific native wallet pay button: Apple Pay on iOS, and Google Pay on Android.\n *\n * @example\n * ```ts\n * <PlatformPayButton\n * onPress={pay}\n * type={PlatformPay.ButtonType.Subscribe}\n * appearance={PlatformPay.ButtonStyle.WhiteOutline}\n * borderRadius={4}\n * disabled={!isApplePaySupported}\n * style={styles.payButton}\n * />\n * ```\n * @param __namedParameters Props\n * @returns JSX.Element\n * @category ReactComponents\n */\nexport function PlatformPayButton({\n type = ButtonType.Default,\n appearance = ButtonStyle.Automatic,\n onPress,\n disabled,\n borderRadius,\n onShippingMethodSelected,\n onShippingContactSelected,\n onCouponCodeEntered,\n setOrderTracking,\n style,\n ...props\n}: Props) {\n const shippingMethodCallback = onShippingMethodSelected\n ? (\n value: NativeSyntheticEvent<{\n shippingMethod: ShippingMethod;\n }>\n ) => {\n onShippingMethodSelected && onShippingMethodSelected(value.nativeEvent);\n }\n : undefined;\n\n const shippingContactCallback = onShippingContactSelected\n ? (\n value: NativeSyntheticEvent<{\n shippingContact: ShippingContact;\n }>\n ) => {\n onShippingContactSelected(value.nativeEvent);\n }\n : undefined;\n\n const couponCodeCallback = onCouponCodeEntered\n ? (\n value: NativeSyntheticEvent<{\n couponCode: string;\n }>\n ) => {\n onCouponCodeEntered && onCouponCodeEntered(value.nativeEvent);\n }\n : undefined;\n\n const orderTrackingCallback = setOrderTracking\n ? () => {\n setOrderTracking(NativeStripeSdk.configureOrderTracking);\n }\n : undefined;\n\n return (\n <TouchableOpacity\n disabled={disabled}\n activeOpacity={disabled ? 0.3 : 1}\n onPress={onPress}\n style={[disabled ? styles.disabled : styles.notDisabled, style]}\n >\n {Platform.OS === 'ios' ? (\n <ApplePayButtonNative\n type={type}\n buttonStyle={appearance}\n borderRadius={borderRadius}\n disabled={disabled}\n onShippingMethodSelectedAction={shippingMethodCallback}\n onShippingContactSelectedAction={shippingContactCallback}\n onCouponCodeEnteredAction={couponCodeCallback}\n onOrderTrackingAction={orderTrackingCallback}\n style={styles.nativeButtonStyle}\n {...props}\n />\n ) : (\n <GooglePayButtonNative\n type={type}\n appearance={appearance}\n borderRadius={borderRadius}\n style={styles.nativeButtonStyle}\n {...props}\n />\n )}\n </TouchableOpacity>\n );\n}\n\nconst styles = StyleSheet.create({\n disabled: {\n flex: 0,\n opacity: 0.4,\n },\n notDisabled: {\n flex: 0,\n },\n nativeButtonStyle: { flex: 1 },\n});\n"],"mappings":"wXAAA,oDACA,yCASA,2EACA,iDAMA,sFACA,oFAA0D,wRA4EnD,QAASA,kBAAiB,MAYvB,oBAXRC,IAAI,CAAJA,IAAI,oBAAGC,uBAAU,CAACC,OAAO,gCACzBC,UAAU,CAAVA,UAAU,0BAAGC,wBAAW,CAACC,SAAS,iBAClCC,OAAO,MAAPA,OAAO,CACPC,QAAQ,MAARA,QAAQ,CACRC,YAAY,MAAZA,YAAY,CACZC,wBAAwB,MAAxBA,wBAAwB,CACxBC,yBAAyB,MAAzBA,yBAAyB,CACzBC,mBAAmB,MAAnBA,mBAAmB,CACnBC,gBAAgB,MAAhBA,gBAAgB,CAChBC,KAAK,MAALA,KAAK,CACFC,KAAK,uDAER,GAAMC,uBAAsB,CAAGN,wBAAwB,CACnD,SACEO,KAEE,CACC,CACHP,wBAAwB,EAAIA,wBAAwB,CAACO,KAAK,CAACC,WAAW,CAAC,CACzE,CAAC,CACDC,SAAS,CAEb,GAAMC,wBAAuB,CAAGT,yBAAyB,CACrD,SACEM,KAEE,CACC,CACHN,yBAAyB,CAACM,KAAK,CAACC,WAAW,CAAC,CAC9C,CAAC,CACDC,SAAS,CAEb,GAAME,mBAAkB,CAAGT,mBAAmB,CAC1C,SACEK,KAEE,CACC,CACHL,mBAAmB,EAAIA,mBAAmB,CAACK,KAAK,CAACC,WAAW,CAAC,CAC/D,CAAC,CACDC,SAAS,CAEb,GAAMG,sBAAqB,CAAGT,gBAAgB,CAC1C,UAAM,CACJA,gBAAgB,CAACU,wBAAe,CAACC,sBAAsB,CAAC,CAC1D,CAAC,CACDL,SAAS,CAEb,MACE,8BAAC,6BAAgB,EACf,QAAQ,CAAEX,QAAS,CACnB,aAAa,CAAEA,QAAQ,CAAG,GAAG,CAAG,CAAE,CAClC,OAAO,CAAED,OAAQ,CACjB,KAAK,CAAE,CAACC,QAAQ,CAAGiB,MAAM,CAACjB,QAAQ,CAAGiB,MAAM,CAACC,WAAW,CAAEZ,KAAK,CAAE,6EAE/Da,qBAAQ,CAACC,EAAE,GAAK,KAAK,CACpB,6BAAC,6BAAoB,wBACnB,IAAI,CAAE3B,IAAK,CACX,WAAW,CAAEG,UAAW,CACxB,YAAY,CAAEK,YAAa,CAC3B,QAAQ,CAAED,QAAS,CACnB,8BAA8B,CAAEQ,sBAAuB,CACvD,+BAA+B,CAAEI,uBAAwB,CACzD,yBAAyB,CAAEC,kBAAmB,CAC9C,qBAAqB,CAAEC,qBAAsB,CAC7C,KAAK,CAAEG,MAAM,CAACI,iBAAkB,EAC5Bd,KAAK,+EACT,CAEF,6BAAC,8BAAqB,wBACpB,IAAI,CAAEd,IAAK,CACX,UAAU,CAAEG,UAAW,CACvB,YAAY,CAAEK,YAAa,CAC3B,KAAK,CAAEgB,MAAM,CAACI,iBAAkB,EAC5Bd,KAAK,+EAEZ,CACgB,CAEvB,CAEA,GAAMU,OAAM,CAAGK,uBAAU,CAACC,MAAM,CAAC,CAC/BvB,QAAQ,CAAE,CACRwB,IAAI,CAAE,CAAC,CACPC,OAAO,CAAE,GACX,CAAC,CACDP,WAAW,CAAE,CACXM,IAAI,CAAE,CACR,CAAC,CACDH,iBAAiB,CAAE,CAAEG,IAAI,CAAE,CAAE,CAC/B,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["CustomerSheet.ts"],"sourcesContent":["import type {\n PaymentSheet,\n StripeError,\n CustomerSheetError,\n BillingDetails,\n PaymentMethod,\n} from '../types';\n\nexport type CustomerSheetInitParams = {\n /** The color styling to use for PaymentSheet UI. Defaults to 'automatic'. iOS only. */\n style?: 'alwaysLight' | 'alwaysDark' | 'automatic';\n /** Configuration for the look and feel of the UI. */\n appearance?: PaymentSheet.AppearanceParams;\n /** Optional but recommended for cards, required for other payment methods. The SetupIntent client secret that will be used to confirm a new payment method. If this is missing, you will only be able to add cards without authentication steps. */\n setupIntentClientSecret?: string;\n /** The identifier of the Stripe Customer object. See https://stripe.com/docs/api/customers/object#customer_object-id */\n customerId: string;\n /** A short-lived token that allows the SDK to access a Customer's payment methods. */\n customerEphemeralKeySecret: string;\n /** Your customer-facing business name. The default value is the name of your app. */\n merchantDisplayName?: string;\n /** Optional configuration for setting the header text of the Payment Method selection screen */\n headerTextForSelectionScreen?: string;\n /** CustomerSheet pre-populates fields with the values provided. If `billingDetailsCollectionConfiguration.attachDefaultsToPaymentMethod` is `true`, these values will be attached to the payment method even if they are not collected by the CustomerSheet UI. */\n defaultBillingDetails?: BillingDetails;\n /** Describes how billing details should be collected. All values default to `AUTOMATIC`. If `NEVER` is used for a required field for the Payment Method, you must provide an appropriate value as part of `defaultBillingDetails`. */\n billingDetailsCollectionConfiguration?: PaymentSheet.BillingDetailsCollectionConfiguration;\n /** A URL that redirects back to your app that CustomerSheet can use to auto-dismiss web views used for additional authentication, e.g. 3DS2 */\n returnURL?: string;\n /** Optional configuration to display a custom message when a saved payment method is removed. iOS only. */\n removeSavedPaymentMethodMessage?: string;\n /** Whether to show Apple Pay as an option. Defaults to false. */\n applePayEnabled?: boolean;\n /** Whether to show Google Pay as an option. Defaults to false. */\n googlePayEnabled?: boolean;\n /** Optional override. It is generally recommended to rely on the default behavior, but- provide a CustomerAdapter here if\n * you would prefer retrieving and updating your Stripe customer object via your own backend instead.\n * WARNING: When implementing your own CustomerAdapter, ensure your application complies with all applicable laws and regulations, including data privacy and consumer protection.\n */\n customerAdapter?: CustomerAdapter;\n};\n\nexport type CustomerSheetPresentParams = {\n /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. */\n presentationStyle?: 'fullscreen' | 'popover';\n /** Controls how the modal animates. iOS only. */\n animationStyle?: 'flip' | 'curl' | 'slide' | 'dissolve';\n /** Time (in milliseconds) before the Customer Sheet will automatically dismiss. */\n timeout?: number;\n};\n\nexport type CustomerSheetResult = {\n /** The users selected payment option, if one exists. */\n paymentOption?: PaymentSheet.PaymentOption;\n /** The Stripe PaymentMethod associated with the paymentOption, if it exists. */\n paymentMethod?: PaymentMethod.Result;\n /** The error that occurred. */\n error?: StripeError<CustomerSheetError>;\n};\n\nexport interface CustomerAdapter {\n /** Retrieves a list of Payment Methods attached to a customer.\n * If you are implementing your own CustomerAdapter:\n * Call the list method ( https://stripe.com/docs/api/payment_methods/list )\n * with the Stripe customer. Return the list of payment methods in JSON format.\n */\n fetchPaymentMethods?(): Promise<Array<object>>;\n /** Adds a Payment Method to a customer.\n * If you are implementing your own CustomerAdapter:\n * On your backend, retrieve the Stripe customer associated with your logged-in user.\n * Then, call the Attach method on the Payment Method with that customer's ID\n * ( https://stripe.com/docs/api/payment_methods/attach ).\n * - Parameters:\n * - paymentMethod: A valid Stripe Payment Method ID\n * Return the payment method in JSON format.\n */\n attachPaymentMethod?(paymentMethodId: string): Promise<object>;\n /** Deletes the given Payment Method from the customer.\n * If you are implementing your own CustomerAdapter:\n * Call the Detach method ( https://stripe.com/docs/api/payment_methods/detach )\n * on the Payment Method.\n * - Parameters:\n * - paymentMethod: The Stripe Payment Method ID to delete from the customer\n * Return the payment method in JSON format.\n */\n detachPaymentMethod?(paymentMethodId: String): Promise<object>;\n /** Set the last selected payment method for the customer.\n * To unset the default payment method, `null` is passed as the `paymentOption`.\n * If you are implementing your own CustomerAdapter:\n * Save a representation of the passed `paymentOption` as the customer's default payment method.\n */\n setSelectedPaymentOption?(\n paymentOption: CustomerPaymentOption | null\n ): Promise<void>;\n /** Retrieve the last selected payment method for the customer.\n * If you are implementing your own CustomerAdapter:\n * Return a CustomerPaymentOption for the customer's default selected payment method.\n * If no default payment method is selected, return null.\n */\n fetchSelectedPaymentOption?(): Promise<CustomerPaymentOption | null>;\n /** Creates a SetupIntent configured to attach a new payment method to a customer,\n * then returns the client secret for the created SetupIntent.\n */\n setupIntentClientSecretForCustomerAttach?(): Promise<String>;\n}\n\nexport type CustomerPaymentOption =\n | 'apple_pay'\n | 'google_pay'\n | 'link'\n | string;\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["CustomerSheet.ts"],"sourcesContent":["import type {\n PaymentSheet,\n StripeError,\n CustomerSheetError,\n BillingDetails,\n PaymentMethod,\n} from '../types';\n\nexport type CustomerSheetInitParams = {\n /** The color styling to use for PaymentSheet UI. Defaults to 'automatic'. iOS only. */\n style?: 'alwaysLight' | 'alwaysDark' | 'automatic';\n /** Configuration for the look and feel of the UI. */\n appearance?: PaymentSheet.AppearanceParams;\n /** Optional but recommended for cards, required for other payment methods. The SetupIntent client secret that will be used to confirm a new payment method. If this is missing, you will only be able to add cards without authentication steps. */\n setupIntentClientSecret?: string;\n /** The identifier of the Stripe Customer object. See https://stripe.com/docs/api/customers/object#customer_object-id */\n customerId: string;\n /** A short-lived token that allows the SDK to access a Customer's payment methods. */\n customerEphemeralKeySecret: string;\n /** Your customer-facing business name. The default value is the name of your app. */\n merchantDisplayName?: string;\n /** Optional configuration for setting the header text of the Payment Method selection screen */\n headerTextForSelectionScreen?: string;\n /** CustomerSheet pre-populates fields with the values provided. If `billingDetailsCollectionConfiguration.attachDefaultsToPaymentMethod` is `true`, these values will be attached to the payment method even if they are not collected by the CustomerSheet UI. */\n defaultBillingDetails?: BillingDetails;\n /** Describes how billing details should be collected. All values default to `AUTOMATIC`. If `NEVER` is used for a required field for the Payment Method, you must provide an appropriate value as part of `defaultBillingDetails`. */\n billingDetailsCollectionConfiguration?: PaymentSheet.BillingDetailsCollectionConfiguration;\n /** A URL that redirects back to your app that CustomerSheet can use to auto-dismiss web views used for additional authentication, e.g. 3DS2 */\n returnURL?: string;\n /** Optional configuration to display a custom message when a saved payment method is removed. iOS only. */\n removeSavedPaymentMethodMessage?: string;\n /** Whether to show Apple Pay as an option. Defaults to false. */\n applePayEnabled?: boolean;\n /** Whether to show Google Pay as an option. Defaults to false. */\n googlePayEnabled?: boolean;\n /** Optional override. It is generally recommended to rely on the default behavior, but- provide a CustomerAdapter here if\n * you would prefer retrieving and updating your Stripe customer object via your own backend instead.\n * WARNING: When implementing your own CustomerAdapter, ensure your application complies with all applicable laws and regulations, including data privacy and consumer protection.\n */\n customerAdapter?: CustomerAdapter;\n};\n\nexport type CustomerSheetPresentParams = {\n /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. See https://developer.apple.com/documentation/uikit/uimodalpresentationstyle for more info. */\n presentationStyle?:\n | 'fullscreen'\n | 'popover'\n | 'pageSheet'\n | 'formSheet'\n | 'automatic'\n | 'overFullScreen';\n /** Controls how the modal animates. iOS only. */\n animationStyle?: 'flip' | 'curl' | 'slide' | 'dissolve';\n /** Time (in milliseconds) before the Customer Sheet will automatically dismiss. */\n timeout?: number;\n};\n\nexport type CustomerSheetResult = {\n /** The users selected payment option, if one exists. */\n paymentOption?: PaymentSheet.PaymentOption;\n /** The Stripe PaymentMethod associated with the paymentOption, if it exists. */\n paymentMethod?: PaymentMethod.Result;\n /** The error that occurred. */\n error?: StripeError<CustomerSheetError>;\n};\n\nexport interface CustomerAdapter {\n /** Retrieves a list of Payment Methods attached to a customer.\n * If you are implementing your own CustomerAdapter:\n * Call the list method ( https://stripe.com/docs/api/payment_methods/list )\n * with the Stripe customer. Return the list of payment methods in JSON format.\n */\n fetchPaymentMethods?(): Promise<Array<object>>;\n /** Adds a Payment Method to a customer.\n * If you are implementing your own CustomerAdapter:\n * On your backend, retrieve the Stripe customer associated with your logged-in user.\n * Then, call the Attach method on the Payment Method with that customer's ID\n * ( https://stripe.com/docs/api/payment_methods/attach ).\n * - Parameters:\n * - paymentMethod: A valid Stripe Payment Method ID\n * Return the payment method in JSON format.\n */\n attachPaymentMethod?(paymentMethodId: string): Promise<object>;\n /** Deletes the given Payment Method from the customer.\n * If you are implementing your own CustomerAdapter:\n * Call the Detach method ( https://stripe.com/docs/api/payment_methods/detach )\n * on the Payment Method.\n * - Parameters:\n * - paymentMethod: The Stripe Payment Method ID to delete from the customer\n * Return the payment method in JSON format.\n */\n detachPaymentMethod?(paymentMethodId: String): Promise<object>;\n /** Set the last selected payment method for the customer.\n * To unset the default payment method, `null` is passed as the `paymentOption`.\n * If you are implementing your own CustomerAdapter:\n * Save a representation of the passed `paymentOption` as the customer's default payment method.\n */\n setSelectedPaymentOption?(\n paymentOption: CustomerPaymentOption | null\n ): Promise<void>;\n /** Retrieve the last selected payment method for the customer.\n * If you are implementing your own CustomerAdapter:\n * Return a CustomerPaymentOption for the customer's default selected payment method.\n * If no default payment method is selected, return null.\n */\n fetchSelectedPaymentOption?(): Promise<CustomerPaymentOption | null>;\n /** Creates a SetupIntent configured to attach a new payment method to a customer,\n * then returns the client secret for the created SetupIntent.\n */\n setupIntentClientSecretForCustomerAttach?(): Promise<String>;\n}\n\nexport type CustomerPaymentOption =\n | 'apple_pay'\n | 'google_pay'\n | 'link'\n | string;\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"names":["ApplePaySheetErrorType","ContactField","InvalidShippingField","PaymentRequestType","ApplePayMerchantCapability","ApplePayShippingType","BillingAddressFormat","ButtonType","ButtonStyle","PaymentType","IntervalUnit"],"sources":["PlatformPay.ts"],"sourcesContent":["import type { Result as Token } from './Token';\nimport type { Result as PaymentMethod } from './PaymentMethod';\nimport type { Result as PaymentIntent } from './PaymentIntent';\nimport type { Result as SetupIntent } from './SetupIntent';\nimport type { StripeError, PlatformPayError } from './Errors';\n\nexport type ApplePaySheetError =\n | {\n errorType: ApplePaySheetErrorType.InvalidShippingAddress;\n field: InvalidShippingField;\n message?: string;\n }\n | {\n errorType:\n | ApplePaySheetErrorType.UnserviceableShippingAddress\n | ApplePaySheetErrorType.InvalidCouponCode\n | ApplePaySheetErrorType.ExpiredCouponCode;\n message?: string;\n };\n\nexport enum ApplePaySheetErrorType {\n InvalidShippingAddress = 'InvalidShippingAddress',\n UnserviceableShippingAddress = 'UnserviceableShippingAddress',\n InvalidCouponCode = 'InvalidCouponCode',\n ExpiredCouponCode = 'ExpiredCouponCode',\n}\n\nexport enum ContactField {\n EmailAddress = 'emailAddress',\n Name = 'name',\n PhoneNumber = 'phoneNumber',\n PhoneticName = 'phoneticName',\n PostalAddress = 'postalAddress',\n}\n\nexport enum InvalidShippingField {\n Street = 'street',\n City = 'city',\n SubAdministrativeArea = 'subAdministrativeArea',\n State = 'state',\n PostalCode = 'postalCode',\n Country = 'country',\n CountryCode = 'countryCode',\n SubLocality = 'subLocality',\n}\n\nexport type ApplePayBaseParams = {\n /** ISO 3166-1 alpha-2 country code where the transaction is processed. */\n merchantCountryCode: string;\n /** ISO 4217 alphabetic currency code. */\n currencyCode: string;\n /** The SDK accepts Amex, Mastercard, Visa, and Discover for Apple Pay by default. Set this property to enable other card networks, for example: [\"JCB\", \"barcode\", \"chinaUnionPay\"]. A full list of possible networks can be found at https://developer.apple.com/documentation/passkit/pkpaymentnetwork. */\n additionalEnabledNetworks?: Array<string>;\n /** The list of items that describe a purchase. For example: total, tax, discount, and grand total. */\n cartItems: Array<CartSummaryItem>;\n /** The list of fields that you need for a shipping contact in order to process the transaction. If you include ContactField.PostalAddress in this array, you must implement the PlatformPayButton component's `onShippingContactSelected` callback and call `updatePlatformPaySheet` from there.*/\n requiredShippingAddressFields?: Array<ContactField>;\n /** The list of fields that you need for a billing contact in order to process the transaction. */\n requiredBillingContactFields?: Array<ContactField>;\n /** An array of shipping method objects that describe the supported shipping methods. If provided, you must implement the PlatformPayButton component's `onShippingMethodSelected` callback and call `updatePlatformPaySheet` from there. */\n shippingMethods?: Array<ShippingMethod>;\n /** Set the payment capabilities you support. If set, 3DS is required. */\n merchantCapabilities?: Array<ApplePayMerchantCapability>;\n /** An optional value that indicates how to ship purchased items. Defaults to 'Shipping'.*/\n shippingType?: ApplePayShippingType;\n /** A list of two-letter ISO 3166 country codes for limiting payment to cards from specific countries or regions. */\n supportedCountries?: Array<string>;\n};\n\nexport type ApplePayConfirmParams = {\n /** A typical request is for a one-time payment. To support different types of payment requests, include a PaymentRequestType. Only supported on iOS 16 and up. */\n request?:\n | RecurringPaymentRequest\n | AutomaticReloadPaymentRequest\n | MultiMerchantRequest;\n};\n\nexport enum PaymentRequestType {\n Recurring = 'Recurring',\n AutomaticReload = 'AutomaticReload',\n MultiMerchant = 'MultiMerchant',\n}\n\n/** Use this for a recurring payment, typically a subscription. */\nexport type RecurringPaymentRequest = {\n type: PaymentRequestType.Recurring;\n /** A description that you provide of the recurring payment and that Apple Pay displays to the user in the sheet. */\n description: string;\n /** A URL to a web page where the user can update or delete the payment method for the recurring payment. */\n managementUrl: string;\n /** The regular billing cycle for the payment, including start and end dates, an interval, and an interval count. */\n billing: RecurringCartSummaryItem;\n /** Same as the billing property, but use this if the purchase has a trial period. */\n trialBilling?: RecurringCartSummaryItem;\n /** A localized billing agreement that the sheet displays to the user before the user authorizes the payment. */\n billingAgreement?: string;\n /** A URL you provide to receive life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment.\n * For more information about handling merchant token life-cycle notifications, see Receiving and handling merchant token notifications.\n */\n tokenNotificationURL?: string;\n};\n\n/** Use this for an automatic reload or refill payment, such as a store card top-up. */\nexport type AutomaticReloadPaymentRequest = {\n type: PaymentRequestType.AutomaticReload;\n /** A description that you provide of the recurring payment and that Apple Pay displays to the user in the sheet. */\n description: string;\n /** A URL to a web page where the user can update or delete the payment method for the recurring payment. */\n managementUrl: string;\n /** A short, localized description of the item. */\n label: string;\n /** This is the amount that is automatically applied to the account when the account balance drops below the threshold amount. */\n reloadAmount: string;\n /** The balance an account reaches before you apply the automatic reload amount. */\n thresholdAmount: string;\n /** A localized billing agreement that the sheet displays to the user before the user authorizes the payment. */\n billingAgreement?: string;\n /** A URL you provide to receive life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment.\n * For more information about handling merchant token life-cycle notifications, see Receiving and handling merchant token notifications.\n */\n tokenNotificationURL?: string;\n};\n\n/** Use this to indicate payments for multiple merchants. */\nexport type MultiMerchantRequest = {\n type: PaymentRequestType.MultiMerchant;\n merchants: Array<{\n /** The Apple Pay merchant identifier. */\n merchantIdentifier: string;\n /** An external identifier for the merchant. */\n externalIdentifier: string;\n /** The merchant’s display name that the Apple Pay server associates with the payment token. */\n merchantName: string;\n /** The merchant’s top-level domain that the Apple Pay server associates with the payment token. */\n merchantDomain?: string;\n /** The amount to authorize for the payment token. */\n amount: string;\n }>;\n};\n\nexport type ApplePayPaymentMethodParams = {\n /** Set this value to true to display the coupon code field, or pass the 'couponCode' field to autofill with a coupon code. Defaults to false. If true, you must implement the PlatformPayButton component's `onCouponCodeEntered` callback and call `updatePlatformPaySheet` from there. */\n supportsCouponCode?: boolean;\n /** Set this value to autofill with a coupon code. If provided, you must implement the PlatformPayButton component's `onCouponCodeEntered` callback and call `updatePlatformPaySheet` from there. */\n couponCode?: string;\n};\n\nexport enum ApplePayMerchantCapability {\n /** Required. This value must be supplied. */\n Supports3DS = 'supports3DS',\n /** Optional. If present, only transactions that are categorized as credit cards are allowed. */\n SupportsCredit = 'supportsCredit',\n /** Optional. If present, only transactions that are categorized as debit cards are allowed. */\n SupportsDebit = 'supportsDebit',\n}\n\n/** A type that indicates how to ship purchased items. */\nexport enum ApplePayShippingType {\n /** Default. */\n Shipping = 'shipping',\n Delivery = 'delivery',\n StorePickup = 'storePickup',\n ServicePickup = 'servicePickup',\n}\n\nexport type GooglePayBaseParams = {\n /**\n * Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK.\n - Does not require the application to be uploaded to the Google Play Store.\n - Does not require a Google Pay Developer Profile.\n - It uses production data, but at the end of the transaction you will receive a fake and non chargeable payment credential.\n - The user will see a warning message that the app is not recognized/verified.\n */\n testEnv: boolean;\n /** ISO 3166-1 alpha-2 country code where the transaction is processed. */\n merchantCountryCode: string;\n /** ISO 4217 alphabetic currency code. */\n currencyCode: string;\n /** Your merchant name, displayed in the Google Pay sheet. */\n merchantName?: string;\n /** Set to true to request an email address. Defaults to false. */\n isEmailRequired?: boolean;\n /** Set to false if you don't support credit cards. Defaults to true. */\n allowCreditCards?: boolean;\n /** If true, Google Pay is considered \"available\" if the customer's Google Pay wallet has an existing payment method. Defaults to false. */\n existingPaymentMethodRequired?: boolean;\n /** Describes the configuration for billing address collection in the Google Pay sheet. */\n billingAddressConfig?: {\n /** Set to true if billing address is required for payment. Defaults to false. */\n isRequired?: boolean;\n /** Set to true if phone number is required for payment. Defaults to false. */\n isPhoneNumberRequired?: boolean;\n /** Defines what address fields to collect. Defaults to BillingAddressFormat.Min */\n format?: BillingAddressFormat;\n };\n /** An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided. */\n label?: string;\n /** An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. */\n amount?: number;\n};\n\nexport type GooglePayPaymentMethodParams = {\n /** Describes the configuration for shipping address collection in the Google Pay sheet. */\n shippingAddressConfig?: {\n /** Set to true if shipping address is required for payment. Defaults to false. */\n isRequired?: boolean;\n /** Set to true if phone number is required for payment. Defaults to false. */\n isPhoneNumberRequired?: boolean;\n /** Set of ISO 3166-1 alpha-2 country code values of the countries where shipping is allowed. Defaults to all shipping address countries. */\n allowedCountryCodes?: Array<string>;\n };\n};\n\nexport enum BillingAddressFormat {\n /** Collect name, street address, locality, region, country code, and postal code. */\n Full = 'FULL',\n /** Collect name, country code, and postal code (default). */\n Min = 'MIN',\n}\n\nexport type PaymentMethodParams = {\n /** Defines Google Pay behavior. Android only. */\n googlePay?: GooglePayBaseParams & GooglePayPaymentMethodParams;\n /** Defines Apple Pay behavior. iOS only. */\n applePay?: ApplePayBaseParams & ApplePayPaymentMethodParams;\n};\n\nexport type ConfirmParams = {\n /** Defines Google Pay behavior. Android only. */\n googlePay?: GooglePayBaseParams;\n /** Defines Apple Pay behavior. iOS only. */\n applePay?: ApplePayBaseParams & ApplePayConfirmParams;\n};\n\nexport enum ButtonType {\n /** A button with the Apple Pay or Google Pay logo only, useful when an additional call to action isn't needed. */\n Default = 0,\n /** A button useful for product purchases. */\n Buy = 1,\n /** A button useful for booking trips, flights, or other experiences. */\n Book = 6,\n /** A button useful for purchase experiences that include other payment buttons that start with “Check out”. */\n Checkout = 5,\n /** A button used by approved nonprofit organization that lets people make donations. */\n Donate = 4,\n /** A button useful for placing orders for such as like meals or flowers. */\n Order = 11,\n /** A button useful for purchasing a subscription such as a gym membership or meal-kit delivery service. */\n Subscribe = 7,\n /** iOS only. A button useful for prompting the user to set up a card. */\n SetUp = 2,\n /** iOS only. A button useful for paying bills or invoices. */\n InStore = 3,\n /** iOS only. A button useful for adding money to a card, account, or payment system.*/\n Reload = 8,\n /** iOS only. A button useful for adding money to a card, account, or payment system. */\n AddMoney = 9,\n /** iOS only. A button useful for adding money to a card, account, or payment system. */\n TopUp = 10,\n /** iOS only. A button useful for renting items such as cars or scooters. */\n Rent = 12,\n /** iOS only. A button useful supporting people give money to projects, causes, organizations, and other entities.*/\n Support = 13,\n /** iOS only. A button useful to help people contribute money to projects, causes, organizations, and other entities. */\n Contribute = 14,\n /** iOS only. A button useful useful for letting people tip for goods or services. */\n Tip = 15,\n /** iOS only. A button useful for general purchases. */\n Continue = 16,\n /** Android only. A button useful for general payments. */\n Pay = 1000,\n /** Android only. A plain white button with the Google Pay logo. Use when you show Google Pay as a payment option in your payment flows. */\n GooglePayMark = 1001,\n}\n\n/** iOS only. */\nexport enum ButtonStyle {\n /** A white button with black lettering. */\n White = 0,\n /** A white button with black lettering and a black outline. */\n WhiteOutline = 1,\n /** A black button with white lettering. */\n Black = 2,\n /** Default. A button that automatically changes its appearance when the user switches between Light Mode and Dark Mode. */\n Automatic = 3,\n}\n\n/** iOS only. */\nexport type CartSummaryItem =\n | DeferredCartSummaryItem\n | ImmediateCartSummaryItem\n | RecurringCartSummaryItem;\n\n/** iOS only. */\nexport enum PaymentType {\n Deferred = 'Deferred',\n Immediate = 'Immediate',\n Recurring = 'Recurring',\n}\n\n/** iOS only. Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem. */\nexport type DeferredCartSummaryItem = {\n paymentType: PaymentType.Deferred;\n /** The unix timestamp of the date, in the future, of the payment. Measured in seconds. */\n deferredDate: number;\n label: string;\n amount: string;\n};\n\n/** iOS only. Use this type for payments that will occur immediately. */\nexport type ImmediateCartSummaryItem = {\n paymentType: PaymentType.Immediate;\n /** When creating items for estimates or charges whose final value is not yet known, set this to true. */\n isPending?: boolean;\n label: string;\n amount: string;\n};\n\n/** iOS only. Use this type for payments that occur more than once, such as a subscription. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem.*/\nexport type RecurringCartSummaryItem = {\n paymentType: PaymentType.Recurring;\n /** The amount of time – in calendar units such as Day, Month, or Year – that represents a fraction of the total payment interval. For example, if you set the intervalUnit to 'Month' and intervalCount to 3, then the payment interval is three months.*/\n intervalUnit: IntervalUnit;\n /** The number of interval units that make up the total payment interval. For example, if you set the intervalUnit to 'Month' and intervalCount to 3, then the payment interval is three months.*/\n intervalCount: number;\n /** The unix timestamp of the start date. Measured in seconds. */\n startDate?: number;\n /** The unix timestamp of the end date. Measured in seconds. */\n endDate?: number;\n label: string;\n amount: string;\n};\n\n/** iOS only. */\nexport enum IntervalUnit {\n Minute = 'minute',\n Hour = 'hour',\n Day = 'day',\n Month = 'month',\n Year = 'year',\n}\n\n/** iOS only. */\nexport type ShippingMethod = {\n /** A short, localized description. */\n label: string;\n /** The cost associated with this shipping option. */\n amount: string;\n /** When creating items for estimates or charges whose final value is not yet known, set this to true. */\n isPending?: boolean;\n /** A unique identifier for the shipping method. */\n identifier: string;\n /** A user-readable description of the shipping method. For example “Ships in 24 hours.” Don't repeat the content of the 'label' property. */\n detail?: string;\n /** The unix timestamp of the start date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. Measured in seconds. */\n startDate?: number;\n /** The unix timestamp of the end date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. Measured in seconds. */\n endDate?: number;\n};\n\ninterface PostalAddress {\n city?: string;\n country?: string;\n postalCode?: string;\n state?: string;\n street?: string;\n isoCountryCode?: string;\n subAdministrativeArea?: string;\n subLocality?: string;\n}\n\ninterface ContactName {\n familyName?: string;\n namePrefix?: string;\n nameSuffix?: string;\n givenName?: string;\n middleName?: string;\n nickname?: string;\n}\n\nexport interface ShippingContact {\n emailAddress?: string;\n name: ContactName;\n phoneNumber?: string;\n postalAddress: PostalAddress;\n}\n\n/** Android only. */\nexport type IsGooglePaySupportedParams = {\n /** Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK. Defaults to false. */\n testEnv?: boolean;\n /**\n * If `true`, Google Pay is considered ready if the customer's Google Pay wallet\n * has an existing payment method. Defaults to false.\n */\n existingPaymentMethodRequired?: boolean;\n};\n\nexport type PaymentMethodResult =\n | {\n paymentMethod: PaymentMethod;\n shippingContact?: ShippingContact;\n error?: undefined;\n }\n | {\n paymentMethod?: undefined;\n shippingContact?: undefined;\n error: StripeError<PlatformPayError>;\n };\n\nexport type TokenResult =\n | {\n token: Token;\n shippingContact?: ShippingContact;\n error?: undefined;\n }\n | {\n token?: undefined;\n shippingContact?: undefined;\n error: StripeError<PlatformPayError>;\n };\n\nexport type ConfirmPaymentResult =\n | {\n paymentIntent: PaymentIntent;\n error?: StripeError<PlatformPayError>;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<PlatformPayError>;\n };\n\nexport type ConfirmSetupIntentResult =\n | {\n setupIntent: SetupIntent;\n error?: StripeError<PlatformPayError>;\n }\n | {\n setupIntent?: undefined;\n error: StripeError<PlatformPayError>;\n };\n"],"mappings":"4VAoBYA,uBAAsB,iEAAtBA,sBAAsB,EAAtBA,sBAAsB,oDAAtBA,sBAAsB,gEAAtBA,sBAAsB,0CAAtBA,sBAAsB,6CAAtBA,sBAAsB,kCAAtBA,sBAAsB,SAOtBC,aAAY,6CAAZA,YAAY,EAAZA,YAAY,gCAAZA,YAAY,gBAAZA,YAAY,8BAAZA,YAAY,gCAAZA,YAAY,qCAAZA,YAAY,wBAAZA,YAAY,SAQZC,qBAAoB,6DAApBA,oBAAoB,EAApBA,oBAAoB,oBAApBA,oBAAoB,gBAApBA,oBAAoB,kDAApBA,oBAAoB,kBAApBA,oBAAoB,4BAApBA,oBAAoB,sBAApBA,oBAAoB,8BAApBA,oBAAoB,iCAApBA,oBAAoB,gCAApBA,oBAAoB,SA0CpBC,mBAAkB,yDAAlBA,kBAAkB,EAAlBA,kBAAkB,0BAAlBA,kBAAkB,sCAAlBA,kBAAkB,qCAAlBA,kBAAkB,8BAAlBA,kBAAkB,SAsElBC,2BAA0B,yEAA1BA,0BAA0B,EAA1BA,0BAA0B,8BAA1BA,0BAA0B,oCAA1BA,0BAA0B,qCAA1BA,0BAA0B,sCAA1BA,0BAA0B,SAU1BC,qBAAoB,6DAApBA,oBAAoB,EAApBA,oBAAoB,wBAApBA,oBAAoB,wBAApBA,oBAAoB,8BAApBA,oBAAoB,qCAApBA,oBAAoB,gCAApBA,oBAAoB,SAwDpBC,qBAAoB,6DAApBA,oBAAoB,EAApBA,oBAAoB,gBAApBA,oBAAoB,iBAApBA,oBAAoB,gCAApBA,oBAAoB,SAqBpBC,WAAU,yCAAVA,UAAU,EAAVA,UAAU,CAAVA,UAAU,yBAAVA,UAAU,CAAVA,UAAU,iBAAVA,UAAU,CAAVA,UAAU,mBAAVA,UAAU,CAAVA,UAAU,2BAAVA,UAAU,CAAVA,UAAU,uBAAVA,UAAU,CAAVA,UAAU,sBAAVA,UAAU,CAAVA,UAAU,6BAAVA,UAAU,CAAVA,UAAU,qBAAVA,UAAU,CAAVA,UAAU,yBAAVA,UAAU,CAAVA,UAAU,uBAAVA,UAAU,CAAVA,UAAU,2BAAVA,UAAU,CAAVA,UAAU,sBAAVA,UAAU,CAAVA,UAAU,oBAAVA,UAAU,CAAVA,UAAU,0BAAVA,UAAU,CAAVA,UAAU,gCAAVA,UAAU,CAAVA,UAAU,kBAAVA,UAAU,CAAVA,UAAU,4BAAVA,UAAU,CAAVA,UAAU,oBAAVA,UAAU,CAAVA,UAAU,2CAAVA,UAAU,sBAAVA,UAAU,SA0CVC,YAAW,2CAAXA,WAAW,EAAXA,WAAW,CAAXA,WAAW,qBAAXA,WAAW,CAAXA,WAAW,mCAAXA,WAAW,CAAXA,WAAW,qBAAXA,WAAW,CAAXA,WAAW,gCAAXA,WAAW,uBAAXA,WAAW,SAkBXC,YAAW,2CAAXA,WAAW,EAAXA,WAAW,wBAAXA,WAAW,0BAAXA,WAAW,6BAAXA,WAAW,uBAAXA,WAAW,SAwCXC,aAAY,6CAAZA,YAAY,EAAZA,YAAY,oBAAZA,YAAY,gBAAZA,YAAY,cAAZA,YAAY,kBAAZA,YAAY,mBAAZA,YAAY,wBAAZA,YAAY"}
1
+ {"version":3,"names":["ApplePaySheetErrorType","ContactField","InvalidShippingField","PaymentRequestType","ApplePayMerchantCapability","ApplePayShippingType","BillingAddressFormat","ButtonType","ButtonStyle","PaymentType","IntervalUnit"],"sources":["PlatformPay.ts"],"sourcesContent":["import type { Result as Token } from './Token';\nimport type { Result as PaymentMethod } from './PaymentMethod';\nimport type { Result as PaymentIntent } from './PaymentIntent';\nimport type { Result as SetupIntent } from './SetupIntent';\nimport type { StripeError, PlatformPayError } from './Errors';\n\nexport type ApplePaySheetError =\n | {\n errorType: ApplePaySheetErrorType.InvalidShippingAddress;\n field: InvalidShippingField;\n message?: string;\n }\n | {\n errorType:\n | ApplePaySheetErrorType.UnserviceableShippingAddress\n | ApplePaySheetErrorType.InvalidCouponCode\n | ApplePaySheetErrorType.ExpiredCouponCode;\n message?: string;\n };\n\nexport enum ApplePaySheetErrorType {\n InvalidShippingAddress = 'InvalidShippingAddress',\n UnserviceableShippingAddress = 'UnserviceableShippingAddress',\n InvalidCouponCode = 'InvalidCouponCode',\n ExpiredCouponCode = 'ExpiredCouponCode',\n}\n\nexport enum ContactField {\n EmailAddress = 'emailAddress',\n Name = 'name',\n PhoneNumber = 'phoneNumber',\n PhoneticName = 'phoneticName',\n PostalAddress = 'postalAddress',\n}\n\nexport enum InvalidShippingField {\n Street = 'street',\n City = 'city',\n SubAdministrativeArea = 'subAdministrativeArea',\n State = 'state',\n PostalCode = 'postalCode',\n Country = 'country',\n CountryCode = 'countryCode',\n SubLocality = 'subLocality',\n}\n\nexport type ApplePayBaseParams = {\n /** ISO 3166-1 alpha-2 country code where the transaction is processed. */\n merchantCountryCode: string;\n /** ISO 4217 alphabetic currency code. */\n currencyCode: string;\n /** The SDK accepts Amex, Mastercard, Visa, and Discover for Apple Pay by default. Set this property to enable other card networks, for example: [\"JCB\", \"barcode\", \"chinaUnionPay\"]. A full list of possible networks can be found at https://developer.apple.com/documentation/passkit/pkpaymentnetwork. */\n additionalEnabledNetworks?: Array<string>;\n /** The list of items that describe a purchase. For example: total, tax, discount, and grand total. */\n cartItems: Array<CartSummaryItem>;\n /** The list of fields that you need for a shipping contact in order to process the transaction. If you include ContactField.PostalAddress in this array, you must implement the PlatformPayButton component's `onShippingContactSelected` callback and call `updatePlatformPaySheet` from there.*/\n requiredShippingAddressFields?: Array<ContactField>;\n /** The list of fields that you need for a billing contact in order to process the transaction. */\n requiredBillingContactFields?: Array<ContactField>;\n /** An array of shipping method objects that describe the supported shipping methods. If provided, you must implement the PlatformPayButton component's `onShippingMethodSelected` callback and call `updatePlatformPaySheet` from there. */\n shippingMethods?: Array<ShippingMethod>;\n /** Set the payment capabilities you support. If set, 3DS is required. */\n merchantCapabilities?: Array<ApplePayMerchantCapability>;\n /** An optional value that indicates how to ship purchased items. Defaults to 'Shipping'.*/\n shippingType?: ApplePayShippingType;\n /** A list of two-letter ISO 3166 country codes for limiting payment to cards from specific countries or regions. */\n supportedCountries?: Array<string>;\n};\n\nexport type ApplePayConfirmParams = {\n /** A typical request is for a one-time payment. To support different types of payment requests, include a PaymentRequestType. Only supported on iOS 16 and up. */\n request?:\n | RecurringPaymentRequest\n | AutomaticReloadPaymentRequest\n | MultiMerchantRequest;\n};\n\nexport enum PaymentRequestType {\n Recurring = 'Recurring',\n AutomaticReload = 'AutomaticReload',\n MultiMerchant = 'MultiMerchant',\n}\n\n/** Use this for a recurring payment, typically a subscription. */\nexport type RecurringPaymentRequest = {\n type: PaymentRequestType.Recurring;\n /** A description that you provide of the recurring payment and that Apple Pay displays to the user in the sheet. */\n description: string;\n /** A URL to a web page where the user can update or delete the payment method for the recurring payment. */\n managementUrl: string;\n /** The regular billing cycle for the payment, including start and end dates, an interval, and an interval count. */\n billing: RecurringCartSummaryItem;\n /** Same as the billing property, but use this if the purchase has a trial period. */\n trialBilling?: RecurringCartSummaryItem;\n /** A localized billing agreement that the sheet displays to the user before the user authorizes the payment. */\n billingAgreement?: string;\n /** A URL you provide to receive life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment.\n * For more information about handling merchant token life-cycle notifications, see Receiving and handling merchant token notifications.\n */\n tokenNotificationURL?: string;\n};\n\n/** Use this for an automatic reload or refill payment, such as a store card top-up. */\nexport type AutomaticReloadPaymentRequest = {\n type: PaymentRequestType.AutomaticReload;\n /** A description that you provide of the recurring payment and that Apple Pay displays to the user in the sheet. */\n description: string;\n /** A URL to a web page where the user can update or delete the payment method for the recurring payment. */\n managementUrl: string;\n /** A short, localized description of the item. */\n label: string;\n /** This is the amount that is automatically applied to the account when the account balance drops below the threshold amount. */\n reloadAmount: string;\n /** The balance an account reaches before you apply the automatic reload amount. */\n thresholdAmount: string;\n /** A localized billing agreement that the sheet displays to the user before the user authorizes the payment. */\n billingAgreement?: string;\n /** A URL you provide to receive life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment.\n * For more information about handling merchant token life-cycle notifications, see Receiving and handling merchant token notifications.\n */\n tokenNotificationURL?: string;\n};\n\n/** Use this to indicate payments for multiple merchants. */\nexport type MultiMerchantRequest = {\n type: PaymentRequestType.MultiMerchant;\n merchants: Array<{\n /** The Apple Pay merchant identifier. */\n merchantIdentifier: string;\n /** An external identifier for the merchant. */\n externalIdentifier: string;\n /** The merchant’s display name that the Apple Pay server associates with the payment token. */\n merchantName: string;\n /** The merchant’s top-level domain that the Apple Pay server associates with the payment token. */\n merchantDomain?: string;\n /** The amount to authorize for the payment token. */\n amount: string;\n }>;\n};\n\nexport type ApplePayPaymentMethodParams = {\n /** Set this value to true to display the coupon code field, or pass the 'couponCode' field to autofill with a coupon code. Defaults to false. If true, you must implement the PlatformPayButton component's `onCouponCodeEntered` callback and call `updatePlatformPaySheet` from there. */\n supportsCouponCode?: boolean;\n /** Set this value to autofill with a coupon code. If provided, you must implement the PlatformPayButton component's `onCouponCodeEntered` callback and call `updatePlatformPaySheet` from there. */\n couponCode?: string;\n};\n\nexport enum ApplePayMerchantCapability {\n /** Required. This value must be supplied. */\n Supports3DS = 'supports3DS',\n /** Optional. If present, only transactions that are categorized as credit cards are allowed. */\n SupportsCredit = 'supportsCredit',\n /** Optional. If present, only transactions that are categorized as debit cards are allowed. */\n SupportsDebit = 'supportsDebit',\n}\n\n/** A type that indicates how to ship purchased items. */\nexport enum ApplePayShippingType {\n /** Default. */\n Shipping = 'shipping',\n Delivery = 'delivery',\n StorePickup = 'storePickup',\n ServicePickup = 'servicePickup',\n}\n\nexport type GooglePayBaseParams = {\n /**\n * Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK.\n - Does not require the application to be uploaded to the Google Play Store.\n - Does not require a Google Pay Developer Profile.\n - It uses production data, but at the end of the transaction you will receive a fake and non chargeable payment credential.\n - The user will see a warning message that the app is not recognized/verified.\n */\n testEnv: boolean;\n /** ISO 3166-1 alpha-2 country code where the transaction is processed. */\n merchantCountryCode: string;\n /** ISO 4217 alphabetic currency code. */\n currencyCode: string;\n /** Your merchant name, displayed in the Google Pay sheet. */\n merchantName?: string;\n /** Set to true to request an email address. Defaults to false. */\n isEmailRequired?: boolean;\n /** Set to false if you don't support credit cards. Defaults to true. */\n allowCreditCards?: boolean;\n /** If true, Google Pay is considered \"available\" if the customer's Google Pay wallet has an existing payment method. Defaults to false. */\n existingPaymentMethodRequired?: boolean;\n /** Describes the configuration for billing address collection in the Google Pay sheet. */\n billingAddressConfig?: {\n /** Set to true if billing address is required for payment. Defaults to false. */\n isRequired?: boolean;\n /** Set to true if phone number is required for payment. Defaults to false. */\n isPhoneNumberRequired?: boolean;\n /** Defines what address fields to collect. Defaults to BillingAddressFormat.Min */\n format?: BillingAddressFormat;\n };\n /** An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided. */\n label?: string;\n /** An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. Provide this value in the currency’s smallest unit. */\n amount?: number;\n};\n\nexport type GooglePayPaymentMethodParams = {\n /** Describes the configuration for shipping address collection in the Google Pay sheet. */\n shippingAddressConfig?: {\n /** Set to true if shipping address is required for payment. Defaults to false. */\n isRequired?: boolean;\n /** Set to true if phone number is required for payment. Defaults to false. */\n isPhoneNumberRequired?: boolean;\n /** Set of ISO 3166-1 alpha-2 country code values of the countries where shipping is allowed. Defaults to all shipping address countries. */\n allowedCountryCodes?: Array<string>;\n };\n};\n\nexport enum BillingAddressFormat {\n /** Collect name, street address, locality, region, country code, and postal code. */\n Full = 'FULL',\n /** Collect name, country code, and postal code (default). */\n Min = 'MIN',\n}\n\nexport type PaymentMethodParams = {\n /** Defines Google Pay behavior. Android only. */\n googlePay?: GooglePayBaseParams & GooglePayPaymentMethodParams;\n /** Defines Apple Pay behavior. iOS only. */\n applePay?: ApplePayBaseParams & ApplePayPaymentMethodParams;\n};\n\nexport type ConfirmParams = {\n /** Defines Google Pay behavior. Android only. */\n googlePay?: GooglePayBaseParams;\n /** Defines Apple Pay behavior. iOS only. */\n applePay?: ApplePayBaseParams & ApplePayConfirmParams;\n};\n\nexport enum ButtonType {\n /** A button with the Apple Pay or Google Pay logo only, useful when an additional call to action isn't needed. */\n Default = 0,\n /** A button useful for product purchases. */\n Buy = 1,\n /** A button useful for booking trips, flights, or other experiences. */\n Book = 6,\n /** A button useful for purchase experiences that include other payment buttons that start with “Check out”. */\n Checkout = 5,\n /** A button used by approved nonprofit organization that lets people make donations. */\n Donate = 4,\n /** A button useful for placing orders for such as like meals or flowers. */\n Order = 11,\n /** A button useful for purchasing a subscription such as a gym membership or meal-kit delivery service. */\n Subscribe = 7,\n /** iOS only. A button useful for prompting the user to set up a card. */\n SetUp = 2,\n /** iOS only. A button useful for paying bills or invoices. */\n InStore = 3,\n /** iOS only. A button useful for adding money to a card, account, or payment system.*/\n Reload = 8,\n /** iOS only. A button useful for adding money to a card, account, or payment system. */\n AddMoney = 9,\n /** iOS only. A button useful for adding money to a card, account, or payment system. */\n TopUp = 10,\n /** iOS only. A button useful for renting items such as cars or scooters. */\n Rent = 12,\n /** iOS only. A button useful supporting people give money to projects, causes, organizations, and other entities.*/\n Support = 13,\n /** iOS only. A button useful to help people contribute money to projects, causes, organizations, and other entities. */\n Contribute = 14,\n /** iOS only. A button useful useful for letting people tip for goods or services. */\n Tip = 15,\n /** iOS only. A button useful for general purchases. */\n Continue = 16,\n /** Android only. A button useful for general payments. */\n Pay = 1000,\n /** Android only. The Google Pay payment button without the additional text. */\n GooglePayMark = 1001,\n}\n\n/** iOS only. */\nexport enum ButtonStyle {\n /** A white button with black lettering. */\n White = 0,\n /** A white button with black lettering and a black outline. */\n WhiteOutline = 1,\n /** A black button with white lettering. */\n Black = 2,\n /** Default. A button that automatically changes its appearance when the user switches between Light Mode and Dark Mode. */\n Automatic = 3,\n}\n\n/** iOS only. */\nexport type CartSummaryItem =\n | DeferredCartSummaryItem\n | ImmediateCartSummaryItem\n | RecurringCartSummaryItem;\n\n/** iOS only. */\nexport enum PaymentType {\n Deferred = 'Deferred',\n Immediate = 'Immediate',\n Recurring = 'Recurring',\n}\n\n/** iOS only. Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem. */\nexport type DeferredCartSummaryItem = {\n paymentType: PaymentType.Deferred;\n /** The unix timestamp of the date, in the future, of the payment. Measured in seconds. */\n deferredDate: number;\n label: string;\n amount: string;\n};\n\n/** iOS only. Use this type for payments that will occur immediately. */\nexport type ImmediateCartSummaryItem = {\n paymentType: PaymentType.Immediate;\n /** When creating items for estimates or charges whose final value is not yet known, set this to true. */\n isPending?: boolean;\n label: string;\n amount: string;\n};\n\n/** iOS only. Use this type for payments that occur more than once, such as a subscription. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem.*/\nexport type RecurringCartSummaryItem = {\n paymentType: PaymentType.Recurring;\n /** The amount of time – in calendar units such as Day, Month, or Year – that represents a fraction of the total payment interval. For example, if you set the intervalUnit to 'Month' and intervalCount to 3, then the payment interval is three months.*/\n intervalUnit: IntervalUnit;\n /** The number of interval units that make up the total payment interval. For example, if you set the intervalUnit to 'Month' and intervalCount to 3, then the payment interval is three months.*/\n intervalCount: number;\n /** The unix timestamp of the start date. Measured in seconds. */\n startDate?: number;\n /** The unix timestamp of the end date. Measured in seconds. */\n endDate?: number;\n label: string;\n amount: string;\n};\n\n/** iOS only. */\nexport enum IntervalUnit {\n Minute = 'minute',\n Hour = 'hour',\n Day = 'day',\n Month = 'month',\n Year = 'year',\n}\n\n/** iOS only. */\nexport type ShippingMethod = {\n /** A short, localized description. */\n label: string;\n /** The cost associated with this shipping option. */\n amount: string;\n /** When creating items for estimates or charges whose final value is not yet known, set this to true. */\n isPending?: boolean;\n /** A unique identifier for the shipping method. */\n identifier: string;\n /** A user-readable description of the shipping method. For example “Ships in 24 hours.” Don't repeat the content of the 'label' property. */\n detail?: string;\n /** The unix timestamp of the start date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. Measured in seconds. */\n startDate?: number;\n /** The unix timestamp of the end date of the expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup. Measured in seconds. */\n endDate?: number;\n};\n\ninterface PostalAddress {\n city?: string;\n country?: string;\n postalCode?: string;\n state?: string;\n street?: string;\n isoCountryCode?: string;\n subAdministrativeArea?: string;\n subLocality?: string;\n}\n\ninterface ContactName {\n familyName?: string;\n namePrefix?: string;\n nameSuffix?: string;\n givenName?: string;\n middleName?: string;\n nickname?: string;\n}\n\nexport interface ShippingContact {\n emailAddress?: string;\n name: ContactName;\n phoneNumber?: string;\n postalAddress: PostalAddress;\n}\n\n/** Android only. */\nexport type IsGooglePaySupportedParams = {\n /** Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK. Defaults to false. */\n testEnv?: boolean;\n /**\n * If `true`, Google Pay is considered ready if the customer's Google Pay wallet\n * has an existing payment method. Defaults to false.\n */\n existingPaymentMethodRequired?: boolean;\n};\n\nexport type PaymentMethodResult =\n | {\n paymentMethod: PaymentMethod;\n shippingContact?: ShippingContact;\n error?: undefined;\n }\n | {\n paymentMethod?: undefined;\n shippingContact?: undefined;\n error: StripeError<PlatformPayError>;\n };\n\nexport type TokenResult =\n | {\n token: Token;\n shippingContact?: ShippingContact;\n error?: undefined;\n }\n | {\n token?: undefined;\n shippingContact?: undefined;\n error: StripeError<PlatformPayError>;\n };\n\nexport type ConfirmPaymentResult =\n | {\n paymentIntent: PaymentIntent;\n error?: StripeError<PlatformPayError>;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<PlatformPayError>;\n };\n\nexport type ConfirmSetupIntentResult =\n | {\n setupIntent: SetupIntent;\n error?: StripeError<PlatformPayError>;\n }\n | {\n setupIntent?: undefined;\n error: StripeError<PlatformPayError>;\n };\n"],"mappings":"4VAoBYA,uBAAsB,iEAAtBA,sBAAsB,EAAtBA,sBAAsB,oDAAtBA,sBAAsB,gEAAtBA,sBAAsB,0CAAtBA,sBAAsB,6CAAtBA,sBAAsB,kCAAtBA,sBAAsB,SAOtBC,aAAY,6CAAZA,YAAY,EAAZA,YAAY,gCAAZA,YAAY,gBAAZA,YAAY,8BAAZA,YAAY,gCAAZA,YAAY,qCAAZA,YAAY,wBAAZA,YAAY,SAQZC,qBAAoB,6DAApBA,oBAAoB,EAApBA,oBAAoB,oBAApBA,oBAAoB,gBAApBA,oBAAoB,kDAApBA,oBAAoB,kBAApBA,oBAAoB,4BAApBA,oBAAoB,sBAApBA,oBAAoB,8BAApBA,oBAAoB,iCAApBA,oBAAoB,gCAApBA,oBAAoB,SA0CpBC,mBAAkB,yDAAlBA,kBAAkB,EAAlBA,kBAAkB,0BAAlBA,kBAAkB,sCAAlBA,kBAAkB,qCAAlBA,kBAAkB,8BAAlBA,kBAAkB,SAsElBC,2BAA0B,yEAA1BA,0BAA0B,EAA1BA,0BAA0B,8BAA1BA,0BAA0B,oCAA1BA,0BAA0B,qCAA1BA,0BAA0B,sCAA1BA,0BAA0B,SAU1BC,qBAAoB,6DAApBA,oBAAoB,EAApBA,oBAAoB,wBAApBA,oBAAoB,wBAApBA,oBAAoB,8BAApBA,oBAAoB,qCAApBA,oBAAoB,gCAApBA,oBAAoB,SAwDpBC,qBAAoB,6DAApBA,oBAAoB,EAApBA,oBAAoB,gBAApBA,oBAAoB,iBAApBA,oBAAoB,gCAApBA,oBAAoB,SAqBpBC,WAAU,yCAAVA,UAAU,EAAVA,UAAU,CAAVA,UAAU,yBAAVA,UAAU,CAAVA,UAAU,iBAAVA,UAAU,CAAVA,UAAU,mBAAVA,UAAU,CAAVA,UAAU,2BAAVA,UAAU,CAAVA,UAAU,uBAAVA,UAAU,CAAVA,UAAU,sBAAVA,UAAU,CAAVA,UAAU,6BAAVA,UAAU,CAAVA,UAAU,qBAAVA,UAAU,CAAVA,UAAU,yBAAVA,UAAU,CAAVA,UAAU,uBAAVA,UAAU,CAAVA,UAAU,2BAAVA,UAAU,CAAVA,UAAU,sBAAVA,UAAU,CAAVA,UAAU,oBAAVA,UAAU,CAAVA,UAAU,0BAAVA,UAAU,CAAVA,UAAU,gCAAVA,UAAU,CAAVA,UAAU,kBAAVA,UAAU,CAAVA,UAAU,4BAAVA,UAAU,CAAVA,UAAU,oBAAVA,UAAU,CAAVA,UAAU,2CAAVA,UAAU,sBAAVA,UAAU,SA0CVC,YAAW,2CAAXA,WAAW,EAAXA,WAAW,CAAXA,WAAW,qBAAXA,WAAW,CAAXA,WAAW,mCAAXA,WAAW,CAAXA,WAAW,qBAAXA,WAAW,CAAXA,WAAW,gCAAXA,WAAW,uBAAXA,WAAW,SAkBXC,YAAW,2CAAXA,WAAW,EAAXA,WAAW,wBAAXA,WAAW,0BAAXA,WAAW,6BAAXA,WAAW,uBAAXA,WAAW,SAwCXC,aAAY,6CAAZA,YAAY,EAAZA,YAAY,oBAAZA,YAAY,gBAAZA,YAAY,cAAZA,YAAY,kBAAZA,YAAY,mBAAZA,YAAY,wBAAZA,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["GooglePayButtonComponent.ts"],"sourcesContent":["import type { StyleProp, ViewStyle } from 'react-native';\nexport interface NativeProps {\n style?: StyleProp<ViewStyle>;\n type?: number;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["GooglePayButtonComponent.ts"],"sourcesContent":["import type { StyleProp, ViewStyle } from 'react-native';\nexport interface NativeProps {\n style?: StyleProp<ViewStyle>;\n type?: number;\n appearance?: number;\n borderRadius?: number;\n}\n"],"mappings":""}
@@ -6,8 +6,8 @@ import type { PaymentSheet, AddressDetails, StripeError, AddressSheetError } fro
6
6
  export interface Props extends AccessibilityProps {
7
7
  /** Whether the sheet is visible. Defaults to false. */
8
8
  visible: boolean;
9
- /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. */
10
- presentationStyle?: 'fullscreen' | 'popover';
9
+ /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. See https://developer.apple.com/documentation/uikit/uimodalpresentationstyle for more info. */
10
+ presentationStyle?: 'fullscreen' | 'popover' | 'pageSheet' | 'formSheet' | 'automatic' | 'overFullScreen';
11
11
  /** Controls how the modal animates. iOS only. */
12
12
  animationStyle?: 'flip' | 'curl' | 'slide' | 'dissolve';
13
13
  /** Configuration for the look and feel of the UI. */
@@ -6,9 +6,9 @@ import { ButtonType, ButtonStyle, ShippingMethod, ShippingContact } from '../typ
6
6
  export interface Props extends AccessibilityProps {
7
7
  /** Sets the text displayed by the button. */
8
8
  type?: ButtonType;
9
- /** iOS only. Sets the coloring of the button. */
9
+ /** Sets the coloring of the button. */
10
10
  appearance?: ButtonStyle;
11
- /** Affects iOS only. Sets the border radius of the button. On Android, you cannot modify the radius of the Google Pay button, since doing so violates the [Google Brand Guidelines](https://developers.google.com/pay/api/android/guides/brand-guidelines#style). */
11
+ /** Sets the border radius of the button. */
12
12
  borderRadius?: number;
13
13
  /** Function called whenever the button is pressed. */
14
14
  onPress(): void;
@@ -33,8 +33,8 @@ export declare type CustomerSheetInitParams = {
33
33
  customerAdapter?: CustomerAdapter;
34
34
  };
35
35
  export declare type CustomerSheetPresentParams = {
36
- /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. */
37
- presentationStyle?: 'fullscreen' | 'popover';
36
+ /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. See https://developer.apple.com/documentation/uikit/uimodalpresentationstyle for more info. */
37
+ presentationStyle?: 'fullscreen' | 'popover' | 'pageSheet' | 'formSheet' | 'automatic' | 'overFullScreen';
38
38
  /** Controls how the modal animates. iOS only. */
39
39
  animationStyle?: 'flip' | 'curl' | 'slide' | 'dissolve';
40
40
  /** Time (in milliseconds) before the Customer Sheet will automatically dismiss. */
@@ -173,7 +173,7 @@ export declare type GooglePayBaseParams = {
173
173
  };
174
174
  /** An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided. */
175
175
  label?: string;
176
- /** An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. */
176
+ /** An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. Provide this value in the currency’s smallest unit. */
177
177
  amount?: number;
178
178
  };
179
179
  export declare type GooglePayPaymentMethodParams = {
@@ -242,7 +242,7 @@ export declare enum ButtonType {
242
242
  Continue = 16,
243
243
  /** Android only. A button useful for general payments. */
244
244
  Pay = 1000,
245
- /** Android only. A plain white button with the Google Pay logo. Use when you show Google Pay as a payment option in your payment flows. */
245
+ /** Android only. The Google Pay payment button without the additional text. */
246
246
  GooglePayMark = 1001
247
247
  }
248
248
  /** iOS only. */
@@ -2,4 +2,6 @@ import type { StyleProp, ViewStyle } from 'react-native';
2
2
  export interface NativeProps {
3
3
  style?: StyleProp<ViewStyle>;
4
4
  type?: number;
5
+ appearance?: number;
6
+ borderRadius?: number;
5
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-react-native",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "author": "Stripe",
5
5
  "description": "Stripe SDK for React Native",
6
6
  "main": "lib/commonjs/index",
@@ -58,7 +58,7 @@
58
58
  "metro-react-native-babel-preset": "^0.70.3",
59
59
  "prettier": "^2.0.5",
60
60
  "react": "18.0.0",
61
- "react-native": "0.69.7",
61
+ "react-native": "0.69.9",
62
62
  "ts-node": "^9.1.1",
63
63
  "typedoc": "^0.22.12",
64
64
  "typescript": "~4.4.4"
@@ -19,8 +19,14 @@ const AddressSheetNative = requireNativeComponent<any>('AddressSheetView');
19
19
  export interface Props extends AccessibilityProps {
20
20
  /** Whether the sheet is visible. Defaults to false. */
21
21
  visible: boolean;
22
- /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. */
23
- presentationStyle?: 'fullscreen' | 'popover';
22
+ /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. See https://developer.apple.com/documentation/uikit/uimodalpresentationstyle for more info. */
23
+ presentationStyle?:
24
+ | 'fullscreen'
25
+ | 'popover'
26
+ | 'pageSheet'
27
+ | 'formSheet'
28
+ | 'automatic'
29
+ | 'overFullScreen';
24
30
  /** Controls how the modal animates. iOS only. */
25
31
  animationStyle?: 'flip' | 'curl' | 'slide' | 'dissolve';
26
32
  /** Configuration for the look and feel of the UI. */
@@ -24,9 +24,9 @@ import ApplePayButtonNative from './ApplePayButtonNative';
24
24
  export interface Props extends AccessibilityProps {
25
25
  /** Sets the text displayed by the button. */
26
26
  type?: ButtonType;
27
- /** iOS only. Sets the coloring of the button. */
27
+ /** Sets the coloring of the button. */
28
28
  appearance?: ButtonStyle;
29
- /** Affects iOS only. Sets the border radius of the button. On Android, you cannot modify the radius of the Google Pay button, since doing so violates the [Google Brand Guidelines](https://developers.google.com/pay/api/android/guides/brand-guidelines#style). */
29
+ /** Sets the border radius of the button. */
30
30
  borderRadius?: number;
31
31
  /** Function called whenever the button is pressed. */
32
32
  onPress(): void;
@@ -164,6 +164,8 @@ export function PlatformPayButton({
164
164
  ) : (
165
165
  <GooglePayButtonNative
166
166
  type={type}
167
+ appearance={appearance}
168
+ borderRadius={borderRadius}
167
169
  style={styles.nativeButtonStyle}
168
170
  {...props}
169
171
  />
@@ -41,8 +41,14 @@ export type CustomerSheetInitParams = {
41
41
  };
42
42
 
43
43
  export type CustomerSheetPresentParams = {
44
- /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. */
45
- presentationStyle?: 'fullscreen' | 'popover';
44
+ /** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. See https://developer.apple.com/documentation/uikit/uimodalpresentationstyle for more info. */
45
+ presentationStyle?:
46
+ | 'fullscreen'
47
+ | 'popover'
48
+ | 'pageSheet'
49
+ | 'formSheet'
50
+ | 'automatic'
51
+ | 'overFullScreen';
46
52
  /** Controls how the modal animates. iOS only. */
47
53
  animationStyle?: 'flip' | 'curl' | 'slide' | 'dissolve';
48
54
  /** Time (in milliseconds) before the Customer Sheet will automatically dismiss. */
@@ -195,7 +195,7 @@ export type GooglePayBaseParams = {
195
195
  };
196
196
  /** An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided. */
197
197
  label?: string;
198
- /** An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. */
198
+ /** An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. Provide this value in the currency’s smallest unit. */
199
199
  amount?: number;
200
200
  };
201
201
 
@@ -269,7 +269,7 @@ export enum ButtonType {
269
269
  Continue = 16,
270
270
  /** Android only. A button useful for general payments. */
271
271
  Pay = 1000,
272
- /** Android only. A plain white button with the Google Pay logo. Use when you show Google Pay as a payment option in your payment flows. */
272
+ /** Android only. The Google Pay payment button without the additional text. */
273
273
  GooglePayMark = 1001,
274
274
  }
275
275
 
@@ -2,4 +2,6 @@ import type { StyleProp, ViewStyle } from 'react-native';
2
2
  export interface NativeProps {
3
3
  style?: StyleProp<ViewStyle>;
4
4
  type?: number;
5
+ appearance?: number;
6
+ borderRadius?: number;
5
7
  }
@@ -2,7 +2,7 @@ require 'json'
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
4
  # Keep stripe_version in sync with https://github.com/stripe/stripe-identity-react-native/blob/main/stripe-identity-react-native.podspec
5
- stripe_version = '~> 23.16.0'
5
+ stripe_version = '~> 23.18.0'
6
6
 
7
7
  Pod::Spec.new do |s|
8
8
  s.name = 'stripe-react-native'
@@ -1,14 +0,0 @@
1
- <vector android:width="130dp" android:height="21dp" android:viewportWidth="130" android:viewportHeight="21" xmlns:android="http://schemas.android.com/apk/res/android">
2
- <path android:pathData="M2.08038 15.0006V3.54461h4.288c0.62933 0 1.2 0.13333 1.712 0.4s0.91733 0.62933 1.216 1.088c0.30933 0.45867 0.464 0.976 0.464 1.552 0 0.58667-0.144 1.088-0.432 1.504-0.288 0.416-0.66133 0.73067-1.12 0.944v0.08c0.576 0.192 1.04533 0.52267 1.408 0.99199 0.36267 0.4693 0.54402 1.0293 0.54402 1.68 0 0.64-0.16535 1.2-0.49602 1.68-0.32 0.48-0.75733 0.8587-1.312 1.136-0.544 0.2667-1.14133 0.4-1.792 0.4h-4.48zm1.76-5.07199v3.43999h2.72c0.384 0 0.71466-0.08 0.992-0.24 0.27733-0.16 0.48533-0.3733 0.624-0.64 0.14933-0.2667 0.224-0.544 0.224-0.832 0-0.3093-0.07467-0.592-0.224-0.848-0.14934-0.2667-0.368-0.48-0.656-0.64-0.27733-0.16-0.61867-0.23999-1.024-0.23999h-2.656zm0-1.568h2.448c0.37333 0 0.688-0.07467 0.944-0.224 0.26667-0.16 0.46933-0.36267 0.608-0.608 0.13867-0.256 0.208-0.51733 0.208-0.784 0-0.26667-0.06933-0.51733-0.208-0.752-0.128-0.24533-0.32-0.44267-0.576-0.592-0.256-0.16-0.56-0.24-0.912-0.24h-2.512v3.2zM15.798 15.2566c-0.8427 0-1.584-0.192-2.224-0.576-0.64-0.384-1.1413-0.9013-1.504-1.552-0.3627-0.6613-0.544-1.3973-0.544-2.208 0-0.8107 0.1813-1.54132 0.544-2.19199 0.3627-0.66133 0.864-1.184 1.504-1.568 0.64-0.384 1.3813-0.576 2.224-0.576 0.832 0 1.568 0.19733 2.208 0.592 0.64 0.384 1.1413 0.90133 1.504 1.552 0.3627 0.65067 0.544 1.38129 0.544 2.19199 0 0.8107-0.1813 1.5467-0.544 2.208-0.3627 0.6507-0.864 1.168-1.504 1.552-0.64 0.384-1.376 0.576-2.208 0.576zm0-1.584c0.448 0 0.864-0.1067 1.248-0.32 0.384-0.224 0.6933-0.5387 0.928-0.944 0.2453-0.416 0.368-0.912 0.368-1.488s-0.1227-1.06666-0.368-1.47199c-0.2347-0.416-0.544-0.73067-0.928-0.944-0.384-0.224-0.8-0.336-1.248-0.336-0.448 0-0.8693 0.112-1.264 0.336-0.384 0.21333-0.6987 0.528-0.944 0.944-0.2347 0.40533-0.352 0.89599-0.352 1.47199s0.1173 1.072 0.352 1.488c0.2453 0.4053 0.5653 0.72 0.96 0.944 0.3947 0.2133 0.8107 0.32 1.248 0.32zm9.8375 1.584c-0.8427 0-1.584-0.192-2.224-0.576-0.64-0.384-1.1413-0.9013-1.504-1.552-0.3627-0.6613-0.544-1.3973-0.544-2.208 0-0.8107 0.1813-1.54132 0.544-2.19199 0.3627-0.66133 0.864-1.184 1.504-1.568 0.64-0.384 1.3813-0.576 2.224-0.576 0.832 0 1.568 0.19733 2.208 0.592 0.64 0.384 1.1413 0.90133 1.504 1.552 0.3627 0.65067 0.544 1.38129 0.544 2.19199 0 0.8107-0.1813 1.5467-0.544 2.208-0.3627 0.6507-0.864 1.168-1.504 1.552-0.64 0.384-1.376 0.576-2.208 0.576zm0-1.584c0.448 0 0.864-0.1067 1.248-0.32 0.384-0.224 0.6933-0.5387 0.928-0.944 0.2453-0.416 0.368-0.912 0.368-1.488s-0.1227-1.06666-0.368-1.47199c-0.2347-0.416-0.544-0.73067-0.928-0.944-0.384-0.224-0.8-0.336-1.248-0.336-0.448 0-0.8693 0.112-1.264 0.336-0.384 0.21333-0.6987 0.528-0.944 0.944-0.2347 0.40533-0.352 0.89599-0.352 1.47199s0.1173 1.072 0.352 1.488c0.2453 0.4053 0.5653 0.72 0.96 0.944 0.3947 0.2133 0.8107 0.32 1.248 0.32zm5.9194 1.328V3.54461h1.728v6.75199l3.456-3.45599h2.144v0.096l-3.152 3.11999 3.264 4.848v0.096h-2.048l-2.432-3.744-1.232 1.216v2.528h-1.728zm14.262 0l-2.608-8.15999h1.872l1.68 5.87199h0.064l1.84-5.87199h1.776l1.84 5.87199h0.064l1.68-5.87199h1.84l-2.624 8.15999h-1.808l-1.888-5.90399h-0.064l-1.872 5.90399h-1.792zm11.441 0V6.84061h1.728v8.15999h-1.728zm0.864-9.35999c-0.32 0-0.5974-0.112-0.832-0.336-0.224-0.23467-0.336-0.512-0.336-0.832 0-0.33067 0.112-0.60267 0.336-0.816 0.2346-0.224 0.512-0.336 0.832-0.336 0.3306 0 0.608 0.112 0.832 0.336 0.224 0.21333 0.336 0.48533 0.336 0.816 0 0.32-0.112 0.59733-0.336 0.832-0.224 0.224-0.5014 0.336-0.832 0.336zm2.5199 1.2h1.424v-2.304h1.728v2.304h2v1.504h-2v3.91999c0 0.4053 0.08 0.7147 0.24 0.928 0.1706 0.2133 0.4533 0.32 0.848 0.32 0.192 0 0.3626-0.0267 0.512-0.08 0.1493-0.064 0.2986-0.1387 0.448-0.224v1.68c-0.1814 0.0747-0.3734 0.1333-0.576 0.176-0.2027 0.0427-0.4427 0.064-0.72 0.064-0.7574 0-1.36-0.2187-1.808-0.656-0.448-0.448-0.672-1.0613-0.672-1.84V8.34461h-1.424v-1.504zm7.0381 8.15999V3.54461h1.728v3.136l-0.096 1.28h0.096c0.224-0.39467 0.5653-0.72 1.024-0.976 0.4693-0.26667 0.9866-0.4 1.552-0.4 0.6826 0 1.248 0.13867 1.696 0.416 0.4586 0.27733 0.8 0.66133 1.024 1.152 0.224 0.48 0.336 1.04533 0.336 1.696v5.15199h-1.712v-4.928c0-0.43732-0.0854-0.79466-0.256-1.07199-0.16-0.27733-0.3734-0.48533-0.64-0.624-0.2667-0.13867-0.5654-0.208-0.896-0.208-0.416 0-0.784 0.11733-1.104 0.352-0.32 0.23467-0.5707 0.544-0.752 0.928-0.1814 0.37333-0.272 0.77329-0.272 1.19999v4.352h-1.728z" android:fillColor="#ffffff"/>
3
- <group>
4
- <group>
5
- <path android:pathData="M104.356 3.42339v4.73836h2.922c0.696 0 1.272-0.23394 1.727-0.70182 0.468-0.4668 0.702-1.02349 0.702-1.6679 0-0.63142-0.234-1.18162-0.702-1.64949-0.455-0.4798-1.031-0.72024-1.727-0.72024h-2.922v0.00109zm0 6.40627v5.49654h-1.745V1.75549h4.629c1.177 0 2.175 0.39207 2.998 1.17512 0.835 0.78304 1.253 1.73721 1.253 2.86142 0 1.15021-0.418 2.11088-1.253 2.88093-0.81 0.77113-1.809 1.15562-2.998 1.15562h-2.884v0.00108zM113.255 12.4831c0 0.4548 0.193 0.8339 0.579 1.1372 0.386 0.3032 0.838 0.4549 1.356 0.4549 0.734 0 1.388-0.272 1.963-0.8145 0.576-0.5437 0.864-1.1816 0.864-1.9138-0.545-0.4299-1.304-0.6444-2.277-0.6444-0.709 0-1.3 0.1711-1.774 0.5123-0.474 0.3411-0.711 0.7625-0.711 1.2683m2.258-6.74744c1.29 0 2.308 0.34441 3.056 1.03323 0.745 0.68882 1.118 1.63324 1.118 2.83327v5.72394h-1.669v-1.2888h-0.076c-0.721 1.0612-1.683 1.5921-2.884 1.5921-1.025 0-1.882-0.3033-2.571-0.9098-0.69-0.6065-1.034-1.3647-1.034-2.2744 0-0.9607 0.363-1.7244 1.09-2.2929 0.728-0.56855 1.698-0.8534 2.913-0.8534 1.036 0 1.89 0.18954 2.561 0.56861V9.46894c0-0.60651-0.241-1.12096-0.721-1.54443-0.482-0.42348-1.044-0.63467-1.689-0.63467-0.974 0-1.745 0.41048-2.314 1.23251l-1.538-0.96716c0.848-1.21302 2.1-1.81953 3.758-1.81953M129.269 6.03894l-5.826 13.38116h-1.802l2.163-4.6821-3.833-8.69906h1.898l2.77 6.67166h0.038l2.694-6.67166h1.898z" android:fillColor="#ffffff" android:fillType="evenOdd"/>
6
- </group>
7
- <group>
8
- <path android:pathData="M97.3029 8.64473c0-0.5491-0.0467-1.07872-0.1345-1.58559h-7.3619v3.00336h4.2166c-0.1811 0.9789-0.7287 1.8119-1.5592 2.3697v1.9506h2.5165c1.4735-1.3582 2.3225-3.3651 2.3225-5.73807" android:fillColor="#4285f4" android:fillType="evenOdd"/>
9
- <path android:pathData="M89.8065 16.2651c2.1066 0 3.8804-0.691 5.1739-1.8823l-2.5165-1.9506c-0.7004 0.4711-1.6025 0.7462-2.6574 0.7462-2.0362 0-3.7645-1.3711-4.3825-3.21881h-2.5924v2.00911c1.2848 2.5473 3.9249 4.2964 6.9749 4.2964" android:fillColor="#34a853" android:fillType="evenOdd"/>
10
- <path android:pathData="M85.424 9.9596c-0.1583-0.47113-0.245-0.97367-0.245-1.49245s0.0867-1.02132 0.245-1.49245V4.96564h-2.5924C82.3003 6.01837 82 7.20756 82 8.46715c0 1.25959 0.3003 2.44885 0.8316 3.50155l2.5924-2.0091z" android:fillColor="#fabb05" android:fillType="evenOdd"/>
11
- <path android:pathData="M89.8065 3.75583c1.1503 0 2.1814 0.39532 2.9946 1.1697v0.00108l2.2281-2.22567c-1.3531-1.25851-3.1172-2.031812-5.2227-2.031812-3.05 0-5.6901 1.749132-6.9749 4.296472l2.5924 2.00907c0.618-1.84769 2.3463-3.21884 4.3825-3.21884" android:fillColor="#e94235" android:fillType="evenOdd"/>
12
- </group>
13
- </group>
14
- </vector>
@@ -1,14 +0,0 @@
1
- <vector android:width="120dp" android:height="21dp" android:viewportWidth="120" android:viewportHeight="21" xmlns:android="http://schemas.android.com/apk/res/android">
2
- <path android:pathData="M1.96475 15.0006V3.54461h4.288c0.62933 0 1.2 0.13333 1.712 0.4s0.91733 0.62933 1.216 1.088c0.30933 0.45867 0.464 0.976 0.464 1.552 0 0.58667-0.144 1.088-0.432 1.504-0.288 0.416-0.66134 0.73067-1.12 0.944v0.08c0.576 0.192 1.04533 0.52267 1.408 0.99199 0.36266 0.4693 0.54395 1.0293 0.54395 1.68 0 0.64-0.16529 1.2-0.49595 1.68-0.32 0.48-0.75734 0.8587-1.312 1.136-0.544 0.2667-1.14134 0.4-1.792 0.4h-4.48zm1.76-5.07199v3.43999h2.72c0.384 0 0.71466-0.08 0.992-0.24 0.27733-0.16 0.48533-0.3733 0.624-0.64 0.14933-0.2667 0.224-0.544 0.224-0.832 0-0.3093-0.07467-0.592-0.224-0.848-0.14934-0.2667-0.368-0.48-0.656-0.64-0.27734-0.16-0.61867-0.23999-1.024-0.23999h-2.656zm0-1.568h2.448c0.37333 0 0.688-0.07467 0.944-0.224 0.26666-0.16 0.46933-0.36267 0.608-0.608 0.13866-0.256 0.208-0.51733 0.208-0.784 0-0.26667-0.06934-0.51733-0.208-0.752-0.128-0.24533-0.32-0.44267-0.576-0.592-0.256-0.16-0.56-0.24-0.912-0.24h-2.512v3.2zM14.8024 15.2566c-1.0027 0-1.76-0.2987-2.272-0.896-0.5014-0.608-0.752-1.4293-0.752-2.464V6.84061h1.728v4.81599c0 0.6827 0.16 1.1893 0.48 1.52 0.3306 0.3307 0.7413 0.496 1.232 0.496 0.448 0 0.832-0.112 1.152-0.336 0.32-0.2347 0.5653-0.5387 0.736-0.912 0.1813-0.3733 0.272-0.7733 0.272-1.2V6.84061h1.712v8.15999h-1.616v-1.104h-0.096c-0.1494 0.256-0.3574 0.4853-0.624 0.688-0.2667 0.2027-0.5654 0.3627-0.896 0.48-0.3307 0.128-0.6827 0.192-1.056 0.192zm9.2552 2.8c-0.032 0.0747-0.0693 0.1493-0.112 0.224-0.032 0.0853-0.0533 0.144-0.064 0.176h-1.84c0.0534-0.1173 0.128-0.2827 0.224-0.496 0.1067-0.2133 0.208-0.4267 0.304-0.64 0.064-0.1387 0.128-0.288 0.192-0.448 0.0747-0.16 0.1494-0.3253 0.224-0.496 0.0854-0.1707 0.1654-0.336 0.24-0.496l0.608-1.328-3.408-7.71199h1.92l2.336 5.56799h0.08l2.256-5.56799h1.904l-4.224 9.72799c-0.0746 0.1813-0.16 0.3733-0.256 0.576-0.0853 0.2027-0.1653 0.384-0.24 0.544-0.064 0.1707-0.112 0.2933-0.144 0.368zm11.7593-3.056l-2.608-8.15999h1.872l1.68 5.87199h0.064l1.84-5.87199h1.776l1.84 5.87199h0.064l1.68-5.87199h1.84l-2.624 8.15999h-1.808l-1.888-5.90399h-0.064l-1.872 5.90399h-1.792zm11.441 0V6.84061h1.728v8.15999h-1.728zm0.864-9.35999c-0.32 0-0.5974-0.112-0.832-0.336-0.224-0.23467-0.336-0.512-0.336-0.832 0-0.33067 0.112-0.60267 0.336-0.816 0.2346-0.224 0.512-0.336 0.832-0.336 0.3306 0 0.608 0.112 0.832 0.336 0.224 0.21333 0.336 0.48533 0.336 0.816 0 0.32-0.112 0.59733-0.336 0.832-0.224 0.224-0.5014 0.336-0.832 0.336zm2.5198 1.2h1.424v-2.304h1.728v2.304h2v1.504h-2v3.91999c0 0.4053 0.08 0.7147 0.24 0.928 0.1707 0.2133 0.4534 0.32 0.848 0.32 0.192 0 0.3627-0.0267 0.512-0.08 0.1494-0.064 0.2987-0.1387 0.448-0.224v1.68c-0.1813 0.0747-0.3733 0.1333-0.576 0.176-0.2026 0.0427-0.4426 0.064-0.72 0.064-0.7573 0-1.36-0.2187-1.808-0.656-0.448-0.448-0.672-1.0613-0.672-1.84V8.34461h-1.424v-1.504zm7.0382 8.15999V3.54461h1.728v3.136l-0.096 1.28h0.096c0.224-0.39467 0.5653-0.72 1.024-0.976 0.4693-0.26667 0.9866-0.4 1.552-0.4 0.6826 0 1.248 0.13867 1.696 0.416 0.4586 0.27733 0.8 0.66133 1.024 1.152 0.224 0.48 0.336 1.04533 0.336 1.696v5.15199h-1.712v-4.928c0-0.43732-0.0854-0.79466-0.256-1.07199-0.16-0.27733-0.3734-0.48533-0.64-0.624-0.2667-0.13867-0.5654-0.208-0.896-0.208-0.416 0-0.784 0.11733-1.104 0.352-0.32 0.23467-0.5707 0.544-0.752 0.928-0.1814 0.37333-0.272 0.77329-0.272 1.19999v4.352h-1.728z" android:fillColor="#ffffff"/>
3
- <group>
4
- <group>
5
- <path android:pathData="M94.3563 3.42339v4.73836h2.9221c0.6961 0 1.2717-0.23394 1.7271-0.70182 0.4673-0.4668 0.7015-1.02349 0.7015-1.6679 0-0.63142-0.2342-1.18162-0.7015-1.64949-0.4554-0.4798-1.031-0.72024-1.7271-0.72024h-2.9221v0.00109zm0 6.40627v5.49654h-1.7456V1.75549h4.6297c1.1765 0 2.175 0.39207 2.9976 1.17512 0.835 0.78304 1.253 1.73721 1.253 2.86142 0 1.15021-0.418 2.11088-1.253 2.88093-0.8097 0.77113-1.8093 1.15562-2.9976 1.15562h-2.8841v0.00108zM103.255 12.4831c0 0.4548 0.193 0.8339 0.579 1.1372 0.386 0.3032 0.838 0.4549 1.356 0.4549 0.734 0 1.388-0.272 1.963-0.8145 0.576-0.5437 0.864-1.1816 0.864-1.9138-0.545-0.4299-1.304-0.6444-2.277-0.6444-0.709 0-1.3 0.1711-1.774 0.5123-0.474 0.3411-0.711 0.7625-0.711 1.2683m2.258-6.74744c1.29 0 2.308 0.34441 3.056 1.03323 0.745 0.68882 1.118 1.63324 1.118 2.83327v5.72394h-1.669v-1.2888h-0.076c-0.721 1.0612-1.683 1.5921-2.884 1.5921-1.025 0-1.882-0.3033-2.571-0.9098-0.69-0.6065-1.034-1.3647-1.034-2.2744 0-0.9607 0.363-1.7244 1.09-2.2929 0.728-0.56855 1.698-0.8534 2.913-0.8534 1.036 0 1.89 0.18954 2.561 0.56861V9.46894c0-0.60651-0.241-1.12096-0.721-1.54443-0.482-0.42348-1.044-0.63467-1.689-0.63467-0.974 0-1.745 0.41048-2.314 1.23251l-1.538-0.96716c0.848-1.21302 2.1-1.81953 3.758-1.81953M119.269 6.03894l-5.826 13.38116h-1.802l2.163-4.6821-3.833-8.69906h1.898l2.77 6.67166h0.038l2.694-6.67166h1.898z" android:fillColor="#ffffff" android:fillType="evenOdd"/>
6
- </group>
7
- <group>
8
- <path android:pathData="M87.3029 8.64473c0-0.5491-0.0467-1.07872-0.1345-1.58559h-7.3619v3.00336h4.2166c-0.1811 0.9789-0.7287 1.8119-1.5592 2.3697v1.9506h2.5165c1.4735-1.3582 2.3225-3.3651 2.3225-5.73807" android:fillColor="#4285f4" android:fillType="evenOdd"/>
9
- <path android:pathData="M79.8065 16.2651c2.1066 0 3.8804-0.691 5.1739-1.8823l-2.5165-1.9506c-0.7004 0.4711-1.6025 0.7462-2.6574 0.7462-2.0362 0-3.7645-1.3711-4.3825-3.21881h-2.5924v2.00911c1.2848 2.5473 3.9249 4.2964 6.9749 4.2964" android:fillColor="#34a853" android:fillType="evenOdd"/>
10
- <path android:pathData="M75.424 9.9596c-0.1583-0.47113-0.245-0.97367-0.245-1.49245s0.0867-1.02132 0.245-1.49245V4.96564h-2.5924C72.3003 6.01837 72 7.20756 72 8.46715c0 1.25959 0.3003 2.44885 0.8316 3.50155l2.5924-2.0091z" android:fillColor="#fabb05" android:fillType="evenOdd"/>
11
- <path android:pathData="M79.8065 3.75583c1.1503 0 2.1814 0.39532 2.9946 1.1697v0.00108l2.2281-2.22567c-1.3531-1.25851-3.1172-2.031812-5.2227-2.031812-3.05 0-5.6901 1.749132-6.9749 4.296472l2.5924 2.00907c0.618-1.84769 2.3463-3.21884 4.3825-3.21884" android:fillColor="#e94235" android:fillType="evenOdd"/>
12
- </group>
13
- </group>
14
- </vector>
@@ -1,14 +0,0 @@
1
- <vector android:width="165dp" android:height="21dp" android:viewportWidth="165" android:viewportHeight="21" xmlns:android="http://schemas.android.com/apk/res/android">
2
- <path android:pathData="M6.888 15.2566c-0.84267 0-1.62667-0.1493-2.352-0.448-0.72534-0.3093-1.36-0.7307-1.904-1.264-0.53334-0.544-0.95467-1.1787-1.264-1.904-0.29867-0.736-0.448003-1.5253-0.448003-2.36799 0-0.85333 0.149333-1.64267 0.448003-2.368 0.30933-0.72533 0.73066-1.35467 1.264-1.888 0.544-0.544 1.17866-0.96533 1.904-1.264 0.72533-0.30933 1.50933-0.464 2.352-0.464 0.59733 0 1.152 0.07467 1.664 0.224 0.512 0.14933 0.98133 0.36267 1.408 0.64 0.4267 0.27733 0.816 0.61333 1.168 1.008l-1.232 1.2c-0.256-0.30933-0.53334-0.56533-0.832-0.768-0.29867-0.21333-0.62934-0.37333-0.992-0.48-0.352-0.10667-0.74134-0.16-1.168-0.16-0.768 0-1.472 0.18133-2.112 0.544-0.64 0.352-1.152 0.848-1.536 1.488-0.37334 0.64-0.56 1.40267-0.56 2.288 0 0.87469 0.18666 1.63729 0.56 2.28799 0.384 0.64 0.896 1.1413 1.536 1.504 0.64 0.352 1.344 0.528 2.112 0.528 0.46933 0 0.896-0.064 1.28-0.192 0.39466-0.128 0.75733-0.3147 1.088-0.56 0.33066-0.2453 0.63466-0.5333 0.912-0.864l1.264 1.216c-0.352 0.416-0.7627 0.7787-1.232 1.088-0.46934 0.3093-0.98134 0.5493-1.536 0.72-0.55467 0.1707-1.152 0.256-1.792 0.256zm6.2356-0.256V3.54461h1.728v3.136l-0.096 1.28h0.096c0.224-0.39467 0.5654-0.72 1.024-0.976 0.4694-0.26667 0.9867-0.4 1.552-0.4 0.6827 0 1.248 0.13867 1.696 0.416 0.4587 0.27733 0.8 0.66133 1.024 1.152 0.224 0.48 0.336 1.04533 0.336 1.696v5.15199h-1.712v-4.928c0-0.43732-0.0853-0.79466-0.256-1.07199-0.16-0.27733-0.3733-0.48533-0.64-0.624-0.2666-0.13867-0.5653-0.208-0.896-0.208-0.416 0-0.784 0.11733-1.104 0.352-0.32 0.23467-0.5706 0.544-0.752 0.928-0.1813 0.37333-0.272 0.77329-0.272 1.19999v4.352h-1.728zm13.2061 0.256c-0.8 0-1.5146-0.1867-2.144-0.56-0.6293-0.3733-1.1253-0.8853-1.488-1.536-0.352-0.6507-0.528-1.392-0.528-2.224 0-0.7787 0.1707-1.49866 0.512-2.15999 0.3414-0.66133 0.816-1.18933 1.424-1.584 0.6187-0.40533 1.328-0.608 2.128-0.608 0.8427 0 1.5574 0.18133 2.144 0.544 0.5974 0.36267 1.0507 0.85867 1.36 1.488 0.3094 0.62933 0.464 1.33867 0.464 2.12799 0 0.1173-0.0053 0.224-0.016 0.32 0 0.096-0.0053 0.1707-0.016 0.224h-6.304c0.0427 0.448 0.1547 0.8373 0.336 1.168 0.2347 0.416 0.544 0.7307 0.928 0.944 0.384 0.2133 0.8 0.32 1.248 0.32 0.544 0 0.9974-0.1227 1.36-0.368 0.3734-0.256 0.6667-0.5707 0.88-0.944l1.424 0.688c-0.352 0.64-0.832 1.1627-1.44 1.568-0.608 0.3947-1.3653 0.592-2.272 0.592zm-2.368-5.26399h4.528c-0.0106-0.20267-0.064-0.416-0.16-0.64-0.096-0.23467-0.2346-0.448-0.416-0.64-0.1813-0.192-0.4106-0.34667-0.688-0.464-0.2773-0.128-0.6026-0.192-0.976-0.192-0.4693 0-0.8853 0.12267-1.248 0.368-0.3626 0.23467-0.6453 0.56533-0.848 0.992-0.0853 0.18133-0.1493 0.37333-0.192 0.576zM35.809 15.2566c-0.8213 0-1.552-0.1867-2.192-0.56-0.6293-0.3733-1.1253-0.8853-1.488-1.536-0.352-0.6613-0.528-1.408-0.528-2.24 0-0.832 0.176-1.57332 0.528-2.22399 0.3627-0.65067 0.8587-1.16267 1.488-1.536 0.64-0.384 1.3707-0.576 2.192-0.576 0.9067 0 1.6693 0.20267 2.288 0.608 0.6293 0.40533 1.0773 0.95467 1.344 1.648l-1.568 0.64c-0.192-0.43733-0.4693-0.76267-0.832-0.976-0.352-0.224-0.7733-0.336-1.264-0.336-0.448 0-0.8587 0.11733-1.232 0.352-0.3733 0.224-0.672 0.53867-0.896 0.944-0.224 0.40533-0.336 0.89069-0.336 1.45599 0 0.5547 0.112 1.04 0.336 1.456 0.224 0.416 0.5227 0.736 0.896 0.96 0.3733 0.224 0.784 0.336 1.232 0.336 0.5227 0 0.9653-0.1173 1.328-0.352 0.3627-0.2347 0.6453-0.5653 0.848-0.992l1.536 0.672c-0.2987 0.6507-0.7627 1.1893-1.392 1.616-0.6187 0.4267-1.3813 0.64-2.288 0.64zm5.3115-0.256V3.54461h1.728v6.75199l3.456-3.45599h2.144v0.096l-3.152 3.11999 3.264 4.848v0.096h-2.048l-2.432-3.744-1.232 1.216v2.528h-1.728zm12.2712 0.256c-0.8426 0-1.584-0.192-2.224-0.576-0.64-0.384-1.1413-0.9013-1.504-1.552-0.3626-0.6613-0.544-1.3973-0.544-2.208 0-0.8107 0.1814-1.54132 0.544-2.19199 0.3627-0.66133 0.864-1.184 1.504-1.568 0.64-0.384 1.3814-0.576 2.224-0.576 0.832 0 1.568 0.19733 2.208 0.592 0.64 0.384 1.1414 0.90133 1.504 1.552 0.3627 0.65067 0.544 1.38129 0.544 2.19199 0 0.8107-0.1813 1.5467-0.544 2.208-0.3626 0.6507-0.864 1.168-1.504 1.552-0.64 0.384-1.376 0.576-2.208 0.576zm0-1.584c0.448 0 0.864-0.1067 1.248-0.32 0.384-0.224 0.6934-0.5387 0.928-0.944 0.2454-0.416 0.368-0.912 0.368-1.488s-0.1226-1.06666-0.368-1.47199c-0.2346-0.416-0.544-0.73067-0.928-0.944-0.384-0.224-0.8-0.336-1.248-0.336-0.448 0-0.8693 0.112-1.264 0.336-0.384 0.21333-0.6986 0.528-0.944 0.944-0.2346 0.40533-0.352 0.89599-0.352 1.47199s0.1174 1.072 0.352 1.488c0.2454 0.4053 0.5654 0.72 0.96 0.944 0.3947 0.2133 0.8107 0.32 1.248 0.32zm8.8794 1.584c-1.0026 0-1.76-0.2987-2.272-0.896-0.5013-0.608-0.752-1.4293-0.752-2.464V6.84061h1.728v4.81599c0 0.6827 0.16 1.1893 0.48 1.52 0.3307 0.3307 0.7414 0.496 1.232 0.496 0.448 0 0.832-0.112 1.152-0.336 0.32-0.2347 0.5654-0.5387 0.736-0.912 0.1814-0.3733 0.272-0.7733 0.272-1.2V6.84061h1.712v8.15999h-1.616v-1.104h-0.096c-0.1493 0.256-0.3573 0.4853-0.624 0.688-0.2666 0.2027-0.5653 0.3627-0.896 0.48-0.3306 0.128-0.6826 0.192-1.056 0.192zm5.9894-8.41599h1.424v-2.304h1.728v2.304h2v1.504h-2v3.91999c0 0.4053 0.08 0.7147 0.24 0.928 0.1707 0.2133 0.4533 0.32 0.848 0.32 0.192 0 0.3627-0.0267 0.512-0.08 0.1493-0.064 0.2987-0.1387 0.448-0.224v1.68c-0.1813 0.0747-0.3733 0.1333-0.576 0.176-0.2027 0.0427-0.4427 0.064-0.72 0.064-0.7573 0-1.36-0.2187-1.808-0.656-0.448-0.448-0.672-1.0613-0.672-1.84V8.34461h-1.424v-1.504zm12.5564 8.15999l-2.608-8.15999h1.872l1.68 5.87199h0.064l1.84-5.87199h1.776l1.84 5.87199h0.064l1.68-5.87199h1.84l-2.624 8.15999h-1.808l-1.888-5.90399h-0.064l-1.872 5.90399h-1.792zm11.441 0V6.84061h1.728v8.15999h-1.728zm0.864-9.35999c-0.32 0-0.5974-0.112-0.832-0.336-0.224-0.23467-0.336-0.512-0.336-0.832 0-0.33067 0.112-0.60267 0.336-0.816 0.2346-0.224 0.512-0.336 0.832-0.336 0.3306 0 0.608 0.112 0.832 0.336 0.224 0.21333 0.336 0.48533 0.336 0.816 0 0.32-0.112 0.59733-0.336 0.832-0.224 0.224-0.5014 0.336-0.832 0.336zm2.5198 1.2h1.424v-2.304h1.728v2.304h2.0003v1.504h-2.0003v3.91999c0 0.4053 0.08 0.7147 0.24 0.928 0.1707 0.2133 0.4534 0.32 0.848 0.32 0.1923 0 0.3623-0.0267 0.5123-0.08 0.149-0.064 0.298-0.1387 0.448-0.224v1.68c-0.182 0.0747-0.374 0.1333-0.576 0.176-0.203 0.0427-0.4429 0.064-0.7203 0.064-0.7573 0-1.36-0.2187-1.808-0.656-0.448-0.448-0.672-1.0613-0.672-1.84V8.34461h-1.424v-1.504zm7.0383 8.15999V3.54461h1.728v3.136l-0.096 1.28h0.096c0.224-0.39467 0.565-0.72 1.024-0.976 0.469-0.26667 0.987-0.4 1.552-0.4 0.683 0 1.248 0.13867 1.696 0.416 0.459 0.27733 0.8 0.66133 1.024 1.152 0.224 0.48 0.336 1.04533 0.336 1.696v5.15199h-1.712v-4.928c0-0.43732-0.085-0.79466-0.256-1.07199-0.16-0.27733-0.373-0.48533-0.64-0.624-0.267-0.13867-0.565-0.208-0.896-0.208-0.416 0-0.784 0.11733-1.104 0.352-0.32 0.23467-0.571 0.544-0.752 0.928-0.181 0.37333-0.272 0.77329-0.272 1.19999v4.352h-1.728z" android:fillColor="#ffffff"/>
3
- <group>
4
- <group>
5
- <path android:pathData="M139.356 3.42339v4.73836h2.922c0.696 0 1.272-0.23394 1.727-0.70182 0.468-0.4668 0.702-1.02349 0.702-1.6679 0-0.63142-0.234-1.18162-0.702-1.64949-0.455-0.4798-1.031-0.72024-1.727-0.72024h-2.922v0.00109zm0 6.40627v5.49654h-1.745V1.75549h4.629c1.177 0 2.175 0.39207 2.998 1.17512 0.835 0.78304 1.253 1.73721 1.253 2.86142 0 1.15021-0.418 2.11088-1.253 2.88093-0.81 0.77113-1.809 1.15562-2.998 1.15562h-2.884v0.00108zM148.255 12.4831c0 0.4548 0.193 0.8339 0.579 1.1372 0.386 0.3032 0.838 0.4549 1.356 0.4549 0.734 0 1.388-0.272 1.963-0.8145 0.576-0.5437 0.864-1.1816 0.864-1.9138-0.545-0.4299-1.304-0.6444-2.277-0.6444-0.709 0-1.3 0.1711-1.774 0.5123-0.474 0.3411-0.711 0.7625-0.711 1.2683m2.258-6.74744c1.29 0 2.308 0.34441 3.056 1.03323 0.745 0.68882 1.118 1.63324 1.118 2.83327v5.72394h-1.669v-1.2888h-0.076c-0.721 1.0612-1.683 1.5921-2.884 1.5921-1.025 0-1.882-0.3033-2.571-0.9098-0.69-0.6065-1.034-1.3647-1.034-2.2744 0-0.9607 0.363-1.7244 1.09-2.2929 0.728-0.56855 1.698-0.8534 2.913-0.8534 1.036 0 1.89 0.18954 2.561 0.56861V9.46894c0-0.60651-0.241-1.12096-0.721-1.54443-0.482-0.42348-1.044-0.63467-1.689-0.63467-0.974 0-1.745 0.41048-2.314 1.23251l-1.538-0.96716c0.848-1.21302 2.1-1.81953 3.758-1.81953M164.269 6.03894l-5.826 13.38116h-1.802l2.163-4.6821-3.833-8.69906h1.898l2.77 6.67166h0.038l2.694-6.67166h1.898z" android:fillColor="#ffffff" android:fillType="evenOdd"/>
6
- </group>
7
- <group>
8
- <path android:pathData="M132.303 8.64473c0-0.5491-0.047-1.07872-0.135-1.58559h-7.362v3.00336h4.217c-0.181 0.9789-0.729 1.8119-1.559 2.3697v1.9506h2.516c1.474-1.3582 2.323-3.3651 2.323-5.73807" android:fillColor="#4285f4" android:fillType="evenOdd"/>
9
- <path android:pathData="M124.806 16.2651c2.107 0 3.881-0.691 5.174-1.8823l-2.516-1.9506c-0.701 0.4711-1.603 0.7462-2.658 0.7462-2.036 0-3.764-1.3711-4.382-3.21881h-2.592v2.00911c1.284 2.5473 3.925 4.2964 6.974 4.2964" android:fillColor="#34a853" android:fillType="evenOdd"/>
10
- <path android:pathData="M120.424 9.9596c-0.158-0.47113-0.245-0.97367-0.245-1.49245s0.087-1.02132 0.245-1.49245V4.96564h-2.592C117.3 6.01837 117 7.20756 117 8.46715c0 1.25959 0.3 2.44885 0.832 3.50155l2.592-2.0091z" android:fillColor="#fabb05" android:fillType="evenOdd"/>
11
- <path android:pathData="M124.806 3.75583c1.151 0 2.182 0.39532 2.995 1.1697v0.00108l2.228-2.22567c-1.353-1.25851-3.117-2.031812-5.223-2.031812-3.049 0-5.69 1.749132-6.974 4.296472l2.592 2.00907c0.618-1.84769 2.346-3.21884 4.382-3.21884" android:fillColor="#e94235" android:fillType="evenOdd"/>
12
- </group>
13
- </group>
14
- </vector>
@@ -1,14 +0,0 @@
1
- <vector android:width="146dp" android:height="21dp" android:viewportWidth="146" android:viewportHeight="21" xmlns:android="http://schemas.android.com/apk/res/android">
2
- <path android:pathData="M1.87413 15.0006V3.54461h3.664c1.20533 0 2.24 0.24533 3.104 0.736 0.87466 0.48 1.54667 1.152 2.01597 2.016 0.48 0.864 0.72 1.856 0.72 2.976 0 1.11999-0.24 2.11199-0.72 2.97599-0.4693 0.864-1.14131 1.5413-2.01597 2.032-0.864 0.48-1.89867 0.72-3.104 0.72h-3.664zm1.76-1.664h1.856c0.864 0 1.60533-0.16 2.224-0.48 0.61866-0.3307 1.088-0.8 1.408-1.408 0.32-0.608 0.48-1.3333 0.48-2.17599 0-0.84267-0.16-1.568-0.48-2.176-0.32-0.608-0.78934-1.072-1.408-1.392-0.61867-0.33067-1.36-0.496-2.224-0.496h-1.856v8.12799zm13.22327 1.92c-0.8427 0-1.584-0.192-2.224-0.576-0.64-0.384-1.1414-0.9013-1.504-1.552-0.3627-0.6613-0.544-1.3973-0.544-2.208 0-0.8107 0.1813-1.54132 0.544-2.19199 0.3626-0.66133 0.864-1.184 1.504-1.568 0.64-0.384 1.3813-0.576 2.224-0.576 0.832 0 1.568 0.19733 2.208 0.592 0.64 0.384 1.1413 0.90133 1.504 1.552 0.3626 0.65067 0.544 1.38129 0.544 2.19199 0 0.8107-0.1814 1.5467-0.544 2.208-0.3627 0.6507-0.864 1.168-1.504 1.552-0.64 0.384-1.376 0.576-2.208 0.576zm0-1.584c0.448 0 0.864-0.1067 1.248-0.32 0.384-0.224 0.6933-0.5387 0.928-0.944 0.2453-0.416 0.368-0.912 0.368-1.488s-0.1227-1.06666-0.368-1.47199c-0.2347-0.416-0.544-0.73067-0.928-0.944-0.384-0.224-0.8-0.336-1.248-0.336-0.448 0-0.8694 0.112-1.264 0.336-0.384 0.21333-0.6987 0.528-0.944 0.944-0.2347 0.40533-0.352 0.89599-0.352 1.47199s0.1173 1.072 0.352 1.488c0.2453 0.4053 0.5653 0.72 0.96 0.944 0.3946 0.2133 0.8106 0.32 1.248 0.32zm5.8412 1.328V6.84061h1.632v1.12h0.096c0.2347-0.39467 0.5814-0.72 1.04-0.976 0.4694-0.26667 0.9814-0.4 1.536-0.4 1.0027 0 1.7547 0.29867 2.256 0.896 0.5014 0.58667 0.752 1.376 0.752 2.368v5.15199h-1.712v-4.928c0-0.66132-0.1653-1.14132-0.496-1.43999-0.3306-0.30933-0.7626-0.464-1.296-0.464-0.416 0-0.7786 0.11733-1.088 0.352-0.3093 0.224-0.5546 0.52267-0.736 0.896-0.1706 0.37333-0.256 0.77329-0.256 1.19999v4.384h-1.728zm11.9132 0.256c-0.5867 0-1.1094-0.1173-1.568-0.352-0.448-0.2347-0.8054-0.5547-1.072-0.96-0.256-0.416-0.384-0.8907-0.384-1.424 0-0.5867 0.1493-1.0827 0.448-1.488 0.3093-0.4053 0.72-0.7147 1.232-0.928 0.512-0.21332 1.0773-0.31999 1.696-0.31999 0.3413 0 0.656 0.02667 0.944 0.08 0.2986 0.04267 0.5546 0.096 0.768 0.15999 0.224 0.064 0.4 0.1333 0.528 0.208V9.80061c0-0.53333-0.192-0.96-0.576-1.28-0.384-0.32-0.88-0.48-1.488-0.48-0.416 0-0.8107 0.096-1.184 0.288-0.3734 0.18133-0.672 0.432-0.896 0.752l-1.184-0.912c0.2346-0.33067 0.5173-0.61333 0.848-0.848 0.3413-0.23467 0.72-0.416 1.136-0.544 0.4266-0.128 0.8693-0.192 1.328-0.192 1.184 0 2.096 0.29333 2.736 0.88 0.64 0.576 0.96 1.38667 0.96 2.432v5.10399h-1.68v-1.008h-0.096c-0.1387 0.2133-0.3307 0.416-0.576 0.608-0.2347 0.192-0.5174 0.3467-0.848 0.464-0.32 0.128-0.6774 0.192-1.072 0.192zm0.304-1.408c0.448 0 0.8426-0.1067 1.184-0.32 0.352-0.2133 0.624-0.4907 0.816-0.832 0.192-0.352 0.288-0.7307 0.288-1.136-0.2347-0.1387-0.5227-0.2507-0.864-0.336-0.3307-0.096-0.6827-0.144-1.056-0.144-0.704 0-1.2054 0.1387-1.504 0.416-0.2987 0.2773-0.448 0.624-0.448 1.04 0 0.384 0.144 0.6987 0.432 0.944 0.288 0.2453 0.672 0.368 1.152 0.368zm5.3041-7.00799h1.424v-2.304h1.728v2.304h2v1.504h-2v3.91999c0 0.4053 0.08 0.7147 0.24 0.928 0.1706 0.2133 0.4533 0.32 0.848 0.32 0.192 0 0.3626-0.0267 0.512-0.08 0.1493-0.064 0.2986-0.1387 0.448-0.224v1.68c-0.1814 0.0747-0.3734 0.1333-0.576 0.176-0.2027 0.0427-0.4427 0.064-0.72 0.064-0.7574 0-1.36-0.2187-1.808-0.656-0.448-0.448-0.672-1.0613-0.672-1.84V8.34461h-1.424v-1.504zm10.3755 8.41599c-0.8 0-1.5147-0.1867-2.144-0.56-0.6294-0.3733-1.1254-0.8853-1.488-1.536-0.352-0.6507-0.528-1.392-0.528-2.224 0-0.7787 0.1706-1.49866 0.512-2.15999 0.3413-0.66133 0.816-1.18933 1.424-1.584 0.6186-0.40533 1.328-0.608 2.128-0.608 0.8426 0 1.5573 0.18133 2.144 0.544 0.5973 0.36267 1.0506 0.85867 1.36 1.488 0.3093 0.62933 0.464 1.33867 0.464 2.12799 0 0.1173-0.0054 0.224-0.016 0.32 0 0.096-0.0054 0.1707-0.016 0.224h-6.304c0.0426 0.448 0.1546 0.8373 0.336 1.168 0.2346 0.416 0.544 0.7307 0.928 0.944 0.384 0.2133 0.8 0.32 1.248 0.32 0.544 0 0.9973-0.1227 1.36-0.368 0.3733-0.256 0.6666-0.5707 0.88-0.944l1.424 0.688c-0.352 0.64-0.832 1.1627-1.44 1.568-0.608 0.3947-1.3654 0.592-2.272 0.592zm-2.368-5.26399h4.528c-0.0107-0.20267-0.064-0.416-0.16-0.64-0.096-0.23467-0.2347-0.448-0.416-0.64-0.1814-0.192-0.4107-0.34667-0.688-0.464-0.2774-0.128-0.6027-0.192-0.976-0.192-0.4694 0-0.8854 0.12267-1.248 0.368-0.3627 0.23467-0.6454 0.56533-0.848 0.992-0.0854 0.18133-0.1494 0.37333-0.192 0.576zm13.5895 5.00799l-2.608-8.15999h1.872l1.68 5.87199h0.064l1.84-5.87199h1.776l1.84 5.87199h0.064l1.68-5.87199h1.84l-2.624 8.15999h-1.808l-1.888-5.90399h-0.064l-1.872 5.90399h-1.792zm11.441 0V6.84061h1.728v8.15999h-1.728zm0.864-9.35999c-0.32 0-0.5974-0.112-0.832-0.336-0.224-0.23467-0.336-0.512-0.336-0.832 0-0.33067 0.112-0.60267 0.336-0.816 0.2346-0.224 0.512-0.336 0.832-0.336 0.3306 0 0.608 0.112 0.832 0.336 0.224 0.21333 0.336 0.48533 0.336 0.816 0 0.32-0.112 0.59733-0.336 0.832-0.224 0.224-0.5014 0.336-0.832 0.336zm2.5198 1.2h1.424v-2.304h1.728v2.304h2v1.504h-2v3.91999c0 0.4053 0.08 0.7147 0.24 0.928 0.1707 0.2133 0.4534 0.32 0.848 0.32 0.192 0 0.3627-0.0267 0.512-0.08 0.1494-0.064 0.2987-0.1387 0.448-0.224v1.68c-0.1813 0.0747-0.3733 0.1333-0.576 0.176-0.2026 0.0427-0.4426 0.064-0.72 0.064-0.7573 0-1.36-0.2187-1.808-0.656-0.448-0.448-0.672-1.0613-0.672-1.84V8.34461h-1.424v-1.504zm7.0382 8.15999V3.54461h1.728v3.136l-0.096 1.28h0.096c0.224-0.39467 0.5653-0.72 1.024-0.976 0.4693-0.26667 0.9866-0.4 1.552-0.4 0.6826 0 1.248 0.13867 1.696 0.416 0.4586 0.27733 0.8 0.66133 1.024 1.152 0.224 0.48 0.336 1.04533 0.336 1.696v5.15199h-1.712v-4.928c0-0.43732-0.0854-0.79466-0.256-1.07199-0.16-0.27733-0.3734-0.48533-0.64-0.624-0.2667-0.13867-0.5654-0.208-0.896-0.208-0.416 0-0.784 0.11733-1.104 0.352-0.32 0.23467-0.5707 0.544-0.752 0.928-0.1814 0.37333-0.272 0.77329-0.272 1.19999v4.352h-1.728z" android:fillColor="#ffffff"/>
3
- <group>
4
- <group>
5
- <path android:pathData="M120.356 3.42339v4.73836h2.922c0.696 0 1.272-0.23394 1.727-0.70182 0.468-0.4668 0.702-1.02349 0.702-1.6679 0-0.63142-0.234-1.18162-0.702-1.64949-0.455-0.4798-1.031-0.72024-1.727-0.72024h-2.922v0.00109zm0 6.40627v5.49654h-1.745V1.75549h4.629c1.177 0 2.175 0.39207 2.998 1.17512 0.835 0.78304 1.253 1.73721 1.253 2.86142 0 1.15021-0.418 2.11088-1.253 2.88093-0.81 0.77113-1.809 1.15562-2.998 1.15562h-2.884v0.00108zM129.255 12.4831c0 0.4548 0.193 0.8339 0.579 1.1372 0.386 0.3032 0.838 0.4549 1.356 0.4549 0.734 0 1.388-0.272 1.963-0.8145 0.576-0.5437 0.864-1.1816 0.864-1.9138-0.545-0.4299-1.304-0.6444-2.277-0.6444-0.709 0-1.3 0.1711-1.774 0.5123-0.474 0.3411-0.711 0.7625-0.711 1.2683m2.258-6.74744c1.29 0 2.308 0.34441 3.056 1.03323 0.745 0.68882 1.118 1.63324 1.118 2.83327v5.72394h-1.669v-1.2888h-0.076c-0.721 1.0612-1.683 1.5921-2.884 1.5921-1.025 0-1.882-0.3033-2.571-0.9098-0.69-0.6065-1.034-1.3647-1.034-2.2744 0-0.9607 0.363-1.7244 1.09-2.2929 0.728-0.56855 1.698-0.8534 2.913-0.8534 1.036 0 1.89 0.18954 2.561 0.56861V9.46894c0-0.60651-0.241-1.12096-0.721-1.54443-0.482-0.42348-1.044-0.63467-1.689-0.63467-0.974 0-1.745 0.41048-2.314 1.23251l-1.538-0.96716c0.848-1.21302 2.1-1.81953 3.758-1.81953M145.269 6.03894l-5.826 13.38116h-1.802l2.163-4.6821-3.833-8.69906h1.898l2.77 6.67166h0.038l2.694-6.67166h1.898z" android:fillColor="#ffffff" android:fillType="evenOdd"/>
6
- </group>
7
- <group>
8
- <path android:pathData="M113.303 8.64473c0-0.5491-0.047-1.07872-0.135-1.58559h-7.362v3.00336h4.217c-0.181 0.9789-0.729 1.8119-1.559 2.3697v1.9506h2.516c1.474-1.3582 2.323-3.3651 2.323-5.73807" android:fillColor="#4285f4" android:fillType="evenOdd"/>
9
- <path android:pathData="M105.806 16.2651c2.107 0 3.881-0.691 5.174-1.8823l-2.516-1.9506c-0.701 0.4711-1.603 0.7462-2.658 0.7462-2.036 0-3.764-1.3711-4.382-3.21881h-2.5924v2.00911c1.2844 2.5473 3.9254 4.2964 6.9744 4.2964" android:fillColor="#34a853" android:fillType="evenOdd"/>
10
- <path android:pathData="M101.424 9.9596c-0.158-0.47113-0.245-0.97367-0.245-1.49245s0.087-1.02132 0.245-1.49245V4.96564h-2.5924C98.3003 6.01837 98 7.20756 98 8.46715c0 1.25959 0.3003 2.44885 0.8316 3.50155l2.5924-2.0091z" android:fillColor="#fabb05" android:fillType="evenOdd"/>
11
- <path android:pathData="M105.806 3.75583c1.151 0 2.182 0.39532 2.995 1.1697v0.00108l2.228-2.22567c-1.353-1.25851-3.117-2.031812-5.223-2.031812-3.049 0-5.69 1.749132-6.9744 4.296472l2.5924 2.00907c0.618-1.84769 2.346-3.21884 4.382-3.21884" android:fillColor="#e94235" android:fillType="evenOdd"/>
12
- </group>
13
- </group>
14
- </vector>
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <selector xmlns:android="http://schemas.android.com/apk/res/android" >
3
- <item
4
- android:drawable="@drawable/googlepay_button_background_image" />
5
- </selector>
@@ -1,48 +0,0 @@
1
- <vector xmlns:android="http://schemas.android.com/apk/res/android"
2
- android:width="41dp"
3
- android:height="17dp"
4
- android:viewportWidth="41.0"
5
- android:viewportHeight="17.0">
6
- <path
7
- android:pathData="M19.526,2.635L19.526,6.718L22.044,6.718C22.644,6.718 23.14,6.516 23.532,6.113C23.935,5.711 24.137,5.231 24.137,4.676C24.137,4.132 23.935,3.658 23.532,3.254C23.14,2.841 22.644,2.634 22.044,2.634L19.526,2.634L19.526,2.635ZM19.526,8.155L19.526,12.891L18.022,12.891L18.022,1.198L22.011,1.198C23.025,1.198 23.885,1.535 24.594,2.21C25.314,2.885 25.674,3.707 25.674,4.676C25.674,5.667 25.314,6.495 24.594,7.158C23.897,7.823 23.035,8.154 22.011,8.154L19.526,8.154L19.526,8.155Z"
8
- android:strokeColor="#00000000"
9
- android:fillType="evenOdd"
10
- android:fillColor="#FFFFFF"
11
- android:strokeWidth="1"/>
12
- <path
13
- android:pathData="M27.194,10.442C27.194,10.834 27.36,11.16 27.693,11.422C28.025,11.683 28.415,11.813 28.861,11.813C29.494,11.813 30.057,11.579 30.553,11.112C31.05,10.643 31.297,10.093 31.297,9.463C30.828,9.092 30.174,8.907 29.335,8.907C28.724,8.907 28.215,9.055 27.807,9.349C27.398,9.643 27.194,10.006 27.194,10.442M29.14,4.627C30.252,4.627 31.129,4.924 31.773,5.518C32.415,6.111 32.737,6.925 32.737,7.959L32.737,12.891L31.298,12.891L31.298,11.781L31.233,11.781C30.611,12.695 29.783,13.153 28.747,13.153C27.865,13.153 27.126,12.891 26.532,12.369C25.938,11.846 25.641,11.193 25.641,10.409C25.641,9.581 25.954,8.923 26.581,8.433C27.208,7.943 28.044,7.698 29.09,7.698C29.983,7.698 30.72,7.861 31.297,8.188L31.297,7.844C31.297,7.322 31.09,6.878 30.676,6.513C30.261,6.149 29.777,5.967 29.221,5.967C28.381,5.967 27.717,6.32 27.226,7.029L25.902,6.195C26.632,5.15 27.711,4.627 29.14,4.627"
14
- android:strokeColor="#00000000"
15
- android:fillType="evenOdd"
16
- android:fillColor="#FFFFFF"
17
- android:strokeWidth="1"/>
18
- <path
19
- android:pathData="M40.993,4.889l-5.02,11.531l-1.553,0l1.864,-4.035l-3.303,-7.496l1.635,0l2.387,5.749l0.033,0l2.322,-5.749z"
20
- android:strokeColor="#00000000"
21
- android:fillType="evenOdd"
22
- android:fillColor="#FFFFFF"
23
- android:strokeWidth="1"/>
24
- <path
25
- android:pathData="M13.448,7.134C13.448,6.661 13.408,6.205 13.332,5.768L6.988,5.768L6.988,8.356L10.622,8.356C10.466,9.199 9.994,9.917 9.278,10.398L9.278,12.079L11.447,12.079C12.716,10.908 13.448,9.179 13.448,7.134"
26
- android:strokeColor="#00000000"
27
- android:fillType="evenOdd"
28
- android:fillColor="#4285F4"
29
- android:strokeWidth="1"/>
30
- <path
31
- android:pathData="M6.988,13.701C8.804,13.701 10.332,13.105 11.447,12.079L9.278,10.398C8.675,10.804 7.897,11.041 6.988,11.041C5.234,11.041 3.744,9.859 3.212,8.267L0.978,8.267L0.978,9.998C2.085,12.193 4.36,13.701 6.988,13.701"
32
- android:strokeColor="#00000000"
33
- android:fillType="evenOdd"
34
- android:fillColor="#34A853"
35
- android:strokeWidth="1"/>
36
- <path
37
- android:pathData="M3.212,8.267C3.076,7.861 3.001,7.428 3.001,6.981C3.001,6.534 3.076,6.101 3.212,5.695L3.212,3.964L0.978,3.964C0.52,4.871 0.261,5.896 0.261,6.981C0.261,8.066 0.52,9.091 0.978,9.998L3.212,8.267Z"
38
- android:strokeColor="#00000000"
39
- android:fillType="evenOdd"
40
- android:fillColor="#FABB05"
41
- android:strokeWidth="1"/>
42
- <path
43
- android:pathData="M6.988,2.921C7.98,2.921 8.868,3.262 9.569,3.929L9.569,3.93L11.489,2.012C10.323,0.928 8.803,0.261 6.988,0.261C4.36,0.261 2.085,1.769 0.978,3.964L3.212,5.695C3.744,4.103 5.234,2.921 6.988,2.921"
44
- android:strokeColor="#00000000"
45
- android:fillType="evenOdd"
46
- android:fillColor="#E94235"
47
- android:strokeWidth="1"/>
48
- </vector>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3
- <item>
4
- <shape>
5
- <size android:width="1094dp" android:height="742dp"/>
6
- <solid android:color="#FFFFFF"/>
7
- <stroke android:color="#3C4043" android:width="2dp"/>
8
- <corners android:radius="1094dp"/>
9
- </shape>
10
- </item>
11
- </layer-list>
12
-
@@ -1,27 +0,0 @@
1
- <vector xmlns:android="http://schemas.android.com/apk/res/android"
2
- android:width="1094dp"
3
- android:height="742dp"
4
- android:viewportWidth="1094"
5
- android:viewportHeight="742">
6
- <path
7
- android:pathData="M529.3,384.2v60.5h-19.2V295.3H561c12.9,0 23.9,4.3 32.9,12.9c9.2,8.6 13.8,19.1 13.8,31.5c0,12.7 -4.6,23.2 -13.8,31.7c-8.9,8.5 -19.9,12.7 -32.9,12.7h-31.7V384.2zM529.3,313.7v52.1h32.1c7.6,0 14,-2.6 19,-7.7c5.1,-5.1 7.7,-11.3 7.7,-18.3c0,-6.9 -2.6,-13 -7.7,-18.1c-5,-5.3 -11.3,-7.9 -19,-7.9h-32.1V313.7z"
8
- android:fillColor="#3C4043"/>
9
- <path
10
- android:pathData="M657.9,339.1c14.2,0 25.4,3.8 33.6,11.4c8.2,7.6 12.3,18 12.3,31.2v63h-18.3v-14.2h-0.8c-7.9,11.7 -18.5,17.5 -31.7,17.5c-11.3,0 -20.7,-3.3 -28.3,-10s-11.4,-15 -11.4,-25c0,-10.6 4,-19 12,-25.2c8,-6.3 18.7,-9.4 32,-9.4c11.4,0 20.8,2.1 28.1,6.3v-4.4c0,-6.7 -2.6,-12.3 -7.9,-17c-5.3,-4.7 -11.5,-7 -18.6,-7c-10.7,0 -19.2,4.5 -25.4,13.6l-16.9,-10.6C625.9,345.8 639.7,339.1 657.9,339.1zM633.1,413.3c0,5 2.1,9.2 6.4,12.5c4.2,3.3 9.2,5 14.9,5c8.1,0 15.3,-3 21.6,-9s9.5,-13 9.5,-21.1c-6,-4.7 -14.3,-7.1 -25,-7.1c-7.8,0 -14.3,1.9 -19.5,5.6C635.7,403.1 633.1,407.8 633.1,413.3z"
11
- android:fillColor="#3C4043"/>
12
- <path
13
- android:pathData="M808.2,342.4l-64,147.2h-19.8l23.8,-51.5L706,342.4h20.9l30.4,73.4h0.4l29.6,-73.4H808.2z"
14
- android:fillColor="#3C4043"/>
15
- <path
16
- android:pathData="M452.9,372c0,-6.3 -0.6,-12.3 -1.6,-18h-80.5v33L417.2,387c-1.9,11 -7.9,20.3 -17.2,26.6v21.4h27.6C443.7,420.1 452.9,398 452.9,372z"
17
- android:fillColor="#4285F4"/>
18
- <path
19
- android:pathData="M400,413.6c-7.7,5.2 -17.6,8.2 -29.1,8.2c-22.4,0 -41.3,-15.1 -48.1,-35.4h-28.5v22.1c14.1,28 43.1,47.2 76.6,47.2c23.1,0 42.6,-7.6 56.7,-20.7L400,413.6z"
20
- android:fillColor="#34A853"/>
21
- <path
22
- android:pathData="M320.1,370c0,-5.7 0.9,-11.2 2.7,-16.4v-22.1h-28.5c-5.8,11.6 -9.1,24.6 -9.1,38.5s3.3,26.9 9.1,38.5l28.5,-22.1C321,381.3 320.1,375.8 320.1,370z"
23
- android:fillColor="#FABB05"/>
24
- <path
25
- android:pathData="M370.9,318.3c12.6,0 23.9,4.3 32.9,12.9l24.5,-24.4c-14.9,-13.8 -34.2,-22.3 -57.3,-22.3c-33.5,0 -62.5,19.2 -76.6,47.2l28.5,22.1C329.6,333.4 348.5,318.3 370.9,318.3z"
26
- android:fillColor="#E94235"/>
27
- </vector>