Stripe Payments For WooCommerce by Checkout Plugins - Version 1.0.0

Version Description

TUESDAY, 23RD NOVEMBER 2021 = * Initial release

Download this release

Release Info

Developer brainstormworg
Plugin Icon 128x128 Stripe Payments For WooCommerce by Checkout Plugins
Version 1.0.0
Comparing to
See all releases

Version 1.0.0

Files changed (176) hide show
  1. admin/admin-controller.php +1184 -0
  2. admin/assets/css/admin.css +128 -0
  3. admin/assets/images/stripe-logo.svg +1 -0
  4. admin/assets/images/stripe-s-logo.svg +1 -0
  5. admin/assets/js/admin.js +196 -0
  6. assets/css/stripe-elements.css +30 -0
  7. assets/js/stripe-elements.js +377 -0
  8. autoloader.php +155 -0
  9. checkout-plugins-stripe-woo.php +25 -0
  10. gateway/abstract-payment-gateway.php +48 -0
  11. gateway/stripe/card-payments.php +1058 -0
  12. gateway/stripe/frontend-scripts.php +77 -0
  13. gateway/stripe/stripe-api.php +173 -0
  14. gateway/stripe/webhook.php +281 -0
  15. inc/helper.php +184 -0
  16. inc/logger.php +168 -0
  17. inc/traits/get-instance.php +34 -0
  18. inc/traits/subscription-helper.php +127 -0
  19. inc/traits/subscriptions.php +877 -0
  20. lib/stripe-php/.coveralls.github-actions.yml +3 -0
  21. lib/stripe-php/.php_cs.dist +45 -0
  22. lib/stripe-php/CHANGELOG.md +1482 -0
  23. lib/stripe-php/CODE_OF_CONDUCT.md +77 -0
  24. lib/stripe-php/LICENSE +21 -0
  25. lib/stripe-php/Makefile +36 -0
  26. lib/stripe-php/VERSION +1 -0
  27. lib/stripe-php/build.php +25 -0
  28. lib/stripe-php/data/ca-certificates.crt +3476 -0
  29. lib/stripe-php/init.php +252 -0
  30. lib/stripe-php/lib/Account.php +433 -0
  31. lib/stripe-php/lib/AccountLink.php +26 -0
  32. lib/stripe-php/lib/AlipayAccount.php +75 -0
  33. lib/stripe-php/lib/ApiOperations/All.php +37 -0
  34. lib/stripe-php/lib/ApiOperations/Create.php +31 -0
  35. lib/stripe-php/lib/ApiOperations/Delete.php +30 -0
  36. lib/stripe-php/lib/ApiOperations/NestedResource.php +135 -0
  37. lib/stripe-php/lib/ApiOperations/Request.php +102 -0
  38. lib/stripe-php/lib/ApiOperations/Retrieve.php +30 -0
  39. lib/stripe-php/lib/ApiOperations/Update.php +52 -0
  40. lib/stripe-php/lib/ApiRequestor.php +621 -0
  41. lib/stripe-php/lib/ApiResource.php +120 -0
  42. lib/stripe-php/lib/ApiResponse.php +45 -0
  43. lib/stripe-php/lib/ApplePayDomain.php +31 -0
  44. lib/stripe-php/lib/ApplicationFee.php +90 -0
  45. lib/stripe-php/lib/ApplicationFeeRefund.php +66 -0
  46. lib/stripe-php/lib/Balance.php +45 -0
  47. lib/stripe-php/lib/BalanceTransaction.php +71 -0
  48. lib/stripe-php/lib/BankAccount.php +133 -0
  49. lib/stripe-php/lib/BaseStripeClient.php +288 -0
  50. lib/stripe-php/lib/BaseStripeClientInterface.php +44 -0
  51. lib/stripe-php/lib/BillingPortal/Configuration.php +31 -0
  52. lib/stripe-php/lib/BillingPortal/Session.php +43 -0
  53. lib/stripe-php/lib/BitcoinReceiver.php +71 -0
  54. lib/stripe-php/lib/BitcoinTransaction.php +19 -0
  55. lib/stripe-php/lib/Capability.php +88 -0
  56. lib/stripe-php/lib/Card.php +142 -0
  57. lib/stripe-php/lib/Charge.php +146 -0
  58. lib/stripe-php/lib/Checkout/Session.php +103 -0
  59. lib/stripe-php/lib/Collection.php +281 -0
  60. lib/stripe-php/lib/CountrySpec.php +30 -0
  61. lib/stripe-php/lib/Coupon.php +41 -0
  62. lib/stripe-php/lib/CreditNote.php +111 -0
  63. lib/stripe-php/lib/CreditNoteLineItem.php +26 -0
  64. lib/stripe-php/lib/Customer.php +296 -0
  65. lib/stripe-php/lib/CustomerBalanceTransaction.php +103 -0
  66. lib/stripe-php/lib/Discount.php +23 -0
  67. lib/stripe-php/lib/Dispute.php +82 -0
  68. lib/stripe-php/lib/EphemeralKey.php +43 -0
  69. lib/stripe-php/lib/ErrorObject.php +162 -0
  70. lib/stripe-php/lib/Event.php +239 -0
  71. lib/stripe-php/lib/Exception/ApiConnectionException.php +12 -0
  72. lib/stripe-php/lib/Exception/ApiErrorException.php +219 -0
  73. lib/stripe-php/lib/Exception/AuthenticationException.php +11 -0
  74. lib/stripe-php/lib/Exception/BadMethodCallException.php +7 -0
  75. lib/stripe-php/lib/Exception/CardException.php +84 -0
  76. lib/stripe-php/lib/Exception/ExceptionInterface.php +22 -0
  77. lib/stripe-php/lib/Exception/IdempotencyException.php +11 -0
  78. lib/stripe-php/lib/Exception/InvalidArgumentException.php +7 -0
  79. lib/stripe-php/lib/Exception/InvalidRequestException.php +60 -0
  80. lib/stripe-php/lib/Exception/OAuth/ExceptionInterface.php +10 -0
  81. lib/stripe-php/lib/Exception/OAuth/InvalidClientException.php +12 -0
  82. lib/stripe-php/lib/Exception/OAuth/InvalidGrantException.php +13 -0
  83. lib/stripe-php/lib/Exception/OAuth/InvalidRequestException.php +11 -0
  84. lib/stripe-php/lib/Exception/OAuth/InvalidScopeException.php +10 -0
  85. lib/stripe-php/lib/Exception/OAuth/OAuthErrorException.php +19 -0
  86. lib/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php +12 -0
  87. lib/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php +11 -0
  88. lib/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php +11 -0
  89. lib/stripe-php/lib/Exception/PermissionException.php +11 -0
  90. lib/stripe-php/lib/Exception/RateLimitException.php +12 -0
  91. lib/stripe-php/lib/Exception/SignatureVerificationException.php +74 -0
  92. lib/stripe-php/lib/Exception/UnexpectedValueException.php +7 -0
  93. lib/stripe-php/lib/Exception/UnknownApiErrorException.php +12 -0
  94. lib/stripe-php/lib/ExchangeRate.php +30 -0
  95. lib/stripe-php/lib/File.php +87 -0
  96. lib/stripe-php/lib/FileLink.php +30 -0
  97. lib/stripe-php/lib/HttpClient/ClientInterface.php +22 -0
  98. lib/stripe-php/lib/HttpClient/CurlClient.php +734 -0
  99. lib/stripe-php/lib/HttpClient/StreamingClientInterface.php +23 -0
  100. lib/stripe-php/lib/Identity/VerificationReport.php +45 -0
  101. lib/stripe-php/lib/Identity/VerificationSession.php +88 -0
  102. lib/stripe-php/lib/Invoice.php +264 -0
  103. lib/stripe-php/lib/InvoiceItem.php +49 -0
  104. lib/stripe-php/lib/InvoiceLineItem.php +33 -0
  105. lib/stripe-php/lib/Issuing/Authorization.php +81 -0
  106. lib/stripe-php/lib/Issuing/Card.php +59 -0
  107. lib/stripe-php/lib/Issuing/CardDetails.php +19 -0
  108. lib/stripe-php/lib/Issuing/Cardholder.php +39 -0
  109. lib/stripe-php/lib/Issuing/Dispute.php +53 -0
  110. lib/stripe-php/lib/Issuing/Transaction.php +44 -0
  111. lib/stripe-php/lib/LineItem.php +26 -0
  112. lib/stripe-php/lib/LoginLink.php +15 -0
  113. lib/stripe-php/lib/Mandate.php +27 -0
  114. lib/stripe-php/lib/OAuth.php +101 -0
  115. lib/stripe-php/lib/OAuthErrorObject.php +31 -0
  116. lib/stripe-php/lib/Order.php +81 -0
  117. lib/stripe-php/lib/OrderItem.php +19 -0
  118. lib/stripe-php/lib/OrderReturn.php +32 -0
  119. lib/stripe-php/lib/PaymentIntent.php +125 -0
  120. lib/stripe-php/lib/PaymentMethod.php +91 -0
  121. lib/stripe-php/lib/Payout.php +108 -0
  122. lib/stripe-php/lib/Person.php +122 -0
  123. lib/stripe-php/lib/Plan.php +57 -0
  124. lib/stripe-php/lib/Price.php +67 -0
  125. lib/stripe-php/lib/Product.php +54 -0
  126. lib/stripe-php/lib/PromotionCode.php +33 -0
  127. lib/stripe-php/lib/Quote.php +171 -0
  128. lib/stripe-php/lib/Radar/EarlyFraudWarning.php +38 -0
  129. lib/stripe-php/lib/Radar/ValueList.php +35 -0
  130. lib/stripe-php/lib/Radar/ValueListItem.php +31 -0
  131. lib/stripe-php/lib/Recipient.php +44 -0
  132. lib/stripe-php/lib/RecipientTransfer.php +36 -0
  133. lib/stripe-php/lib/Refund.php +58 -0
  134. lib/stripe-php/lib/Reporting/ReportRun.php +37 -0
  135. lib/stripe-php/lib/Reporting/ReportType.php +35 -0
  136. lib/stripe-php/lib/RequestTelemetry.php +26 -0
  137. lib/stripe-php/lib/Review.php +66 -0
  138. lib/stripe-php/lib/SKU.php +44 -0
  139. lib/stripe-php/lib/Service/AbstractService.php +100 -0
  140. lib/stripe-php/lib/Service/AbstractServiceFactory.php +59 -0
  141. lib/stripe-php/lib/Service/AccountLinkService.php +25 -0
  142. lib/stripe-php/lib/Service/AccountService.php +381 -0
  143. lib/stripe-php/lib/Service/ApplePayDomainService.php +70 -0
  144. lib/stripe-php/lib/Service/ApplicationFeeService.php +125 -0
  145. lib/stripe-php/lib/Service/BalanceService.php +26 -0
  146. lib/stripe-php/lib/Service/BalanceTransactionService.php +47 -0
  147. lib/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php +27 -0
  148. lib/stripe-php/lib/Service/BillingPortal/ConfigurationService.php +73 -0
  149. lib/stripe-php/lib/Service/BillingPortal/SessionService.php +23 -0
  150. lib/stripe-php/lib/Service/ChargeService.php +101 -0
  151. lib/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php +25 -0
  152. lib/stripe-php/lib/Service/Checkout/SessionService.php +73 -0
  153. lib/stripe-php/lib/Service/CoreServiceFactory.php +131 -0
  154. lib/stripe-php/lib/Service/CountrySpecService.php +39 -0
  155. lib/stripe-php/lib/Service/CouponService.php +104 -0
  156. lib/stripe-php/lib/Service/CreditNoteService.php +156 -0
  157. lib/stripe-php/lib/Service/CustomerService.php +369 -0
  158. lib/stripe-php/lib/Service/DisputeService.php +83 -0
  159. lib/stripe-php/lib/Service/EphemeralKeyService.php +43 -0
  160. lib/stripe-php/lib/Service/EventService.php +44 -0
  161. lib/stripe-php/lib/Service/ExchangeRateService.php +41 -0
  162. lib/stripe-php/lib/Service/FileLinkService.php +70 -0
  163. lib/stripe-php/lib/Service/FileService.php +66 -0
  164. lib/stripe-php/lib/Service/Identity/IdentityServiceFactory.php +27 -0
  165. lib/stripe-php/lib/Service/Identity/VerificationReportService.php +39 -0
  166. lib/stripe-php/lib/Service/Identity/VerificationSessionService.php +146 -0
  167. lib/stripe-php/lib/Service/InvoiceItemService.php +93 -0
  168. lib/stripe-php/lib/Service/InvoiceService.php +272 -0
  169. lib/stripe-php/lib/Service/Issuing/AuthorizationService.php +97 -0
  170. lib/stripe-php/lib/Service/Issuing/CardService.php +73 -0
  171. lib/stripe-php/lib/Service/Issuing/CardholderService.php +74 -0
  172. lib/stripe-php/lib/Service/Issuing/DisputeService.php +99 -0
  173. lib/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php +33 -0
  174. lib/stripe-php/lib/Service/Issuing/TransactionService.php +59 -0
  175. lib/stripe-php/lib/Service/MandateService.php +24 -0
  176. lib/stripe-php/lib/Service/OAuthService.php +71 -0
admin/admin-controller.php ADDED
@@ -0,0 +1,1184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Stripe Gateway
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ * @since 0.0.1
7
+ */
8
+
9
+ namespace CPSW\Admin;
10
+
11
+ use CPSW\Gateway\Stripe\Stripe_Api;
12
+ use CPSW\Inc\Traits\Get_Instance;
13
+ use CPSW\Inc\Helper;
14
+ use CPSW\Gateway\Stripe\Webhook;
15
+ use Stripe\OAuth;
16
+ use WC_Admin_Settings;
17
+ use Exception;
18
+
19
+
20
+ /**
21
+ * Admin Controller - This class is used to update or delete stripe settings.
22
+ *
23
+ * @package checkout-plugins-stripe-woo
24
+ * @since 0.0.1
25
+ */
26
+ class Admin_Controller {
27
+
28
+ use Get_Instance;
29
+
30
+ /**
31
+ * Stripe settings fields configuration array
32
+ *
33
+ * @var $settings_keys array
34
+ */
35
+ private $settings_keys = [
36
+ 'cpsw_test_pub_key',
37
+ 'cpsw_test_secret_key',
38
+ 'cpsw_test_con_status',
39
+ 'cpsw_pub_key',
40
+ 'cpsw_secret_key',
41
+ 'cpsw_con_status',
42
+ 'cpsw_mode',
43
+ 'cpsw_live_webhook_secret',
44
+ 'cpsw_test_webhook_secret',
45
+ 'cpsw_debug_log',
46
+ 'cpsw_account_id',
47
+ 'cpsw_auto_connect',
48
+ ];
49
+
50
+ /**
51
+ * Navigation links for the payment method pages.
52
+ *
53
+ * @var $navigation array
54
+ */
55
+ public $navigation = [];
56
+
57
+ /**
58
+ * Stripe settings are stored in this array.
59
+ *
60
+ * @var $settings array
61
+ */
62
+ private $settings = [];
63
+
64
+ /**
65
+ * Constructor
66
+ *
67
+ * @since 0.0.1
68
+ */
69
+ public function __construct() {
70
+
71
+ $this->init();
72
+ foreach ( $this->settings_keys as $key ) {
73
+ $this->settings[ $key ] = get_option( $key );
74
+ }
75
+
76
+ $this->navigation = [
77
+ 'cpsw_api_settings' => __( 'Stripe API Settings', 'checkout-plugins-stripe-woo' ),
78
+ 'cpsw_stripe' => __( 'Credit Cards', 'checkout-plugins-stripe-woo' ),
79
+ ];
80
+
81
+ }
82
+
83
+ /**
84
+ * Init
85
+ *
86
+ * @since 0.0.1
87
+ */
88
+ public function init() {
89
+
90
+ add_filter( 'woocommerce_settings_tabs_array', [ $this, 'add_settings_tab' ], 50 );
91
+ add_action( 'woocommerce_settings_tabs_cpsw_api_settings', [ $this, 'settings_tab' ] );
92
+ add_action( 'woocommerce_update_options_cpsw_api_settings', [ $this, 'update_settings' ] );
93
+ add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
94
+
95
+ /* NEW METHODS */
96
+ add_action( 'admin_init', [ $this, 'redirect_if_manually_saved' ], 1 );
97
+ add_action( 'woocommerce_admin_field_cpsw_stripe_connect', [ $this, 'stripe_connect' ] );
98
+ add_action( 'woocommerce_admin_field_cpsw_account_id', [ $this, 'account_id' ] );
99
+ add_action( 'woocommerce_admin_field_cpsw_webhook_url', [ $this, 'webhook_url' ] );
100
+
101
+ add_action( 'woocommerce_init', [ $this, 'admin_options' ] );
102
+ add_action( 'woocommerce_init', [ $this, 'initialise_warnings' ] );
103
+
104
+ add_action( 'wp_ajax_cpsw_test_stripe_connection', [ $this, 'connection_test' ] );
105
+ add_action( 'wp_ajax_cpsw_disconnect_account', [ $this, 'disconnect_account' ] );
106
+
107
+ add_action( 'woocommerce_settings_save_cpsw_api_settings', [ $this, 'check_connection_on_updates' ] );
108
+ add_filter( 'cpsw_settings', [ $this, 'filter_settings_fields' ], 1 );
109
+ add_action( 'update_option_cpsw_mode', [ $this, 'update_mode' ], 10, 3 );
110
+
111
+ add_action( 'admin_head', [ $this, 'add_custom_css' ] );
112
+ add_action( 'woocommerce_sections_cpsw_api_settings', [ $this, 'add_breadcrumb' ] );
113
+ add_filter( 'admin_footer_text', [ $this, 'add_manual_connect_link' ] );
114
+
115
+ add_filter( 'woocommerce_get_sections_checkout', [ $this, 'add_settings_links' ] );
116
+ add_filter( 'woocommerce_get_sections_cpsw_api_settings', [ $this, 'add_settings_links' ] );
117
+ }
118
+
119
+ /**
120
+ * WooCommerce Init
121
+ *
122
+ * @since 0.0.1
123
+ */
124
+ public function initialise_warnings() {
125
+
126
+ // If keys are not set bail.
127
+ if ( ! $this->are_keys_set() ) {
128
+ add_action( 'admin_notices', [ $this, 'are_keys_set_check' ] );
129
+ }
130
+
131
+ // If no SSL bail.
132
+ if ( 'live' === get_option( 'cpsw_mode' ) && ! is_ssl() ) {
133
+ add_action( 'admin_notices', [ $this, 'ssl_not_connect' ] );
134
+ }
135
+
136
+ // IF stripe connection estabilished successfully .
137
+ if ( isset( $_GET['cpsw_call'] ) && ! empty( $_GET['cpsw_call'] ) && 'success' === $_GET['cpsw_call'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
138
+ add_action( 'admin_notices', [ $this, 'connect_success_notice' ] );
139
+ }
140
+
141
+ // IF stripe connection not estabilished successfully.
142
+ if ( isset( $_GET['cpsw_call'] ) && ! empty( $_GET['cpsw_call'] ) && 'failed' === $_GET['cpsw_call'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
143
+ add_action( 'admin_notices', [ $this, 'connect_failed_notice' ] );
144
+ }
145
+
146
+ }
147
+
148
+ /**
149
+ * Enqueue Scripts
150
+ *
151
+ * @since 0.0.1
152
+ */
153
+ public function enqueue_scripts() {
154
+
155
+ if ( isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] && isset( $_GET['tab'] ) && ( 'cpsw_api_settings' === $_GET['tab'] || isset( $_GET['section'] ) && 'cpsw_stripe' === $_GET['section'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
156
+
157
+ wp_register_style( 'cpsw-admin-style', plugins_url( 'assets/css/admin.css', __FILE__ ), [], CPSW_VERSION, 'all' );
158
+ wp_enqueue_style( 'cpsw-admin-style' );
159
+
160
+ wp_register_script( 'cpsw-admin-js', plugins_url( 'assets/js/admin.js', __FILE__ ), [ 'jquery' ], CPSW_VERSION, true );
161
+ wp_enqueue_script( 'cpsw-admin-js' );
162
+
163
+ wp_localize_script(
164
+ 'cpsw-admin-js',
165
+ 'cpsw_ajax_object',
166
+ [
167
+ 'site_url' => get_site_url() . '/wp-admin/admin.php?page=wc-settings',
168
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
169
+ 'cpsw_mode' => get_option( 'cpsw_mode' ),
170
+ 'admin_nonce' => wp_create_nonce( 'cpsw_admin_nonce' ),
171
+ 'dashboard_url' => admin_url( 'admin.php?page=wc-settings&tab=cpsw_api_settings' ),
172
+ 'generic_error' => __( 'Something went wrong! Please reload the page and try again.', 'checkout-plugins-stripe-woo' ),
173
+ 'test_btn_label' => __( 'Connect to Stripe', 'checkout-plugins-stripe-woo' ),
174
+ 'stripe_key_notice' => __( 'Please enter all keys to connect to stripe.', 'checkout-plugins-stripe-woo' ),
175
+ 'stripe_key_error' => __( 'You must enter your API keys or connect the plugin before performing a connection test. Mode:', 'checkout-plugins-stripe-woo' ),
176
+ 'stripe_key_unavailable' => __( 'Keys Unavailable.', 'checkout-plugins-stripe-woo' ),
177
+ 'stripe_disconnect' => __( 'Your Stripe account has been disconnected.', 'checkout-plugins-stripe-woo' ),
178
+ 'stripe_connect_other_acc' => __( 'You can connect other Stripe account now.', 'checkout-plugins-stripe-woo' ),
179
+ 'is_connected' => $this->is_stripe_connected(),
180
+ 'is_manually_connected' => isset( $_GET['connect'] ) ? sanitize_text_field( $_GET['connect'] ) : '', //phpcs:ignore WordPress.Security.NonceVerification.Recommended
181
+ ]
182
+ );
183
+ }
184
+ }
185
+
186
+ /**
187
+ * Keys are not set.
188
+ */
189
+ public function are_keys_set_check() {
190
+ if ( ! isset( $_GET['cpsw_connect_nonce'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
191
+ if ( isset( $_GET['tab'] ) && 'checkout' === $_GET['tab'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
192
+ /* translators: %1$1s HTML Markup */
193
+ echo wp_kses_post( sprintf( '<div class="notice notice-error"><p>' . __( 'You Stripe Publishable and Secret Keys are not set correctly. You can connect to Stripe and correct them from <a href="%1$1s">here.</a>', 'checkout-plugins-stripe-woo' ) . '</p></div>', admin_url( 'admin.php?page=wc-settings&tab=cpsw_api_settings' ) ) );
194
+ } elseif ( isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] && 'cpsw_api_settings' === $_GET['tab'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
195
+ $mode = '';
196
+ if ( 'live' === $this->settings['cpsw_mode'] && ( empty( $this->settings['cpsw_pub_key'] ) || empty( $this->settings['cpsw_secret_key'] ) ) ) {
197
+ $mode = 'live';
198
+ } elseif ( 'test' === $this->settings['cpsw_mode'] && ( empty( $this->settings['cpsw_test_pub_key'] ) || empty( $this->settings['cpsw_test_secret_key'] ) ) ) {
199
+ $mode = 'test';
200
+ }
201
+
202
+ if ( ! empty( $mode ) ) {
203
+ $stripe_connect_link = '<a href=' . $this->get_stripe_connect_url() . '>' . __( 'Stripe Connect', 'checkout-plugins-stripe-woo' ) . '</a>';
204
+
205
+ if ( isset( $_GET['connect'] ) && 'manually' === $_GET['connect'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
206
+ $manual_api_link = '<a href="' . admin_url() . 'admin.php?page=wc-settings&tab=cpsw_api_settings" class="cpsw_connect_hide_btn">' . __( 'Hide API keys', 'checkout-plugins-stripe-woo' ) . '</a>';
207
+ } else {
208
+ $manual_api_link = '<a href="' . admin_url() . 'admin.php?page=wc-settings&tab=cpsw_api_settings&connect=manually" class="cpsw_connect_mn_btn">' . __( 'Manage API keys manually', 'checkout-plugins-stripe-woo' ) . '</a>';
209
+ }
210
+ /* translators: %1$1s: mode, %2$2s, %3$3s: HTML Markup */
211
+ echo wp_kses_post( sprintf( '<div class="notice notice-error"><p>' . __( 'Stripe Keys for %1$1s mode are not set correctly. Reconnect via %2$2s or %3$3s', 'checkout-plugins-stripe-woo' ) . '</p></div>', $mode, $stripe_connect_link, $manual_api_link ) );
212
+ }
213
+ }
214
+ }
215
+ }
216
+
217
+ /**
218
+ * Check for SSL and show warning.
219
+ */
220
+ public function ssl_not_connect() {
221
+ echo wp_kses_post( '<div class="notice notice-error"><p>' . __( 'No SSL was detected, Stripe live mode requires SSL.', 'checkout-plugins-stripe-woo' ) . '</p></div>' );
222
+ }
223
+
224
+ /**
225
+ * Connection success notice.
226
+ */
227
+ public function connect_success_notice() {
228
+ echo wp_kses_post( '<div class="notice notice-success is-dismissible"><p>' . __( 'Your Stripe account has been connected to your WooCommerce store. You may now accept payments in live and test mode.', 'checkout-plugins-stripe-woo' ) . '</p></div>' );
229
+ }
230
+
231
+ /**
232
+ * Connection failed notice.
233
+ */
234
+ public function connect_failed_notice() {
235
+ echo wp_kses_post( '<div class="notice notice-error is-dismissible"><p>' . __( 'We were not able to connect your Stripe account. Please try again. ', 'checkout-plugins-stripe-woo' ) . '</p></div>' );
236
+ }
237
+
238
+ /**
239
+ * Insufficient permission notice.
240
+ *
241
+ * @return void
242
+ */
243
+ public function insufficient_permission() {
244
+ echo wp_kses_post( '<div class="notice notice-error is-dismissible"><p>' . __( 'Error: The current user doesn’t have sufficient permissions to perform this action. Please reload the page and try again.', 'checkout-plugins-stripe-woo' ) . '</p></div>' );
245
+ }
246
+
247
+ /**
248
+ * This method is used to update stripe options to the database.
249
+ *
250
+ * @param array $options settings array of the stripe.
251
+ */
252
+ public function update_options( $options ) {
253
+
254
+ if ( ! is_array( $options ) ) {
255
+ return false;
256
+ }
257
+
258
+ if ( ! current_user_can( 'manage_options' ) ) {
259
+ return false;
260
+ }
261
+
262
+ foreach ( $options as $key => $value ) {
263
+ update_option( $key, $value );
264
+ }
265
+ }
266
+
267
+ /**
268
+ * This method is used to stripe connect button.
269
+ *
270
+ * @param string $value Field name in string.
271
+ */
272
+ public function stripe_connect( $value ) {
273
+
274
+ if ( true === $this->is_stripe_connected() ) {
275
+ return;
276
+ }
277
+
278
+ $label = __( 'Connect with Stripe', 'checkout-plugins-stripe-woo' );
279
+ $label_status = __( 'We make it easy to connect Stripe to your site. Click the Connect button to go through our connect flow.', 'checkout-plugins-stripe-woo' );
280
+ $sec_var = '';
281
+ $manual_link = true;
282
+
283
+ ?>
284
+ <tr valign="top">
285
+ <th scope="row">
286
+ <label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?></label>
287
+ </th>
288
+ <td class="form-wc form-wc-<?php echo esc_attr( $value['class'] ); ?>">
289
+ <fieldset>
290
+ <a class="cpsw_connect_btn" href="<?php echo esc_url( $this->get_stripe_connect_url() . $sec_var ); ?>">
291
+ <span><?php echo esc_html( $label ); ?></span>
292
+ </a>
293
+ <div class="wc-connect-stripe-help">
294
+ <?php
295
+ /* translators: %1$1s, %2$2s: HTML Markup */
296
+ echo wp_kses_post( sprintf( __( 'Have questions about connecting with Stripe? Read %1$s document. %2$s', 'checkout-plugins-stripe-woo' ), '<a href="https://checkoutplugins.com/docs/stripe-api-settings/" target="_blank">', '</a>' ) );
297
+ ?>
298
+ </div>
299
+ <?php
300
+
301
+ if ( isset( $_GET['connect'] ) && 'manually' === $_GET['connect'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
302
+ ?>
303
+ <div class="notice inline notice-warning cpsw_inline_notice" style="margin: 15px 0 -10px">
304
+ <p><?php esc_html_e( 'Although you can add your API keys manually, we recommend using Stripe Connect. Stripe Connect prevents issues that can arise when copying and pasting account details from Stripe into Stripe Gateway for WooCommerce settings.', 'checkout-plugins-stripe-woo' ); ?></p>
305
+ </div>
306
+ <?php } ?>
307
+ </fieldset>
308
+ </td>
309
+ </tr>
310
+ <?php
311
+ }
312
+
313
+ /**
314
+ * This method is used to display stripe account ID block.
315
+ *
316
+ * @param string $value Field name in string.
317
+ */
318
+ public function account_id( $value ) {
319
+ if ( false === $this->is_stripe_connected() ) {
320
+ return;
321
+ }
322
+
323
+ $option_value = get_option( 'cpsw_account_id' );
324
+ ?>
325
+ <tr valign="top">
326
+ <th scope="row">
327
+ <label><?php echo esc_html( $value['title'] ); ?></label>
328
+ </th>
329
+ <td class="form-wc form-wc-<?php echo esc_attr( $value['class'] ); ?>">
330
+ <fieldset>
331
+ <div class="account_status"><p>
332
+ <?php
333
+ if ( false === $this->get_account_info( $option_value ) ) {
334
+ /* translators: %1$1s %2$2s %3$3s: HTML Markup */
335
+ esc_html_e( 'Your manually managed API keys are valid.', 'checkout-plugins-stripe-woo' );
336
+ echo '<span style="color:green;font-weight:bold;font-size:20px;margin-left:5px;">&#10004;</span>';
337
+
338
+ echo '<div class="notice inline notice-success">';
339
+ echo '<p>' . esc_html__( 'It is highly recommended to Connect with Stripe for easier setup and improved security.', 'checkout-plugins-stripe-woo' ) . '</p>';
340
+
341
+ echo wp_kses_post( '<a class="cpsw_connect_btn" href="' . $this->get_stripe_connect_url() . '"><span>' . __( 'Connect with Stripe', 'checkout-plugins-stripe-woo' ) . '</span></a>' );
342
+
343
+ echo '</div>';
344
+
345
+ } else {
346
+ ?>
347
+ <?php
348
+ /* translators: $1s Acoount name, $2s html markup, $3s account id, $4s html markup */
349
+ echo wp_kses_post( sprintf( __( 'Account (%1$1s) %2$2s %3$3s %4$4s is connected.', 'checkout-plugins-stripe-woo' ), $this->get_account_info( $option_value ), '<strong>', $option_value, '</strong>' ) );
350
+ echo '<span style="color:green;font-weight:bold;font-size:20px;margin-left:5px;">&#10004;</span>';
351
+ ?>
352
+ </p>
353
+ <?php
354
+ }
355
+ ?>
356
+ <p>
357
+ <?php
358
+ echo '<a href="javascript:void();" id="cpsw_disconnect_acc">';
359
+ esc_html_e( 'Disconnect &amp; connect other account?', 'checkout-plugins-stripe-woo' );
360
+ echo '</a> | <a href="javascript:void();" id="cpsw_test_connection">';
361
+ esc_html_e( 'Test Connection', 'checkout-plugins-stripe-woo' );
362
+ echo '</a>';
363
+
364
+ if ( 'no' === $this->settings['cpsw_auto_connect'] ) {
365
+ echo ' | <a href="javascript:void(0)" class="cpsw_connect_mn_btn cpsw_show">';
366
+ esc_html_e( 'Manage API keys manually', 'checkout-plugins-stripe-woo' );
367
+ echo '</a>';
368
+ echo '<a href="javascript:void(0)" class="cpsw_connect_hide_btn cpsw_hide">';
369
+ esc_html_e( 'Hide API keys', 'checkout-plugins-stripe-woo' );
370
+ echo '</a>';
371
+ }
372
+ ?>
373
+ </p>
374
+ <p>
375
+ <div class="notice inline notice-warning cpsw_inline_notice">
376
+ <p><?php esc_html_e( 'Although you can add your API keys manually, we recommend using Stripe Connect: an easier and more secure way of connecting your Stripe account to your website. Stripe Connect prevents issues that can arise when copying and pasting account details from Stripe into your Stripe Gateway for WooCommerce payment gateway settings. With Stripe Connect you\'ll be ready to go with just a few clicks.', 'checkout-plugins-stripe-woo' ); ?></p>
377
+ </div>
378
+ </p>
379
+ </div>
380
+ </fieldset>
381
+ </td>
382
+ </tr>
383
+ <?php
384
+ }
385
+
386
+
387
+ /**
388
+ * This method is used to display block for Stripe webhook url.
389
+ *
390
+ * @param string $value Name of the field.
391
+ */
392
+ public function webhook_url( $value ) {
393
+ $data = WC_Admin_Settings::get_field_description( $value );
394
+ $description = $data['description'];
395
+ $tooltip_html = $data['tooltip_html'];
396
+
397
+ $option_value = (array) WC_Admin_Settings::get_option( $value['id'] );
398
+
399
+ if ( $tooltip_html && 'checkbox' === $value['type'] ) {
400
+ $tooltip_html = '<p class="description">' . $tooltip_html . '</p>';
401
+ } elseif ( $tooltip_html ) {
402
+ $tooltip_html = wc_help_tip( $tooltip_html );
403
+ }
404
+ ?>
405
+ <tr valign="top">
406
+ <th scope="row">
407
+ <label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?> <?php echo wp_kses_post( $tooltip_html ); ?></label>
408
+ </th>
409
+ <td class="form-wc form-wc-<?php echo esc_attr( $value['class'] ); ?>">
410
+ <fieldset>
411
+ <strong><?php echo esc_url( get_home_url() . '/wp-json/cpsw/v1/webhook' ); ?></strong>
412
+ </fieldset>
413
+ <fieldset>
414
+ <?php echo wp_kses_post( $value['desc'] ); ?>
415
+ </fieldset>
416
+ </td>
417
+ </tr>
418
+ <?php
419
+ }
420
+
421
+ /**
422
+ * This method is used to display Stripe Account key information on the settings page.
423
+ *
424
+ * @param string $value Name of the field.
425
+ */
426
+ public function account_keys( $value ) {
427
+
428
+ if ( empty( Helper::get_setting( 'cpsw_pub_key' ) ) && empty( Helper::get_setting( 'cpsw_test_pub_key' ) ) ) {
429
+ return;
430
+ }
431
+
432
+ $data = WC_Admin_Settings::get_field_description( $value );
433
+ $description = $data['description'];
434
+ $tooltip_html = $data['tooltip_html'];
435
+
436
+ $option_value = (array) WC_Admin_Settings::get_option( $value['id'] );
437
+
438
+ if ( $tooltip_html && 'checkbox' === $value['type'] ) {
439
+ $tooltip_html = '<p class="description">' . $tooltip_html . '</p>';
440
+ } elseif ( $tooltip_html ) {
441
+ $tooltip_html = wc_help_tip( $tooltip_html );
442
+ }
443
+ ?>
444
+ <tr valign="top">
445
+ <th scope="row">
446
+ <label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?> <?php echo wp_kses_post( $tooltip_html ); ?></label>
447
+ </th>
448
+ <td class="form-wc form-wc-<?php echo esc_attr( $value['class'] ); ?>">
449
+ <fieldset>
450
+ <a href="javascript:void(0)" id="cpsw_account_keys"><span><?php esc_html_e( 'Clear all Stripe account keys', 'checkout-plugins-stripe-woo' ); ?></span></a>
451
+ </fieldset>
452
+ <fieldset>
453
+ <?php echo wp_kses_post( $value['desc'] ); ?>
454
+ </fieldset>
455
+ </td>
456
+ </tr>
457
+ <?php
458
+ }
459
+
460
+ /**
461
+ * This method is used to display block for Stripe Connect Button.
462
+ *
463
+ * @param string $value Name of the field.
464
+ */
465
+ public function connect_button( $value ) {
466
+
467
+ $data = WC_Admin_Settings::get_field_description( $value );
468
+
469
+ $description = $data['description'];
470
+ $tooltip_html = $data['tooltip_html'];
471
+ $manual_link = false;
472
+ $option_value = (array) WC_Admin_Settings::get_option( $value['id'] );
473
+
474
+ if ( $tooltip_html && 'checkbox' === $value['type'] ) {
475
+ $tooltip_html = '<p class="description">' . $tooltip_html . '</p>';
476
+ } elseif ( $tooltip_html ) {
477
+ $tooltip_html = wc_help_tip( $tooltip_html );
478
+ }
479
+
480
+ if ( 'live' === Helper::get_payment_mode() && ! empty( Helper::get_setting( 'cpsw_pub_key' ) ) ) {
481
+ $label = __( 'Re-Connect to Stripe', 'checkout-plugins-stripe-woo' );
482
+ $sec_var = '&rec=yes';
483
+ $label_status = '<span class="dashicons dashicons-yes stipe-connect-active"></span> ' . __( 'Your Stripe account has been connected. You can now accept Live and Test payments. You can Re-Connect if you want to recycle your API keys for security.', 'checkout-plugins-stripe-woo' );
484
+ } elseif ( 'test' === Helper::get_payment_mode() && ! empty( Helper::get_setting( 'cpsw_test_pub_key' ) ) ) {
485
+ $label = __( 'Re-Connect to Stripe', 'checkout-plugins-stripe-woo' );
486
+ $sec_var = '&rec=yes';
487
+ $label_status = '<span class="dashicons dashicons-yes stipe-connect-active"></span> ' . __( 'Your Stripe account has been connected. You can now accept Live and Test payments. You can Re-Connect if you want to recycle your API keys for security.', 'checkout-plugins-stripe-woo' );
488
+ } else {
489
+ $label = __( 'Connect to Stripe', 'checkout-plugins-stripe-woo' );
490
+ $label_status = __( 'We make it easy to connect Stripe to your site. Click the Connect button to go through our connect flow.', 'checkout-plugins-stripe-woo' );
491
+ $sec_var = '';
492
+ $manual_link = true;
493
+ }
494
+ ?>
495
+ <tr valign="top">
496
+ <th scope="row">
497
+ <label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?> <?php echo wp_kses_post( $tooltip_html ); ?></label>
498
+ </th>
499
+ <td class="form-wc form-wc-<?php echo esc_attr( $value['class'] ); ?>">
500
+ <fieldset>
501
+ <a class="cpsw_connect_btn" href="<?php echo esc_url( $this->get_stripe_connect_url() . $sec_var ); ?>">
502
+ <span><?php echo esc_html( $label ); ?></span>
503
+ </a>
504
+ </fieldset>
505
+ <fieldset>
506
+ <?php echo wp_kses_post( $label_status ); ?>
507
+ <?php if ( true === $manual_link ) { ?>
508
+ <a class="cpsw_connect_mn_btn" href="<?php echo esc_url( admin_url() ); ?>admin.php?page=wc-settings&tab=cpsw_api_settings&connect=manually"><?php esc_html_e( 'Connect Manually', 'checkout-plugins-stripe-woo' ); ?></a>
509
+ <?php } ?>
510
+ </fieldset>
511
+ </td>
512
+ </tr>
513
+ <?php
514
+ }
515
+
516
+ /**
517
+ * This method is used to initialize the Stripe settings tab inside the WooCommerce settings.
518
+ *
519
+ * @param array $settings_tabs Adding settings tab to existing WooCommerce tabs array.
520
+ * @return mixed
521
+ */
522
+ public function add_settings_tab( $settings_tabs ) {
523
+ $settings_tabs['cpsw_api_settings'] = __( 'Stripe', 'checkout-plugins-stripe-woo' );
524
+ return $settings_tabs;
525
+ }
526
+
527
+ /**
528
+ * Uses the WooCommerce admin fields API to output settings via the @see woocommerce_admin_fields() function.
529
+ *
530
+ * @uses woocommerce_admin_fields()
531
+ * @uses $this->get_settings()
532
+ */
533
+ public function settings_tab() {
534
+ woocommerce_admin_fields( $this->get_settings() );
535
+ }
536
+
537
+
538
+ /**
539
+ * Uses the WooCommerce options API to save settings via the @see woocommerce_update_options() function.
540
+ */
541
+ public function update_settings() {
542
+ woocommerce_update_options( $this->get_settings() );
543
+ }
544
+
545
+ /**
546
+ * Generates Stripe Autorization URL for onboarding process
547
+ *
548
+ * @return String
549
+ */
550
+ public function get_stripe_connect_url() {
551
+ $client_id = 'ca_KOXfLe7jv1m4L0iC4KNEMc5fT8AXWWuL';
552
+
553
+ return OAuth::authorizeUrl(
554
+ [
555
+ 'response_type' => 'code',
556
+ 'client_id' => $client_id,
557
+ 'stripe_landing' => 'login',
558
+ 'always_prompt' => 'true',
559
+ 'scope' => 'read_write',
560
+ 'state' => base64_encode( //phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
561
+ wp_json_encode(
562
+ [
563
+ 'redirect' => add_query_arg( 'cpsw_connect_nonce', wp_create_nonce( 'stripe-connect' ), admin_url( 'admin.php?page=wc-settings&tab=cpsw_api_settings' ) ),
564
+ ]
565
+ )
566
+ ),
567
+ ]
568
+ );
569
+ }
570
+
571
+
572
+ /**
573
+ * This method is used to initialize all stripe configuration fields.
574
+ *
575
+ * @return mixed
576
+ */
577
+ public function get_settings() {
578
+ $settings = [
579
+ 'section_title' => [
580
+ 'name' => __( 'Stripe API Settings', 'checkout-plugins-stripe-woo' ),
581
+ 'type' => 'title',
582
+ 'id' => 'cpsw_title',
583
+ ],
584
+ 'connection_status' => [
585
+ 'name' => __( 'Stripe Connect', 'checkout-plugins-stripe-woo' ),
586
+ 'type' => 'cpsw_stripe_connect',
587
+ 'value' => '--',
588
+ 'class' => 'wc_cpsw_connect_btn',
589
+ 'id' => 'cpsw_stripe_connect',
590
+ ],
591
+ 'account_id' => [
592
+ 'name' => __( 'Connection Status', 'checkout-plugins-stripe-woo' ),
593
+ 'type' => 'cpsw_account_id',
594
+ 'value' => '--',
595
+ 'class' => 'account_id',
596
+ 'desc_tip' => __( 'This is your Stripe Connect ID and serves as a unique identifier.', 'checkout-plugins-stripe-woo' ),
597
+ 'desc' => __( 'This is your Stripe Connect ID and serves as a unique identifier.', 'checkout-plugins-stripe-woo' ),
598
+ 'id' => 'cpsw_account_id',
599
+ ],
600
+ 'account_keys' => [
601
+ 'name' => __( 'Stripe Account Keys', 'checkout-plugins-stripe-woo' ),
602
+ 'type' => 'cpsw_account_keys',
603
+ 'class' => 'wc_stripe_acc_keys',
604
+ 'desc' => __( 'This will disable any connection to Stripe.', 'checkout-plugins-stripe-woo' ),
605
+ 'id' => 'cpsw_account_keys',
606
+ ],
607
+ 'connect_button' => [
608
+ 'name' => __( 'Connect Stripe Account', 'checkout-plugins-stripe-woo' ),
609
+ 'type' => 'cpsw_connect_btn',
610
+ 'class' => 'wc_cpsw_connect_btn',
611
+ 'desc' => __( 'We make it easy to connect Stripe to your site. Click the Connect button to go through our connect flow.', 'checkout-plugins-stripe-woo' ),
612
+ 'id' => 'cpsw_connect_btn',
613
+ ],
614
+ 'live_pub_key' => [
615
+ 'name' => __( 'Live Publishable Key', 'checkout-plugins-stripe-woo' ),
616
+ 'type' => 'text',
617
+ 'desc_tip' => __( 'Your publishable key is used to initialize Stripe assets.', 'checkout-plugins-stripe-woo' ),
618
+ 'id' => 'cpsw_pub_key',
619
+ ],
620
+ 'live_secret_key' => [
621
+ 'name' => __( 'Live Secret Key', 'checkout-plugins-stripe-woo' ),
622
+ 'type' => 'text',
623
+ 'desc_tip' => __( 'Your secret key is used to authenticate Stripe requests.', 'checkout-plugins-stripe-woo' ),
624
+ 'id' => 'cpsw_secret_key',
625
+ ],
626
+ 'test_pub_key' => [
627
+ 'name' => __( 'Test Publishable Key', 'checkout-plugins-stripe-woo' ),
628
+ 'type' => 'text',
629
+ 'desc_tip' => __( 'Your test publishable key is used to initialize Stripe assets.', 'checkout-plugins-stripe-woo' ),
630
+ 'id' => 'cpsw_test_pub_key',
631
+ ],
632
+ 'test_secret_key' => [
633
+ 'name' => __( 'Test Secret Key', 'checkout-plugins-stripe-woo' ),
634
+ 'type' => 'text',
635
+ 'desc_tip' => __( 'Your test secret key is used to authenticate Stripe requests for testing purposes.', 'checkout-plugins-stripe-woo' ),
636
+ 'id' => 'cpsw_test_secret_key',
637
+ ],
638
+ 'test_mode' => [
639
+ 'name' => __( 'Mode', 'checkout-plugins-stripe-woo' ),
640
+ 'type' => 'select',
641
+ 'options' => [
642
+ 'test' => 'Test',
643
+ 'live' => 'Live',
644
+ ],
645
+ 'desc' => __( 'No live transactions are processed in test mode. To fully use test mode, you must have a sandbox (test) account for the payment gateway you are testing.', 'checkout-plugins-stripe-woo' ),
646
+ 'id' => 'cpsw_mode',
647
+ 'desc_tip' => true,
648
+ ],
649
+ 'webhook_url' => [
650
+ 'name' => __( 'Webhook URL', 'checkout-plugins-stripe-woo' ),
651
+ 'type' => 'cpsw_webhook_url',
652
+ 'class' => 'wc_cpsw_webhook_url',
653
+ /* translators: %1$1s - %2$2s HTML markup */
654
+ 'desc' => sprintf( __( 'Important: the webhook URL is called by Stripe when events occur in your account, like a source becomes chargeable. %1$1sWebhook Guide%2$2s', 'checkout-plugins-stripe-woo' ), '<a href="https://checkoutplugins.com/docs/stripe-card-payments/#webhook" target="_blank">', '</a>' ),
655
+ 'id' => 'cpsw_webhook_url',
656
+ ],
657
+ 'live_webhook_secret' => [
658
+ 'name' => __( 'Live Webhook Secret', 'checkout-plugins-stripe-woo' ),
659
+ 'type' => 'text',
660
+ /* translators: %1$1s Webhook Status */
661
+ 'desc' => sprintf( __( 'The webhook secret is used to authenticate webhooks sent from Stripe. It ensures nobody else can send you events pretending to be Stripe. %1$1s', 'checkout-plugins-stripe-woo' ), '</br>' . Webhook::get_webhook_interaction_message( 'live' ) ),
662
+ 'id' => 'cpsw_live_webhook_secret',
663
+ ],
664
+ 'test_webhook_secret' => [
665
+ 'name' => __( 'Test Webhook Secret', 'checkout-plugins-stripe-woo' ),
666
+ 'type' => 'text',
667
+ /* translators: %1$1s Webhook Status */
668
+ 'desc' => sprintf( __( 'The webhook secret is used to authenticate webhooks sent from Stripe. It ensures nobody else can send you events pretending to be Stripe. %1$1s', 'checkout-plugins-stripe-woo' ), '</br>' . Webhook::get_webhook_interaction_message( 'test' ) ),
669
+ 'id' => 'cpsw_test_webhook_secret',
670
+ ],
671
+ 'debug_log' => [
672
+ 'name' => __( 'Debug Log', 'checkout-plugins-stripe-woo' ),
673
+ 'type' => 'checkbox',
674
+ 'desc' => __( 'Log debug messages', 'checkout-plugins-stripe-woo' ),
675
+ 'description' => __( 'Your publishable key is used to initialize Stripe assets.', 'checkout-plugins-stripe-woo' ),
676
+ 'id' => 'cpsw_debug_log',
677
+ ],
678
+ 'section_end' => [
679
+ 'type' => 'sectionend',
680
+ 'id' => 'cpsw_api_settings_section_end',
681
+ ],
682
+ ];
683
+ $settings = apply_filters( 'cpsw_settings', $settings );
684
+
685
+ return $settings;
686
+ }
687
+
688
+
689
+ /**
690
+ * Checks for response after stripe onboarding process
691
+ *
692
+ * @return void
693
+ */
694
+ public function admin_options() {
695
+
696
+ if ( ! isset( $_GET['cpsw_connect_nonce'] ) || ! wp_verify_nonce( sanitize_text_field( $_GET['cpsw_connect_nonce'] ), 'stripe-connect' ) ) {
697
+ return;
698
+ }
699
+
700
+ if ( ! current_user_can( 'manage_options' ) ) {
701
+ add_action( 'admin_notices', [ $this, 'insufficient_permission' ] );
702
+ return;
703
+ }
704
+
705
+ // Check if user is being returned from Stripe Connect.
706
+ if ( isset( $_GET['error'] ) ) {
707
+ $error = json_decode( base64_decode( wc_clean( $_GET['error'] ) ) ); //phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode
708
+ if ( property_exists( $error, 'message' ) ) {
709
+ $message = $error->message;
710
+ } elseif ( property_exists( $error, 'raw' ) ) {
711
+ $message = $error->raw->message;
712
+ } else {
713
+ $message = __( 'Please try again.', 'checkout-plugins-stripe-woo' );
714
+ }
715
+
716
+ $this->settings['cpsw_con_status'] = 'failed';
717
+ $this->settings['cpsw_test_con_status'] = 'failed';
718
+
719
+ $this->update_options( $this->settings );
720
+
721
+ wp_safe_redirect( admin_url( '/admin.php?page=wc-settings&tab=cpsw_api_settings&cpsw_call=failed' ) );
722
+ } elseif ( isset( $_GET['response'] ) ) {
723
+ $response = json_decode( base64_decode( $_GET['response'] ) ); //phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode
724
+ if ( ! empty( $response->live->stripe_publishable_key ) || ! empty( $response->test->stripe_publishable_key ) ) {
725
+ $this->settings['cpsw_pub_key'] = $response->live->stripe_publishable_key;
726
+ $this->settings['cpsw_secret_key'] = $response->live->access_token;
727
+ $this->settings['cpsw_test_pub_key'] = $response->test->stripe_publishable_key;
728
+ $this->settings['cpsw_test_secret_key'] = $response->test->access_token;
729
+ $this->settings['cpsw_account_id'] = $response->live->stripe_user_id;
730
+ $this->settings['cpsw_mode'] = 'test';
731
+ $this->settings['cpsw_con_status'] = 'success';
732
+ $this->settings['cpsw_test_con_status'] = 'success';
733
+ wp_safe_redirect( admin_url( '/admin.php?page=wc-settings&tab=cpsw_api_settings&cpsw_call=success' ) );
734
+ } else {
735
+ $this->settings['cpsw_pub_key'] = '';
736
+ $this->settings['cpsw_secret_key'] = '';
737
+ $this->settings['cpsw_test_pub_key'] = '';
738
+ $this->settings['cpsw_test_secret_key'] = '';
739
+ $this->settings['cpsw_account_id'] = '';
740
+ $this->settings['cpsw_con_status'] = 'failed';
741
+ $this->settings['cpsw_test_con_status'] = 'failed';
742
+ wp_safe_redirect( admin_url( '/admin.php?page=wc-settings&tab=cpsw_api_settings&cpsw_call=failed' ) );
743
+
744
+ }
745
+
746
+ $this->settings['cpsw_auto_connect'] = 'yes';
747
+ $this->update_options( $this->settings );
748
+ }
749
+ }
750
+
751
+
752
+ /**
753
+ * Perform a connection test
754
+ *
755
+ * @return $mixed
756
+ */
757
+ public function connection_test() {
758
+
759
+ if ( ! isset( $_GET['_security'] ) || ! wp_verify_nonce( sanitize_text_field( $_GET['_security'] ), 'cpsw_admin_nonce' ) ) {
760
+ return wp_send_json_error( [ 'message' => __( 'Error: Sorry, the nonce security check didn’t pass. Please reload the page and try again.', 'checkout-plugins-stripe-woo' ) ] );
761
+ }
762
+
763
+ if ( ! current_user_can( 'manage_options' ) ) {
764
+ return wp_send_json_error( [ 'message' => __( 'Error: The current user doesn’t have sufficient permissions to perform this action. Please reload the page and try again.', 'checkout-plugins-stripe-woo' ) ] );
765
+ }
766
+
767
+ $results = [];
768
+ $keys = [];
769
+
770
+ if ( isset( $_GET['cpsw_test_sec_key'] ) && ! empty( trim( $_GET['cpsw_test_sec_key'] ) ) ) {
771
+ $keys['test'] = sanitize_text_field( trim( $_GET['cpsw_test_sec_key'] ) );
772
+ } else {
773
+ $results['test']['mode'] = __( 'Test Mode:', 'checkout-plugins-stripe-woo' );
774
+ $results['test']['status'] = 'invalid';
775
+ $results['test']['message'] = __( 'Please enter secret key to test.', 'checkout-plugins-stripe-woo' );
776
+ }
777
+ if ( isset( $_GET['cpsw_secret_key'] ) && ! empty( trim( $_GET['cpsw_secret_key'] ) ) ) {
778
+ $keys['live'] = sanitize_text_field( trim( $_GET['cpsw_secret_key'] ) );
779
+ } else {
780
+ $results['live']['mode'] = __( 'Live Mode:', 'checkout-plugins-stripe-woo' );
781
+ $results['live']['status'] = 'invalid';
782
+ $results['live']['message'] = __( 'Please enter secret key to live.', 'checkout-plugins-stripe-woo' );
783
+ }
784
+
785
+ if ( empty( $keys ) ) {
786
+ return wp_send_json_error( [ 'message' => __( 'Error: Empty String provided for keys', 'checkout-plugins-stripe-woo' ) ] );
787
+ }
788
+
789
+ foreach ( $keys as $mode => $key ) {
790
+ $stripe = new \Stripe\StripeClient(
791
+ $key
792
+ );
793
+
794
+ try {
795
+ $response = $stripe->customers->create(
796
+ [
797
+ /* translators: %1$1s mode */
798
+ 'description' => sprintf( __( 'My first %1s customer (created for API docs)', 'checkout-plugins-stripe-woo' ), $mode ),
799
+ ]
800
+ );
801
+ if ( ! is_wp_error( $response ) ) {
802
+ $results[ $mode ]['status'] = 'success';
803
+ $results[ $mode ]['message'] = __( 'Connected to Stripe successfully', 'checkout-plugins-stripe-woo' );
804
+ }
805
+ } catch ( \Stripe\Exception\CardException $e ) {
806
+ $results[ $mode ]['status'] = 'failed';
807
+ $results[ $mode ]['message'] = $e->getError()->message;
808
+ } catch ( \Stripe\Exception\RateLimitException $e ) {
809
+ // Too many requests made to the API too quickly.
810
+ $results[ $mode ]['status'] = 'failed';
811
+ $results[ $mode ]['message'] = $e->getError()->message;
812
+ } catch ( \Stripe\Exception\InvalidRequestException $e ) {
813
+ // Invalid parameters were supplied to Stripe's API.
814
+ $results[ $mode ]['status'] = 'failed';
815
+ $results[ $mode ]['message'] = $e->getError()->message;
816
+ } catch ( \Stripe\Exception\AuthenticationException $e ) {
817
+ // Authentication with Stripe's API failed.
818
+ // (maybe you changed API keys recently).
819
+ $results[ $mode ]['status'] = 'failed';
820
+ $results[ $mode ]['message'] = $e->getError()->message;
821
+ } catch ( \Stripe\Exception\ApiConnectionException $e ) {
822
+ // Network communication with Stripe failed.
823
+ $results[ $mode ]['status'] = 'failed';
824
+ $results[ $mode ]['message'] = $e->getError()->message;
825
+ } catch ( \Stripe\Exception\ApiErrorException $e ) {
826
+ $results[ $mode ]['status'] = 'failed';
827
+ $results[ $mode ]['message'] = $e->getError()->message;
828
+ // Display a very generic error to the user, and maybe send.
829
+ // yourself an email.
830
+ } catch ( Exception $e ) {
831
+ // Something else happened, completely unrelated to Stripe.
832
+ $results[ $mode ]['status'] = 'failed';
833
+ $results[ $mode ]['message'] = $e->getError()->message;
834
+ }
835
+
836
+ switch ( $mode ) {
837
+ case 'test':
838
+ $results[ $mode ]['mode'] = __( 'Test Mode:', 'checkout-plugins-stripe-woo' );
839
+ break;
840
+
841
+ case 'live':
842
+ $results[ $mode ]['mode'] = __( 'Live Mode:', 'checkout-plugins-stripe-woo' );
843
+ break;
844
+
845
+ default:
846
+ break;
847
+ }
848
+ }
849
+ update_option( 'cpsw_auto_connect', 'no' );
850
+ return wp_send_json_success( [ 'data' => $results ] );
851
+ }
852
+
853
+ /**
854
+ * Checks for response after stripe onboarding process
855
+ *
856
+ * @return $mixed
857
+ */
858
+ public function disconnect_account() {
859
+ if ( ! isset( $_GET['_security'] ) || ! wp_verify_nonce( sanitize_text_field( $_GET['_security'] ), 'cpsw_admin_nonce' ) ) {
860
+ return wp_send_json_error( [ 'message' => __( 'Error: Sorry, the nonce security check didn’t pass. Please reload the page and try again.', 'checkout-plugins-stripe-woo' ) ] );
861
+ }
862
+
863
+ if ( ! current_user_can( 'manage_options' ) ) {
864
+ return wp_send_json_error( [ 'message' => __( 'Error: The current user doesn’t have sufficient permissions to perform this action. Please reload the page and try again.', 'checkout-plugins-stripe-woo' ) ] );
865
+ }
866
+
867
+ foreach ( $this->settings_keys as $key ) {
868
+ update_option( $key, '' );
869
+ }
870
+ return wp_send_json_success( [ 'message' => __( 'Stripe keys are reset successfully.', 'checkout-plugins-stripe-woo' ) ] );
871
+ }
872
+
873
+ /**
874
+ * This method is used get account information from stripe.
875
+ *
876
+ * @param string $account_id Account ID of a stripe user.
877
+ */
878
+ public function get_account_info( $account_id = '' ) {
879
+
880
+ if ( empty( $account_id ) ) {
881
+ return false;
882
+ }
883
+
884
+ $stripe_api = Stripe_Api::get_instance();
885
+ $response = $stripe_api->accounts( 'retrieve', [ $account_id ] );
886
+ if ( $response['success'] ) {
887
+ $response = $response['data'];
888
+ return $response->settings->dashboard->display_name;
889
+ } else {
890
+ return $response['message'];
891
+ }
892
+ }
893
+
894
+ /**
895
+ * Apply filters on cpsw_settings var to filter settings fields.
896
+ *
897
+ * @param array $array cpsw_settings values array.
898
+ * @return $array array It returns cpsw_settings array.
899
+ */
900
+ public function filter_settings_fields( $array = [] ) {
901
+ if ( 'success' !== get_option( 'cpsw_con_status' ) && 'success' !== get_option( 'cpsw_test_con_status' ) ) {
902
+ unset( $array['test_mode'] );
903
+ unset( $array['webhook_url'] );
904
+ unset( $array['test_webhook_secret'] );
905
+ unset( $array['live_webhook_secret'] );
906
+ unset( $array['debug_log'] );
907
+ unset( $array['test_conn_button'] );
908
+
909
+ $webhook_options = [
910
+ 'cpsw_live_webhook_began_at',
911
+ 'cpsw_live_webhook_last_success_at',
912
+ 'cpsw_live_webhook_last_failure_at',
913
+ 'cpsw_live_webhook_last_error',
914
+ 'cpsw_test_webhook_began_at',
915
+ 'cpsw_test_webhook_last_success_at',
916
+ 'cpsw_test_webhook_last_failure_at',
917
+ 'cpsw_test_webhook_last_error',
918
+ ];
919
+
920
+ array_map( 'delete_option', $webhook_options );
921
+ }
922
+ return $array;
923
+ }
924
+
925
+ /**
926
+ * Checks for response after stripe onboarding process
927
+ *
928
+ * @return $mixed
929
+ */
930
+ public function are_keys_set() {
931
+ if ( ( 'live' === $this->settings['cpsw_mode']
932
+ && empty( $this->settings['cpsw_pub_key'] )
933
+ && empty(
934
+ $this->settings['cpsw_secret_key']
935
+ ) )
936
+ || ( 'test' === $this->settings['cpsw_mode']
937
+ && empty( $this->settings['cpsw_test_pub_key'] )
938
+ && empty( $this->settings['cpsw_test_secret_key'] )
939
+ )
940
+ || ( empty( $this->settings['cpsw_mode'] )
941
+ && empty( $this->settings['cpsw_secret_key'] )
942
+ && empty( $this->settings['cpsw_test_secret_key'] )
943
+ ) ) {
944
+ return false;
945
+ }
946
+ return true;
947
+ }
948
+
949
+ /**
950
+ * Checks if stripe is connected or not.
951
+ *
952
+ * @return $mixed
953
+ */
954
+ public function is_stripe_connected() {
955
+ if ( 'success' === get_option( 'cpsw_con_status' ) || 'success' === get_option( 'cpsw_test_con_status' ) ) {
956
+ return true;
957
+ }
958
+ return false;
959
+ }
960
+
961
+ /**
962
+ * Checks if stripe is connected or not.
963
+ *
964
+ * @return $mixed
965
+ */
966
+ public function check_connection_on_updates() {
967
+
968
+ if ( 'yes' === Helper::get_setting( 'cpsw_auto_connect' ) ) {
969
+ return;
970
+ }
971
+
972
+ $test_key_test = false;
973
+
974
+ if ( isset( $_POST['cpsw_test_secret_key'] ) && ! empty( $_POST['cpsw_test_secret_key'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing
975
+ $stripe = new \Stripe\StripeClient(
976
+ sanitize_text_field( $_POST['cpsw_test_secret_key'] ) //phpcs:ignore WordPress.Security.NonceVerification.Missing
977
+ );
978
+
979
+ try {
980
+ $response = $stripe->customers->create(
981
+ [
982
+ 'description' => __( 'My First Test Customer (created for API docs)', 'checkout-plugins-stripe-woo' ),
983
+ ]
984
+ );
985
+
986
+ if ( ! is_wp_error( $response ) ) {
987
+ $test_key_test = true;
988
+ }
989
+ } catch ( \Stripe\Exception\CardException $e ) {
990
+ $test_key_test = false;
991
+ } catch ( \Stripe\Exception\RateLimitException $e ) {
992
+ // Too many requests made to the API too quickly.
993
+ $test_key_test = false;
994
+ } catch ( \Stripe\Exception\InvalidRequestException $e ) {
995
+ // Invalid parameters were supplied to Stripe's API.
996
+ $test_key_test = false;
997
+ } catch ( \Stripe\Exception\AuthenticationException $e ) {
998
+ // Authentication with Stripe's API failed.
999
+ // (maybe you changed API keys recently).
1000
+ $test_key_test = false;
1001
+ } catch ( \Stripe\Exception\ApiConnectionException $e ) {
1002
+ // Network communication with Stripe failed.
1003
+ $test_key_test = false;
1004
+ } catch ( \Stripe\Exception\ApiErrorException $e ) {
1005
+ $test_key_test = false;
1006
+ // Display a very generic error to the user, and maybe send.
1007
+ // yourself an email.
1008
+ } catch ( Exception $e ) {
1009
+ // Something else happened, completely unrelated to Stripe.
1010
+ $test_key_test = false;
1011
+ }
1012
+ } else {
1013
+ $test_key_test = false;
1014
+ }
1015
+
1016
+ if ( true === $test_key_test ) {
1017
+ update_option( 'cpsw_test_con_status', 'success' );
1018
+ update_option( 'cpsw_mode', 'test' );
1019
+ }
1020
+
1021
+ $live_key_test = false;
1022
+
1023
+ if ( isset( $_POST['cpsw_secret_key'] ) && ! empty( $_POST['cpsw_secret_key'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing
1024
+ $stripe = new \Stripe\StripeClient(
1025
+ sanitize_text_field( $_POST['cpsw_secret_key'] ) //phpcs:ignore WordPress.Security.NonceVerification.Missing
1026
+ );
1027
+
1028
+ try {
1029
+ $response = $stripe->customers->create(
1030
+ [
1031
+ 'description' => __( 'My First Live Customer (created for API docs)', 'checkout-plugins-stripe-woo' ),
1032
+ ]
1033
+ );
1034
+ if ( ! is_wp_error( $response ) ) {
1035
+ $live_key_test = true;
1036
+ }
1037
+ } catch ( \Stripe\Exception\CardException $e ) {
1038
+ $live_key_test = false;
1039
+ } catch ( \Stripe\Exception\RateLimitException $e ) {
1040
+ // Too many requests made to the API too quickly.
1041
+ $live_key_test = false;
1042
+ } catch ( \Stripe\Exception\InvalidRequestException $e ) {
1043
+ // Invalid parameters were supplied to Stripe's API.
1044
+ $live_key_test = false;
1045
+ } catch ( \Stripe\Exception\AuthenticationException $e ) {
1046
+ // Authentication with Stripe's API failed.
1047
+ // (maybe you changed API keys recently).
1048
+ $live_key_test = false;
1049
+ } catch ( \Stripe\Exception\ApiConnectionException $e ) {
1050
+ // Network communication with Stripe failed.
1051
+ $live_key_test = false;
1052
+ } catch ( \Stripe\Exception\ApiErrorException $e ) {
1053
+ $live_key_test = false;
1054
+ // Display a very generic error to the user, and maybe send.
1055
+ // yourself an email.
1056
+ } catch ( Exception $e ) {
1057
+ // Something else happened, completely unrelated to Stripe.
1058
+ $live_key_test = false;
1059
+ }
1060
+ } else {
1061
+ $live_key_test = false;
1062
+ }
1063
+
1064
+ if ( true === $live_key_test ) {
1065
+ update_option( 'cpsw_con_status', 'success' );
1066
+ update_option( 'cpsw_mode', 'live' );
1067
+ }
1068
+
1069
+ }
1070
+
1071
+ /**
1072
+ * Update the stripe payment mode on submit.
1073
+ *
1074
+ * @param string $old_value Old value of the option.
1075
+ * @param strign $value New value of the option.
1076
+ * @return void
1077
+ */
1078
+ public function update_mode( $old_value, $value ) {
1079
+
1080
+ if ( 'yes' === get_option( 'cpsw_auto_connect' ) ) {
1081
+ return;
1082
+ }
1083
+
1084
+ if ( ! empty( get_option( 'cpsw_secret_key' ) ) && empty( get_option( 'cpsw_test_secret_key' ) ) ) {
1085
+ update_option( 'cpsw_mode', 'live' );
1086
+ } elseif ( ! empty( get_option( 'cpsw_test_secret_key' ) ) && empty( get_option( 'cpsw_secret_key' ) ) ) {
1087
+ update_option( 'cpsw_mode', 'test' );
1088
+ }
1089
+ }
1090
+
1091
+ /**
1092
+ * Adds custom css to hide navigation menu item.
1093
+ */
1094
+ public function add_custom_css() {
1095
+ ?>
1096
+ <style type="text/css">
1097
+ a[href='<?php echo esc_url( get_site_url() ); ?>/wp-admin/admin.php?page=wc-settings&tab=cpsw_api_settings'].nav-tab { display: none }
1098
+ </style>
1099
+ <?php
1100
+ }
1101
+
1102
+ /**
1103
+ * Adds custom breadcrumb on payment method's pages.
1104
+ *
1105
+ * @return void
1106
+ */
1107
+ public function add_breadcrumb() {
1108
+
1109
+ if ( ! empty( $this->navigation ) ) {
1110
+ ?>
1111
+ <ul class="subsubsub">
1112
+ <?php
1113
+ foreach ( $this->navigation as $key => $value ) {
1114
+ $current_class = '';
1115
+ $separator = '';
1116
+ if ( isset( $_GET['tab'] ) && 'cpsw_api_settings' === $_GET['tab'] && 'cpsw_api_settings' === $key ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
1117
+ $current_class = 'current';
1118
+ echo wp_kses_post( '<li> <a href="' . get_site_url() . '/wp-admin/admin.php?page=wc-settings&tab=cpsw_api_settings" class="' . $current_class . '">' . $value . '</a> | </li>' );
1119
+ } else {
1120
+ if ( end( $this->navigation ) !== $value ) {
1121
+ $separator = ' | ';
1122
+ }
1123
+ echo wp_kses_post( '<li> <a href="' . get_site_url() . '/wp-admin/admin.php?page=wc-settings&tab=checkout&section=' . $key . '" class="' . $current_class . '">' . $value . '</a> ' . $separator . ' </li>' );
1124
+ }
1125
+ }
1126
+ ?>
1127
+ </ul>
1128
+ <br class="clear" />
1129
+ <?php
1130
+ }
1131
+ }
1132
+
1133
+ /**
1134
+ * Adds settings link to the checkout section.
1135
+ *
1136
+ * @param array $settings_tab Settings tabs array.
1137
+ * @return array $settings_tab Settings tabs array returned.
1138
+ */
1139
+ public function add_settings_links( $settings_tab ) {
1140
+ if ( isset( $_GET['section'] ) && 'cpsw_stripe' === $_GET['section'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
1141
+ $settings_tab['cpsw_api_settings'] = __( 'Stripe API Settings', 'checkout-plugins-stripe-woo' );
1142
+ $settings_tab['cpsw_stripe'] = __( 'Credit Cards', 'checkout-plugins-stripe-woo' );
1143
+ }
1144
+ return apply_filters( 'cpsw_setting_tabs', $settings_tab );
1145
+ }
1146
+
1147
+ /**
1148
+ * Adds manual api keys links.
1149
+ *
1150
+ * @param string $links default copyright link with text.
1151
+ * @return string $links Return customized copyright text with link.
1152
+ */
1153
+ public function add_manual_connect_link( $links ) {
1154
+
1155
+ if ( ! isset( $_GET['page'] ) || ! isset( $_GET['tab'] ) || 'wc-settings' !== $_GET['page'] || 'cpsw_api_settings' !== $_GET['tab'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
1156
+ return $links;
1157
+ }
1158
+
1159
+ if ( 'yes' === $this->settings['cpsw_auto_connect'] || 'no' === $this->settings['cpsw_auto_connect'] ) {
1160
+ return $links;
1161
+ }
1162
+
1163
+ if ( ! isset( $_GET['connect'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
1164
+ return '<a href="' . admin_url() . 'admin.php?page=wc-settings&tab=cpsw_api_settings&connect=manually" class="cpsw_connect_mn_btn">' . __( 'Manage API keys manually', 'checkout-plugins-stripe-woo' ) . '</a>';
1165
+ }
1166
+
1167
+ if ( isset( $_GET['connect'] ) && 'manually' === $_GET['connect'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
1168
+ return '<a href="' . admin_url() . 'admin.php?page=wc-settings&tab=cpsw_api_settings" class="cpsw_connect_hide_btn">' . __( 'Hide API keys', 'checkout-plugins-stripe-woo' ) . '</a>';
1169
+ }
1170
+
1171
+ return $links;
1172
+ }
1173
+
1174
+ /**
1175
+ * Adds manual api keys links.
1176
+ */
1177
+ public function redirect_if_manually_saved() {
1178
+ if ( isset( $_GET['connect'] ) && 'manually' === $_GET['connect'] && ( ! empty( get_option( 'cpsw_secret_key' ) ) || ! empty( get_option( 'cpsw_test_secret_key' ) ) ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
1179
+ wp_safe_redirect( admin_url( 'admin.php?page=wc-settings&tab=cpsw_api_settings' ) );
1180
+ exit;
1181
+ }
1182
+ }
1183
+
1184
+ }
admin/assets/css/admin.css ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Admin Style
3
+ */
4
+
5
+ .form_overlay {
6
+ opacity: 0.5;
7
+ pointer-events: none;
8
+ }
9
+
10
+ .form-wc-wc_cpsw_connect_btn fieldset {
11
+ margin: 20px 0 20px 0;
12
+ }
13
+
14
+ .form-wc-wc_cpsw_connect_btn img {
15
+ margin: 5px 10px 0 10px;
16
+ width: 20px;
17
+ float: left;
18
+ }
19
+
20
+ .form-wc-wc_cpsw_connect_btn .cpsw_connect_btn,
21
+ .form-wc-account_id .cpsw_connect_btn {
22
+ background: #6772e5;
23
+ display: inline-block;
24
+ height: 38px;
25
+ text-decoration: none;
26
+ width: 240px;
27
+
28
+ border-radius: 4px;
29
+ -moz-border-radius: 4px;
30
+ -webkit-border-radius: 4px;
31
+
32
+ user-select: none;
33
+ -moz-user-select: none;
34
+ -webkit-user-select: none;
35
+ -ms-user-select: none;
36
+
37
+ -webkit-font-smoothing: antialiased;
38
+ }
39
+
40
+ .form-wc-account_id .cpsw_connect_btn {
41
+ margin: 10px;
42
+ }
43
+
44
+ .form-wc-wc_cpsw_connect_btn .cpsw_connect_btn:hover {
45
+ background: #3f4ddf;
46
+ }
47
+
48
+ .form-wc-wc_cpsw_connect_btn .cpsw_connect_btn span,
49
+ .form-wc-account_id .cpsw_connect_btn span {
50
+ color: #fff;
51
+ display: block;
52
+ font-family: sohne-var, "Helvetica Neue", Arial, sans-serif;
53
+ font-size: 15px;
54
+ font-weight: 400;
55
+ line-height: 14px;
56
+ padding: 11px 0 0 65px;
57
+ position: relative;
58
+ text-align: left;
59
+ }
60
+
61
+ .form-wc-wc_cpsw_connect_btn .cpsw_connect_btn span::before,
62
+ .form-wc-account_id .cpsw_connect_btn span::before {
63
+ background-repeat: no-repeat;
64
+ content: "";
65
+ height: 20px;
66
+ left: 16%;
67
+ position: absolute;
68
+ top: 30%;
69
+ width: 49.58px;
70
+ background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 23.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 468 222.5' style='enable-background:new 0 0 468 222.5;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M6.796 7.639c0-1.03.845-1.427 2.245-1.427 2.008 0 4.544.608 6.552 1.691V1.695C13.4.823 11.234.479 9.041.479 3.678.48.111 3.28.111 7.956c0 7.292 10.04 6.13 10.04 9.273 0 1.215-1.057 1.611-2.536 1.611-2.193 0-4.993-.898-7.213-2.113v6.288a18.315 18.315 0 007.213 1.506c5.495 0 9.273-2.722 9.273-7.45-.027-7.873-10.092-6.473-10.092-9.432z'/%3E%3Cpath class='st0' d='M6.796 7.639c0-1.03.845-1.427 2.245-1.427 2.008 0 4.544.608 6.552 1.691V1.695C13.4.823 11.234.479 9.041.479 3.678.48.111 3.28.111 7.956c0 7.292 10.04 6.13 10.04 9.273 0 1.215-1.057 1.611-2.536 1.611-2.193 0-4.993-.898-7.213-2.113v6.288a18.315 18.315 0 007.213 1.506c5.495 0 9.273-2.722 9.273-7.45-.027-7.873-10.092-6.473-10.092-9.432z'/%3E%3C/g%3E%3C/svg%3E"); /* stylelint-disable-line function-url-quotes */
71
+ background-size: 380px;
72
+ }
73
+
74
+ .wc-connect-stripe-help {
75
+ margin-top: 10px;
76
+ }
77
+
78
+ .form-wc-wc_cpsw_connect_btn .st_connect_mn_dv {
79
+ margin-top: 14px;
80
+ }
81
+
82
+ .form-wc-wc_cpsw_test_button fieldset {
83
+ margin: 20px 0 20px 0;
84
+ }
85
+
86
+ .form-wc-wc_cpsw_test_button a {
87
+ border: 1px solid rgb(103, 114, 229);
88
+ }
89
+
90
+ .form-wc-wc_cpsw_test_button a,
91
+ .form-wc-wc_cpsw_test_button a > span {
92
+ padding: 5px;
93
+ color: rgb(103, 114, 229);
94
+ font-weight: 500;
95
+ background: #fff;
96
+ border-radius: 5px;
97
+ text-decoration: none;
98
+ }
99
+
100
+ .stipe-connect-active {
101
+ color: #008000;
102
+ font-weight: 500;
103
+ }
104
+
105
+ .form-wc-wc_stripe_acc_keys fieldset {
106
+ margin-top: 10px !important;
107
+ }
108
+
109
+ .cpsw_connect_mn_btn,
110
+ .cpsw_connect_hide_btn {
111
+ text-decoration: udnerline;
112
+ color: inherit;
113
+ font-size: 12px;
114
+ }
115
+
116
+ .account_status .cpsw_connect_mn_btn,
117
+ .account_status .cpsw_connect_hide_btn {
118
+ color: #2271b1;
119
+ font-size: 14px;
120
+ }
121
+
122
+ #wpfooter {
123
+ display: block !important;
124
+ }
125
+
126
+ .form-wc-account_id .cpsw_connect_hide_btn {
127
+ display: none;
128
+ }
admin/assets/images/stripe-logo.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="64" height="64" fill="#6772e5"><path d="M111.328 15.602c0-4.97-2.415-8.9-7.013-8.9s-7.423 3.924-7.423 8.863c0 5.85 3.32 8.8 8.036 8.8 2.318 0 4.06-.528 5.377-1.26V19.22a10.246 10.246 0 0 1-4.764 1.075c-1.9 0-3.556-.67-3.774-2.943h9.497a39.64 39.64 0 0 0 .063-1.748zm-9.606-1.835c0-2.186 1.35-3.1 2.56-3.1s2.454.906 2.454 3.1zM89.4 6.712a5.434 5.434 0 0 0-3.801 1.509l-.254-1.208h-4.27v22.64l4.85-1.032v-5.488a5.434 5.434 0 0 0 3.444 1.265c3.472 0 6.64-2.792 6.64-8.957.003-5.66-3.206-8.73-6.614-8.73zM88.23 20.1a2.898 2.898 0 0 1-2.288-.906l-.03-7.2a2.928 2.928 0 0 1 2.315-.96c1.775 0 2.998 2 2.998 4.528.003 2.593-1.198 4.546-2.995 4.546zM79.25.57l-4.87 1.035v3.95l4.87-1.032z" fill-rule="evenodd"/><path d="M74.38 7.035h4.87V24.04h-4.87z"/><path d="M69.164 8.47l-.302-1.434h-4.196V24.04h4.848V12.5c1.147-1.5 3.082-1.208 3.698-1.017V7.038c-.646-.232-2.913-.658-4.048 1.43zm-9.73-5.646L54.698 3.83l-.02 15.562c0 2.87 2.158 4.993 5.038 4.993 1.585 0 2.756-.302 3.405-.643v-3.95c-.622.248-3.683 1.138-3.683-1.72v-6.9h3.683V7.035h-3.683zM46.3 11.97c0-.758.63-1.05 1.648-1.05a10.868 10.868 0 0 1 4.83 1.25V7.6a12.815 12.815 0 0 0-4.83-.888c-3.924 0-6.557 2.056-6.557 5.488 0 5.37 7.375 4.498 7.375 6.813 0 .906-.78 1.186-1.863 1.186-1.606 0-3.68-.664-5.307-1.55v4.63a13.461 13.461 0 0 0 5.307 1.117c4.033 0 6.813-1.992 6.813-5.485 0-5.796-7.417-4.76-7.417-6.943zM13.88 9.515c0-1.37 1.14-1.9 2.982-1.9A19.661 19.661 0 0 1 25.6 9.876v-8.27A23.184 23.184 0 0 0 16.862.001C9.762.001 5 3.72 5 9.93c0 9.716 13.342 8.138 13.342 12.326 0 1.638-1.4 2.146-3.37 2.146-2.905 0-6.657-1.202-9.6-2.802v8.378A24.353 24.353 0 0 0 14.973 32C22.27 32 27.3 28.395 27.3 22.077c0-10.486-13.42-8.613-13.42-12.56z" fill-rule="evenodd"/></svg>
admin/assets/images/stripe-s-logo.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg width="17" height="25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.796 7.639c0-1.03.845-1.427 2.245-1.427 2.008 0 4.544.608 6.552 1.691V1.695C13.4.823 11.234.479 9.041.479 3.678.48.111 3.28.111 7.956c0 7.292 10.04 6.13 10.04 9.273 0 1.215-1.057 1.611-2.536 1.611-2.193 0-4.993-.898-7.213-2.113v6.288a18.315 18.315 0 007.213 1.506c5.495 0 9.273-2.722 9.273-7.45-.027-7.873-10.092-6.473-10.092-9.432z" fill="#6772E5"/></svg>
admin/assets/js/admin.js ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ( function( $ ) {
2
+ if ( cpsw_ajax_object.is_manually_connected === 'manually' ) {
3
+ HideShowKeys( true );
4
+ $( '#cpsw_mode' ).closest( 'tr' ).hide();
5
+ $( '#cpsw_debug_log' ).closest( 'tr' ).hide();
6
+ } else {
7
+ HideShowKeys( false );
8
+ $( '.cpsw_inline_notice' ).hide();
9
+ }
10
+
11
+ $( 'a[href="' + cpsw_ajax_object.site_url + '&tab=checkout&section=cpsw_api_settings"]' ).attr( 'href', cpsw_ajax_object.site_url + '&tab=cpsw_api_settings' );
12
+
13
+ $( 'a[href="' + cpsw_ajax_object.site_url + '&tab=checkout&section="]' ).closest( 'li' ).remove();
14
+
15
+ if ( $( 'a[href="' + cpsw_ajax_object.site_url + '&tab=cpsw_api_settings"]' ).hasClass( 'nav-tab-active' ) ) {
16
+ $( 'a[href="' + cpsw_ajax_object.site_url + '&tab=checkout"]' ).addClass( 'nav-tab-active' );
17
+ }
18
+
19
+ if ( cpsw_ajax_object.cpsw_mode === 'live' ) {
20
+ $( '#cpsw_test_webhook_secret' ).closest( 'tr' ).hide();
21
+ }
22
+
23
+ if ( cpsw_ajax_object.cpsw_mode === 'test' ) {
24
+ $( '#cpsw_live_webhook_secret' ).closest( 'tr' ).hide();
25
+ }
26
+
27
+ if ( cpsw_ajax_object.is_connected === '' ) {
28
+ $( '.woocommerce-save-button' ).hide();
29
+ }
30
+
31
+ $( document ).on( 'click', '.cpsw_show', function() {
32
+ $( this ).hide();
33
+ $( '.cpsw_hide' ).show();
34
+ HideShowKeys( true );
35
+ } );
36
+
37
+ $( document ).on( 'click', '.cpsw_hide', function() {
38
+ $( this ).hide();
39
+ $( '.cpsw_show' ).show();
40
+ HideShowKeys( false );
41
+ } );
42
+
43
+ function HideShowKeys( cond = '' ) {
44
+ if ( cond === true ) {
45
+ $( '#cpsw_test_pub_key' ).closest( 'tr' ).show();
46
+ $( '#cpsw_test_secret_key' ).closest( 'tr' ).show();
47
+ $( '#cpsw_pub_key' ).closest( 'tr' ).show();
48
+ $( '#cpsw_secret_key' ).closest( 'tr' ).show();
49
+ if ( cpsw_ajax_object.is_connected === '' ) {
50
+ const connectButton = '<button name="connect" class="button-primary" type="button" id="cpsw_test_connection" data-mode="manual">' + cpsw_ajax_object.test_btn_label + '</button>';
51
+ $( '.woocommerce .submit' ).append( connectButton );
52
+ $( '.woocommerce-save-button' ).hide();
53
+ }
54
+ }
55
+ if ( cond === false ) {
56
+ $( '#cpsw_test_pub_key' ).closest( 'tr' ).hide();
57
+ $( '#cpsw_test_secret_key' ).closest( 'tr' ).hide();
58
+ $( '#cpsw_pub_key' ).closest( 'tr' ).hide();
59
+ $( '#cpsw_secret_key' ).closest( 'tr' ).hide();
60
+ if ( cpsw_ajax_object.is_connected === '' ) {
61
+ $( '#cpsw_test_connection' ).remove();
62
+ }
63
+ }
64
+ }
65
+
66
+ $( document ).on( 'click', '#cpsw_test_connection', function( e ) {
67
+ e.preventDefault();
68
+ const cpswTestSecretKey = $( '#cpsw_test_secret_key' ).val();
69
+ const cpswSecretKey = $( '#cpsw_secret_key' ).val();
70
+ const cpswTestPubKey = $( '#cpsw_test_pub_key' ).val();
71
+ const cpswPubKey = $( '#cpsw_pub_key' ).val();
72
+
73
+ const messages = [];
74
+
75
+ if ( ( '' !== cpswTestSecretKey && '' !== cpswTestPubKey ) || ( '' !== cpswSecretKey && '' !== cpswPubKey ) ) {
76
+ $.blockUI( { message: '' } );
77
+ const mode = ( 'undefined' === typeof $( this ).data( 'mode' ) ) ? '' : $( this ).data( 'mode' );
78
+ $.ajax( {
79
+ type: 'GET',
80
+ dataType: 'json',
81
+ url: cpsw_ajax_object.ajax_url,
82
+ data: { action: 'cpsw_test_stripe_connection', _security: cpsw_ajax_object.admin_nonce, cpsw_test_sec_key: cpswTestSecretKey, cpsw_secret_key: cpswSecretKey },
83
+ beforeSend: () => {
84
+ $( 'body' ).css( 'cursor', 'progress' );
85
+ },
86
+ success( response ) {
87
+ const res = response.data.data;
88
+ let br = '';
89
+ let icon = '❌';
90
+ if ( res.live.status !== 'invalid' ) {
91
+ if ( res.live.status === 'success' ) {
92
+ icon = '✔';
93
+ } else {
94
+ $( '#cpsw_secret_key' ).val( '' );
95
+ $( '#cpsw_pub_key' ).val( '' );
96
+ }
97
+ messages.push( res.live.mode + ' ' + icon + '\n' + res.live.message );
98
+ br = '----\n';
99
+ } else {
100
+ if ( 'manual' !== mode ) {
101
+ messages.push( res.live.mode + ' ' + icon + '\n' + cpsw_ajax_object.stripe_key_unavailable );
102
+ br = '----\n';
103
+ }
104
+ $( '#cpsw_secret_key' ).val( '' );
105
+ $( '#cpsw_pub_key' ).val( '' );
106
+ }
107
+ icon = '❌';
108
+ if ( res.test.status !== 'invalid' ) {
109
+ if ( res.test.status === 'success' ) {
110
+ icon = '✔';
111
+ } else {
112
+ $( '#cpsw_test_secret_key' ).val( '' );
113
+ $( '#cpsw_test_pub_key' ).val( '' );
114
+ }
115
+ messages.push( br + res.test.mode + ' ' + icon + '\n' + res.test.message );
116
+ } else {
117
+ if ( 'manual' !== mode ) {
118
+ messages.push( br + res.test.mode + ' ' + icon + '\n' + cpsw_ajax_object.stripe_key_unavailable );
119
+ }
120
+ $( '#cpsw_test_secret_key' ).val( '' );
121
+ $( '#cpsw_test_pub_key' ).val( '' );
122
+ }
123
+ $.unblockUI();
124
+ alert( messages.join( '\n' ) );
125
+ $( 'body' ).css( 'cursor', 'default' );
126
+ if ( 'manual' === mode && ( 'success' === res.live.status || 'success' === res.test.status ) ) {
127
+ $( '.woocommerce-save-button' ).trigger( 'click' );
128
+ }
129
+ },
130
+ error() {
131
+ $( 'body' ).css( 'cursor', 'default' );
132
+ $.unblockUI();
133
+ alert( cpsw_ajax_object.stripe_key_error + cpsw_ajax_object.cpsw_mode );
134
+ },
135
+ } );
136
+ } else {
137
+ alert( cpsw_ajax_object.stripe_key_notice );
138
+ }
139
+ } );
140
+
141
+ $( document ).on( 'click', '#cpsw_disconnect_acc', function( e ) {
142
+ e.preventDefault();
143
+ $.ajax( {
144
+ type: 'GET',
145
+ dataType: 'json',
146
+ url: cpsw_ajax_object.ajax_url,
147
+ data: { action: 'cpsw_disconnect_account', _security: cpsw_ajax_object.admin_nonce },
148
+ beforeSend: () => {
149
+ $( 'body' ).css( 'cursor', 'progress' );
150
+ },
151
+ success( response ) {
152
+ if ( response.success === true ) {
153
+ const icon = '✔';
154
+ alert( cpsw_ajax_object.stripe_disconnect + ' ' + icon );
155
+ window.location.href = cpsw_ajax_object.dashboard_url;
156
+ } else if ( response.success === false ) {
157
+ alert( response.data.message );
158
+ }
159
+ $( 'body' ).css( 'cursor', 'default' );
160
+ },
161
+ error() {
162
+ $( 'body' ).css( 'cursor', 'default' );
163
+ alert( cpsw_ajax_object.generic_error );
164
+ },
165
+ } );
166
+ } );
167
+
168
+ $( document ).on( 'click', '#cpsw_connect_other_acc', function( e ) {
169
+ e.preventDefault();
170
+ $.ajax( {
171
+ type: 'GET',
172
+ dataType: 'json',
173
+ url: cpsw_ajax_object.ajax_url,
174
+ data: { action: 'cpsw_disconnect_account', _security: cpsw_ajax_object.admin_nonce },
175
+ beforeSend: () => {
176
+ $( 'body' ).css( 'cursor', 'progress' );
177
+ },
178
+ success( response ) {
179
+ if ( response.success === true ) {
180
+ alert( cpsw_ajax_object.stripe_connect_other_acc );
181
+ window.location.href = cpsw_ajax_object.dashboard_url;
182
+ } else if ( response.success === false ) {
183
+ alert( response.data.message );
184
+ }
185
+ $( 'body' ).css( 'cursor', 'default' );
186
+ },
187
+ error() {
188
+ $( 'body' ).css( 'cursor', 'default' );
189
+ alert( cpsw_ajax_object.generic_error );
190
+ },
191
+ } );
192
+ } );
193
+ $( document ).ready( function() {
194
+ $( '.cpsw_allowed_cards_field' ).selectWoo();
195
+ } );
196
+ }( jQuery ) );
assets/css/stripe-elements.css ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .cpsw-stripe-error,
2
+ .cpsw-number-error,
3
+ .cpsw-expiry-error,
4
+ .cpsw-cvc-error {
5
+ padding-top: 3px;
6
+ font-weight: 500;
7
+ color: #f00;
8
+ }
9
+
10
+ .cpsw-save-cards {
11
+ margin-top: 3px;
12
+ padding: 8px;
13
+ display: block;
14
+ }
15
+
16
+ .cpsw-save-cards input {
17
+ margin-right: 5px !important;
18
+ }
19
+
20
+ .cpsw-stripe-elements-form {
21
+ display: none;
22
+ }
23
+
24
+ .cpsw-stripe-info {
25
+ margin-bottom: 10px;
26
+ }
27
+
28
+ .payment_method_cpsw_stripe .wc-saved-payment-methods {
29
+ display: none;
30
+ }
assets/js/stripe-elements.js ADDED
@@ -0,0 +1,377 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ( function( $ ) {
2
+ const pubKey = cpsw_global_settings.public_key;
3
+ const inlineCC = cpsw_global_settings.inline_cc;
4
+ const isSsl = cpsw_global_settings.is_ssl;
5
+ const mode = cpsw_global_settings.mode;
6
+ const ajaxUrl = cpsw_global_settings.ajax_url;
7
+ const jsNonce = cpsw_global_settings.js_nonce;
8
+ const allowedCards = cpsw_global_settings.allowed_cards;
9
+ const notAllowedString = cpsw_global_settings.not_allowed_string;
10
+ const defaultCards = cpsw_global_settings.default_cards;
11
+
12
+ if ( '' === pubKey || ( 'live' === mode && ! isSsl ) ) {
13
+ return;
14
+ }
15
+
16
+ const stripe = Stripe( pubKey );
17
+ const elements = stripe.elements();
18
+ let savedCard = false;
19
+ let card = null;
20
+ let cardNumber = null;
21
+ let cardExpiry = null;
22
+ let cardCvc = null;
23
+ let paymentForm = null;
24
+ let paymentMethod = '';
25
+ let isAllowedCard = false;
26
+
27
+ const style = {
28
+ base: {
29
+ color: '#32325d',
30
+ },
31
+ };
32
+
33
+ if ( 'yes' === inlineCC ) {
34
+ card = elements.create( 'card', {
35
+ style,
36
+ hidePostalCode: true,
37
+ iconStyle: 'solid',
38
+ } );
39
+
40
+ /**
41
+ * display error messages
42
+ */
43
+ card.on( 'change', ( { brand, error } ) => {
44
+ if ( brand ) {
45
+ isAllowedBrand( brand );
46
+ if ( ! isAllowedCard ) {
47
+ if ( 'unknown' === brand ) {
48
+ $( '.cpsw-stripe-error' ).html( '' );
49
+ } else {
50
+ $( '.cpsw-stripe-error' ).html( defaultCards[ brand ] + ' ' + notAllowedString );
51
+ return;
52
+ }
53
+ } else {
54
+ $( '.cpsw-stripe-error' ).html( '' );
55
+ }
56
+ }
57
+ if ( error ) {
58
+ $( '.cpsw-stripe-error' ).html( error.message );
59
+ } else {
60
+ $( '.cpsw-stripe-error' ).html( '' );
61
+ }
62
+ } );
63
+ }
64
+
65
+ if ( 'no' === inlineCC ) {
66
+ cardNumber = elements.create( 'cardNumber', {
67
+ style,
68
+ iconStyle: 'solid',
69
+ } );
70
+
71
+ cardExpiry = elements.create( 'cardExpiry', {
72
+ style,
73
+ } );
74
+
75
+ cardCvc = elements.create( 'cardCvc', {
76
+ style,
77
+ } );
78
+ /**
79
+ * display error messages
80
+ */
81
+ cardNumber.on( 'change', ( { brand, error } ) => {
82
+ if ( brand ) {
83
+ isAllowedBrand( brand );
84
+ if ( ! isAllowedCard ) {
85
+ if ( 'unknown' === brand ) {
86
+ $( '.cpsw-number-error' ).html( '' );
87
+ } else {
88
+ $( '.cpsw-number-error' ).html( defaultCards[ brand ] + ' ' + notAllowedString );
89
+ return;
90
+ }
91
+ } else {
92
+ $( '.cpsw-number-error' ).html( '' );
93
+ }
94
+ }
95
+
96
+ if ( error ) {
97
+ $( '.cpsw-number-error' ).html( error.message );
98
+ } else {
99
+ $( '.cpsw-number-error' ).html( '' );
100
+ }
101
+ } );
102
+ cardExpiry.on( 'change', ( { error } ) => {
103
+ if ( error ) {
104
+ $( '.cpsw-expiry-error' ).html( error.message );
105
+ } else {
106
+ $( '.cpsw-expiry-error' ).html( '' );
107
+ }
108
+ } );
109
+ cardCvc.on( 'change', ( { error } ) => {
110
+ if ( error ) {
111
+ $( '.cpsw-cvc-error' ).html( error.message );
112
+ } else {
113
+ $( '.cpsw-cvc-error' ).html( '' );
114
+ }
115
+ } );
116
+ }
117
+
118
+ function mountCard() {
119
+ $( '.cpsw-stripe-elements-form' ).show();
120
+ if ( 0 === $( '.cpsw-stripe-elements-form' ).length ) {
121
+ return;
122
+ }
123
+ if ( 'yes' === inlineCC ) {
124
+ if ( $( '.cpsw-stripe-elements-form .cpsw-cc' ).html() ) {
125
+ card.unmount();
126
+ }
127
+ card.mount( '.cpsw-stripe-elements-form .cpsw-cc' );
128
+ $( '.cpsw-stripe-elements-form div' ).css( { backgroundColor: '#fff', padding: '5px' } );
129
+ } else if ( 'no' === inlineCC ) {
130
+ cardNumber.mount( '.cpsw-stripe-elements-form .cpsw-number' );
131
+ cardExpiry.mount( '.cpsw-stripe-elements-form .cpsw-expiry' );
132
+ cardCvc.mount( '.cpsw-stripe-elements-form .cpsw-cvc' );
133
+ $( '.cpsw-stripe-elements-form div' ).css( { backgroundColor: '#fff', padding: '5px', marginTop: '5px' } );
134
+ }
135
+ }
136
+
137
+ function createStripePaymentMethod() {
138
+ let paymentObject = {};
139
+ let selectedPaymentMethod = '';
140
+ if ( $( '.wc_payment_method input' ).length ) {
141
+ selectedPaymentMethod = $( '.wc_payment_method input:checked' ).val();
142
+ } else if ( 0 < $( '#payment_method_cpsw_stripe' ).length && $( '#payment_method_cpsw_stripe' ).is( ':checked' ) ) {
143
+ selectedPaymentMethod = $( '#payment_method_cpsw_stripe' ).val();
144
+ }
145
+
146
+ switch ( selectedPaymentMethod ) {
147
+ case 'cpsw_stripe':
148
+ if ( 'no' === inlineCC ) {
149
+ card = cardNumber;
150
+ }
151
+ paymentObject = {
152
+ type: 'card',
153
+ card,
154
+ };
155
+ break;
156
+
157
+ default:
158
+ break;
159
+ }
160
+ if ( ! $.isEmptyObject( paymentObject ) ) {
161
+ stripe
162
+ .createPaymentMethod( paymentObject )
163
+ .then( function( result ) {
164
+ // Handle result.error or result.paymentMethod
165
+ if ( result.paymentMethod ) {
166
+ paymentMethod = result.paymentMethod.id;
167
+ const brand = result.paymentMethod.card.brand;
168
+ $( '.cpsw_payment_method' ).remove();
169
+ $( '.cpsw_card_brand' ).remove();
170
+ paymentForm.append(
171
+ "<input type='hidden' class='cpsw_payment_method' name='payment_method_created' value='" +
172
+ paymentMethod +
173
+ "'/><input type='hidden' class='cpsw_card_brand' name='card_brand' value='" +
174
+ brand +
175
+ "'/>",
176
+ );
177
+ if ( $( 'form#order_review' ).length ) {
178
+ confirmCardSetup( paymentMethod );
179
+ } else if ( $( 'form#add_payment_method' ).length ) {
180
+ confirmCardSetup( paymentMethod );
181
+ } else {
182
+ paymentForm.trigger( 'submit' );
183
+ }
184
+ } else if ( result.error ) {
185
+ logError( result.error );
186
+ return false;
187
+ }
188
+ } );
189
+ }
190
+ return true;
191
+ }
192
+
193
+ function confirmStripePayment( clientSecret, redirectURL ) {
194
+ stripe.confirmCardPayment( clientSecret, {} ).then( function( result ) {
195
+ if ( result.error ) {
196
+ // Show error to your customer (e.g., insufficient funds)
197
+ $( '.woocommerce-error' ).remove();
198
+ $( 'form.woocommerce-checkout' ).unblock();
199
+ logError( result.error );
200
+ $( '.woocommerce-notices-wrapper:first-child' ).html( '<div class="woocommerce-error cpsw-errors">' + result.error.message + '</div>' ).show();
201
+ window.scrollTo( { top: 0, behavior: 'smooth' } );
202
+ } else {
203
+ // The payment has been processed!
204
+ if ( result.paymentIntent.status === 'succeeded' || result.paymentIntent.status === 'requires_capture' ) {
205
+ window.location = redirectURL;
206
+ }
207
+ }
208
+ } );
209
+ }
210
+
211
+ function confirmCardSetup() {
212
+ $.ajax( {
213
+ type: 'POST',
214
+ dataType: 'json',
215
+ url: ajaxUrl,
216
+ data: { action: 'create_setup_intent', _security: jsNonce, paymentMethod },
217
+ beforeSend: () => {
218
+ $( 'body' ).css( 'cursor', 'progress' );
219
+ },
220
+ success( response ) {
221
+ if ( response.success === true ) {
222
+ const clientSecret = response.data.client_secret;
223
+ stripe.confirmCardSetup( clientSecret, { payment_method: paymentMethod } ).then( function() {
224
+ paymentForm.trigger( 'submit' );
225
+ } );
226
+ } else if ( response.success === false ) {
227
+ return false;
228
+ }
229
+ $( 'body' ).css( 'cursor', 'default' );
230
+ },
231
+ error() {
232
+ $( 'body' ).css( 'cursor', 'default' );
233
+ alert( 'Something went wrong!' );
234
+ },
235
+ } );
236
+ }
237
+
238
+ function isAllowedGateway() {
239
+ if ( 0 < $( '.wc_payment_method' ).length ) {
240
+ const selectedPaymentMethod = $( '.wc_payment_method input:checked' ).val();
241
+ return ( -1 === $.inArray( selectedPaymentMethod, [ 'cpsw_stripe' ] ) ) ? false : true;
242
+ } else if ( 0 < $( '#payment_method_cpsw_stripe' ).length && $( '#payment_method_cpsw_stripe' ).is( ':checked' ) && 'cpsw_stripe' === $( '#payment_method_cpsw_stripe' ).val() ) {
243
+ return true;
244
+ }
245
+ return false;
246
+ }
247
+
248
+ function isAllowedBrand( brand ) {
249
+ if ( 0 === allowedCards.length ) {
250
+ isAllowedCard = true;
251
+ return;
252
+ }
253
+
254
+ isAllowedCard = ( -1 === $.inArray( brand, allowedCards ) ) ? false : true;
255
+ }
256
+
257
+ function hideShowCard() {
258
+ const isSavedCard = ( 'new' === $( "input[name='wc-cpsw-payment-token']:checked" ).val() ) ? false : true;
259
+ if ( ! isSavedCard ) {
260
+ $( '.cpsw-stripe-elements-form' ).fadeIn();
261
+ } else {
262
+ $( '.cpsw-stripe-elements-form' ).fadeOut();
263
+ }
264
+ }
265
+
266
+ function onHashChange() {
267
+ if ( ! isAllowedGateway() ) {
268
+ return;
269
+ }
270
+ const partials = window.location.hash.match(
271
+ /^#?confirm-(pi|si)-([^:]+):(.+)$/,
272
+ );
273
+
274
+ if ( ! partials || 4 > partials.length ) {
275
+ return;
276
+ }
277
+
278
+ const intentClientSecret = partials[ 2 ];
279
+ const redirectURL = decodeURIComponent( partials[ 3 ] );
280
+
281
+ // Cleanup the URL
282
+ window.location.hash = '';
283
+ confirmStripePayment( intentClientSecret, redirectURL );
284
+ }
285
+
286
+ function showSavedCards() {
287
+ if ( $( '.payment_method_cpsw_stripe .wc-saved-payment-methods' ).length ) {
288
+ $( '.payment_method_cpsw_stripe .wc-saved-payment-methods' ).show();
289
+ }
290
+ }
291
+
292
+ function hideShowElements() {
293
+ if ( 'new' === $( 'input[type=radio][name="wc-cpsw_stripe-payment-token"]:checked' ).val() ) {
294
+ $( '.cpsw-stripe-elements-form' ).show();
295
+ savedCard = false;
296
+ } else {
297
+ $( '.cpsw-stripe-elements-form' ).hide();
298
+ savedCard = true;
299
+ }
300
+ }
301
+
302
+ function logError( error ) {
303
+ $.ajax( {
304
+ type: 'POST',
305
+ dataType: 'json',
306
+ url: ajaxUrl,
307
+ data: { action: 'cpsw_js_errors', _security: jsNonce, error },
308
+ beforeSend: () => {
309
+ $( 'body' ).css( 'cursor', 'progress' );
310
+ },
311
+ success( response ) {
312
+ if ( response.success === true ) {
313
+ } else if ( response.success === false ) {
314
+ return response.message;
315
+ }
316
+ $( 'body' ).css( 'cursor', 'default' );
317
+ },
318
+ error() {
319
+ $( 'body' ).css( 'cursor', 'default' );
320
+ alert( 'Something went wrong!' );
321
+ },
322
+ } );
323
+ }
324
+
325
+ const processingSubmit = function( e ) {
326
+ if ( isAllowedGateway() && ! savedCard && '' === paymentMethod ) {
327
+ if ( ! isAllowedCard ) {
328
+ return false;
329
+ }
330
+ e.preventDefault();
331
+ createStripePaymentMethod();
332
+
333
+ return false;
334
+ }
335
+ return true;
336
+ };
337
+
338
+ if ( $( 'form.woocommerce-checkout' ).length ) {
339
+ paymentForm = $( 'form.woocommerce-checkout' );
340
+ }
341
+
342
+ $( 'form.woocommerce-checkout' ).on( 'submit checkout_place_order_cpsw_stripe', processingSubmit );
343
+
344
+ if ( $( 'form#order_review' ).length ) {
345
+ showSavedCards();
346
+ paymentForm = $( 'form#order_review' );
347
+ }
348
+
349
+ if ( $( 'form#add_payment_method' ).length ) {
350
+ isAllowedCard = true;
351
+ paymentForm = $( 'form#add_payment_method' );
352
+ }
353
+
354
+ $( 'form#order_review, form#add_payment_method' ).on( 'submit', processingSubmit );
355
+
356
+ /**
357
+ * mount card element after woocommerce ajax call
358
+ */
359
+ $( document.body ).on( 'updated_checkout', function() {
360
+ showSavedCards();
361
+ $( 'input[type=radio][name="wc-cpsw_stripe-payment-token"]' ).change( function() {
362
+ hideShowElements();
363
+ } );
364
+ mountCard();
365
+ $( "input[name='wc-cpsw-payment-token']" ).click( function() {
366
+ hideShowCard();
367
+ } );
368
+ } );
369
+
370
+ $( 'input[type=radio][name="wc-cpsw_stripe-payment-token"]' ).change( function() {
371
+ hideShowElements();
372
+ } );
373
+ $( '.cpsw-stripe-elements-form' ).hide();
374
+
375
+ window.addEventListener( 'hashchange', onHashChange );
376
+ mountCard();
377
+ }( jQuery ) );
autoloader.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Auto Loader.
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ * @since 0.0.1
7
+ */
8
+
9
+ namespace CPSW;
10
+
11
+ use CPSW\Inc\Helper;
12
+ use CPSW\Gateway\Stripe\Card_Payments;
13
+ use CPSW\Admin\Admin_Controller;
14
+ use CPSW\Gateway\Stripe\Webhook;
15
+
16
+ /**
17
+ * CPSW_Loader
18
+ *
19
+ * @since 0.0.1
20
+ */
21
+ class CPSW_Loader {
22
+
23
+ /**
24
+ * Instance
25
+ *
26
+ * @access private
27
+ * @var object Class Instance.
28
+ * @since 0.0.1
29
+ */
30
+ private static $instance;
31
+
32
+ /**
33
+ * Initiator
34
+ *
35
+ * @since 0.0.1
36
+ * @return object initialized object of class.
37
+ */
38
+ public static function get_instance() {
39
+ if ( ! isset( self::$instance ) ) {
40
+ self::$instance = new self();
41
+ }
42
+ return self::$instance;
43
+ }
44
+
45
+ /**
46
+ * Autoload classes.
47
+ *
48
+ * @param string $class class name.
49
+ */
50
+ public function autoload( $class ) {
51
+ if ( 0 !== strpos( $class, __NAMESPACE__ ) ) {
52
+ return;
53
+ }
54
+
55
+ $class_to_load = $class;
56
+
57
+ $filename = strtolower(
58
+ preg_replace(
59
+ [ '/^' . __NAMESPACE__ . '\\\/', '/([a-z])([A-Z])/', '/_/', '/\\\/' ],
60
+ [ '', '$1-$2', '-', DIRECTORY_SEPARATOR ],
61
+ $class_to_load
62
+ )
63
+ );
64
+
65
+ $file = CPSW_DIR . $filename . '.php';
66
+
67
+ // if the file redable, include it.
68
+ if ( is_readable( $file ) ) {
69
+ require_once $file;
70
+ }
71
+ }
72
+
73
+ /**
74
+ * Constructor
75
+ *
76
+ * @since 0.0.1
77
+ */
78
+ public function __construct() {
79
+ spl_autoload_register( [ $this, 'autoload' ] );
80
+ require_once 'lib/stripe-php/init.php';
81
+ $this->setup_classes();
82
+ add_action( 'plugins_loaded', [ $this, 'load_classes' ] );
83
+ add_filter( 'plugin_action_links_' . CPSW_BASE, [ $this, 'action_links' ] );
84
+ }
85
+
86
+ /**
87
+ * Sets up base classes.
88
+ *
89
+ * @return void
90
+ */
91
+ public function setup_classes() {
92
+ Helper::get_instance();
93
+ Admin_Controller::get_instance();
94
+ Webhook::get_instance();
95
+ }
96
+
97
+ /**
98
+ * Adds links in Plugins page
99
+ *
100
+ * @param array $links existing links.
101
+ * @return array
102
+ */
103
+ public function action_links( $links ) {
104
+ $plugin_links = [
105
+ 'cpsw_settings' => '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=cpsw_api_settings' ) . '">' . __( 'Settings', 'checkout-plugins-stripe-woo' ) . '</a>',
106
+ 'cpsw_documentation' => '<a href="https://checkoutplugins.com/docs/stripe-api-settings/" target="_blank" >' . __( 'Documentation', 'checkout-plugins-stripe-woo' ) . '</a>',
107
+ ];
108
+
109
+ return array_merge( $plugin_links, $links );
110
+ }
111
+
112
+ /**
113
+ * Loads classes on plugins_loaded hook.
114
+ *
115
+ * @return void
116
+ */
117
+ public function load_classes() {
118
+
119
+ if ( class_exists( 'woocommerce' ) ) {
120
+ Card_Payments::get_instance();
121
+ } else {
122
+ add_action( 'admin_notices', [ $this, 'wc_is_not_active' ] );
123
+ }
124
+ }
125
+
126
+ /**
127
+ * Loads classes on plugins_loaded hook.
128
+ *
129
+ * @return void
130
+ */
131
+ public function wc_is_not_active() {
132
+
133
+ $install_url = wp_nonce_url(
134
+ add_query_arg(
135
+ array(
136
+ 'action' => 'install-plugin',
137
+ 'plugin' => 'woocommerce',
138
+ ),
139
+ admin_url( 'update.php' )
140
+ ),
141
+ 'install-plugin_woocommerce'
142
+ );
143
+ echo '<div class="notice notice-error is-dismissible"><p>';
144
+ // translators: 1$-2$: opening and closing <strong> tags, 3$-4$: link tags, takes to woocommerce plugin on wp.org, 5$-6$: opening and closing link tags, leads to plugins.php in admin.
145
+ echo sprintf( esc_html__( '%1$sStripe Gateway for WooCommerce is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active for Stripe Gateway for WooCommerce to work. Please %5$sinstall & activate WooCommerce &raquo;%6$s', 'checkout-plugins-stripe-woo' ), '<strong>', '</strong>', '<a href="http://wordpress.org/extend/plugins/woocommerce/">', '</a>', '<a href="' . esc_url( $install_url ) . '">', '</a>' );
146
+ echo '</p></div>';
147
+ }
148
+
149
+ }
150
+
151
+ /**
152
+ * Kicking this off by calling 'get_instance()' method
153
+ */
154
+ CPSW_Loader::get_instance();
155
+
checkout-plugins-stripe-woo.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin Name: Checkout Plugins - Stripe for WooCommerce
4
+ * Plugin URI: https://www.checkoutplugins.com/
5
+ * Description: Stripe for WooCommerce delivers a simple, secure way to accept credit card payments in your WooCommerce store. Reduce payment friction and boost conversions using this free plugin!
6
+ * Version: 1.0.0
7
+ * Author: Brainstorm Force
8
+ * Author URI: https://brainstormforce.com/
9
+ * License: GPLv2 or later
10
+ * Text Domain: checkout-plugins-stripe-woo
11
+ *
12
+ * @package checkout-plugins-stripe-woo
13
+ */
14
+
15
+ /**
16
+ * Set constants
17
+ */
18
+
19
+ define( 'CPSW_FILE', __FILE__ );
20
+ define( 'CPSW_BASE', plugin_basename( CPSW_FILE ) );
21
+ define( 'CPSW_DIR', plugin_dir_path( CPSW_FILE ) );
22
+ define( 'CPSW_URL', plugins_url( '/', CPSW_FILE ) );
23
+ define( 'CPSW_VERSION', '1.0.0' );
24
+
25
+ require_once 'autoloader.php';
gateway/abstract-payment-gateway.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Abstract Payment Gateway
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ * @since 0.0.1
7
+ */
8
+
9
+ namespace CPSW\Gateway;
10
+
11
+ use WC_Payment_Gateway;
12
+ use CPSW\Inc\Helper;
13
+
14
+ /**
15
+ * Abstract Payment Gateway
16
+ *
17
+ * @since 0.0.1
18
+ */
19
+ abstract class Abstract_Payment_Gateway extends WC_Payment_Gateway {
20
+
21
+ /**
22
+ * Adds transaction url in order details page
23
+ *
24
+ * @param WC_Order $order current order.
25
+ * @return string
26
+ */
27
+ public function get_transaction_url( $order ) {
28
+ if ( 'test' === Helper::get_payment_mode() ) {
29
+ $this->view_transaction_url = 'https://dashboard.stripe.com/test/payments/%s';
30
+ } else {
31
+ $this->view_transaction_url = 'https://dashboard.stripe.com/payments/%s';
32
+ }
33
+
34
+ return parent::get_transaction_url( $order );
35
+ }
36
+
37
+ /**
38
+ * Get Order description string
39
+ *
40
+ * @param WC_Order $order current order.
41
+ * @return string
42
+ */
43
+ public function get_order_description( $order ) {
44
+ return apply_filters( 'cpsw_get_order_description', get_bloginfo( 'name' ) . ' - ' . __( 'Order ', 'checkout-plugins-stripe-woo' ) . $order->get_id() );
45
+ }
46
+
47
+ }
48
+
gateway/stripe/card-payments.php ADDED
@@ -0,0 +1,1058 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Stripe Gateway
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ * @since 0.0.1
7
+ */
8
+
9
+ namespace CPSW\Gateway\Stripe;
10
+
11
+ use CPSW\Inc\Helper;
12
+ use CPSW\Inc\Logger;
13
+ use CPSW\Inc\Traits\Get_Instance;
14
+ use CPSW\Inc\Traits\Subscriptions;
15
+ use CPSW\Gateway\Abstract_Payment_Gateway;
16
+ use CPSW\Gateway\Stripe\Frontend_Scripts;
17
+ use CPSW\Gateway\Stripe\Stripe_Api;
18
+ use WC_Order;
19
+ use WC_AJAX;
20
+ use WC_HTTPS;
21
+ use WC_Payment_Tokens;
22
+ use WC_Payment_Token_CC;
23
+ use Exception;
24
+ use WP_Error;
25
+
26
+ /**
27
+ * Card_Payments
28
+ *
29
+ * @since 0.0.1
30
+ */
31
+ class Card_Payments extends Abstract_Payment_Gateway {
32
+
33
+ use Get_Instance;
34
+ use Subscriptions;
35
+
36
+ /**
37
+ * Zero currencies accepted by stripe.
38
+ *
39
+ * @var array
40
+ */
41
+ private static $zero_currencies = [ 'BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VUV', 'XAF', 'XOF', 'XPF', 'VND' ];
42
+
43
+ /**
44
+ * Temporary array of allowed cards, further data will be taken from user
45
+ *
46
+ * @var array
47
+ */
48
+
49
+ /**
50
+ * Constructor
51
+ *
52
+ * @since 0.0.1
53
+ */
54
+ public function __construct() {
55
+ add_filter( 'woocommerce_payment_gateways', [ $this, 'add_gateway_class' ] );
56
+
57
+ $this->id = 'cpsw_stripe';
58
+ $this->stripe_api = Stripe_Api::get_instance();
59
+ $this->method_title = __( 'Stripe Card Payments', 'checkout-plugins-stripe-woo' );
60
+ $this->method_description = __( 'Accepts payments via Credit/Debit Cards', 'checkout-plugins-stripe-woo' );
61
+ $this->has_fields = true;
62
+ $this->init_supports();
63
+ $this->maybe_init_subscriptions();
64
+
65
+ $this->init_form_fields();
66
+ $this->init_settings();
67
+ // get_option should be called after init_form_fields().
68
+ $this->title = $this->get_option( 'title' );
69
+ $this->description = $this->get_option( 'description' );
70
+ $this->order_button_text = $this->get_option( 'order_button_text' );
71
+ $this->inline_cc = $this->get_option( 'inline_cc' );
72
+ $this->enable_saved_cards = $this->get_option( 'enable_saved_cards' );
73
+ $this->capture_method = $this->get_option( 'charge_type' );
74
+ $this->allowed_cards = empty( $this->get_option( 'allowed_cards' ) ) ? [ 'mastercard', 'visa', 'diners', 'discover', 'amex', 'jcb', 'unionpay' ] : $this->get_option( 'allowed_cards' );
75
+ $this->statement_descriptor = $this->clean_statement_descriptor( $this->get_option( 'statement_descriptor' ) );
76
+
77
+ add_action( 'woocommerce_init', [ $this, 'woocommerce_dependencies' ] );
78
+ add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, [ $this, 'process_admin_options' ] );
79
+ add_filter( 'woocommerce_payment_successful_result', [ $this, 'modify_successful_payment_result' ], 999, 2 );
80
+ add_action( 'wc_ajax_cpsw_verify_payment_intent', [ $this, 'verify_intent' ] );
81
+ add_action( 'woocommerce_admin_field_status', [ $this, 'connection_status' ] );
82
+ }
83
+
84
+ /**
85
+ * Registers supported filters for payment gateway
86
+ *
87
+ * @return void
88
+ */
89
+ public function init_supports() {
90
+ $this->supports = [
91
+ 'products',
92
+ 'refunds',
93
+ 'tokenization',
94
+ 'add_payment_method',
95
+ 'pre-orders',
96
+ ];
97
+ }
98
+
99
+ /**
100
+ * Registering Gateway to WooCommerce
101
+ *
102
+ * @param array $methods List of registered gateways.
103
+ * @return array
104
+ */
105
+ public function add_gateway_class( $methods ) {
106
+ $methods[] = $this;
107
+ return $methods;
108
+ }
109
+
110
+ /**
111
+ * Includes woocomerce dependencies.
112
+ *
113
+ * @return void
114
+ */
115
+ public function woocommerce_dependencies() {
116
+ if ( is_admin() ) {
117
+ return;
118
+ }
119
+ Frontend_Scripts::get_instance();
120
+ }
121
+
122
+ /**
123
+ * Checks whether this gateway is available.
124
+ *
125
+ * @return boolean
126
+ */
127
+ public function is_available() {
128
+ if ( 'yes' === $this->enabled ) {
129
+ if ( ! Helper::get_payment_mode() && is_checkout() ) {
130
+ return false;
131
+ }
132
+ if ( 'test' === Helper::get_payment_mode() ) {
133
+ if ( empty( Helper::get_setting( 'cpsw_test_pub_key' ) ) || empty( Helper::get_setting( 'cpsw_test_secret_key' ) ) ) {
134
+ return false;
135
+ }
136
+ } else {
137
+ if ( empty( Helper::get_setting( 'cpsw_pub_key' ) ) || empty( Helper::get_setting( 'cpsw_secret_key' ) ) ) {
138
+ return false;
139
+ }
140
+ }
141
+ return true;
142
+ }
143
+ return false;
144
+ }
145
+
146
+ /**
147
+ * Gateway form fields
148
+ *
149
+ * @return void
150
+ */
151
+ public function init_form_fields() {
152
+ $this->form_fields = [
153
+ 'enabled' => [
154
+ 'label' => __( 'Enable/Disable', 'checkout-plugins-stripe-woo' ),
155
+ 'type' => 'checkbox',
156
+ 'title' => __( 'Enable Stripe Gateway', 'checkout-plugins-stripe-woo' ),
157
+ 'default' => 'no',
158
+ ],
159
+ 'title' => [
160
+ 'title' => __( 'Title', 'checkout-plugins-stripe-woo' ),
161
+ 'type' => 'text',
162
+ 'description' => __( 'Title of Card Element', 'checkout-plugins-stripe-woo' ),
163
+ 'default' => __( 'Credit Card (Stripe)', 'checkout-plugins-stripe-woo' ),
164
+ 'desc_tip' => true,
165
+ ],
166
+ 'description' => [
167
+ 'title' => __( 'Description', 'checkout-plugins-stripe-woo' ),
168
+ 'type' => 'textarea',
169
+ 'css' => 'width:25em',
170
+ 'description' => __( 'Description on Card Elements for Live mode', 'checkout-plugins-stripe-woo' ),
171
+ 'default' => __( 'Pay with your credit card via Stripe', 'checkout-plugins-stripe-woo' ),
172
+ 'desc_tip' => true,
173
+ ],
174
+ 'statement_descriptor' => [
175
+ 'title' => __( 'Statement Descriptor', 'checkout-plugins-stripe-woo' ),
176
+ 'type' => 'text',
177
+ 'description' => __( 'Statement descriptors are limited to 22 characters, cannot use the special characters >, <, ", \, *, /, (, ), {, }, and must not consist solely of numbers. This will appear on your customer\'s statement in capital letters.', 'checkout-plugins-stripe-woo' ),
178
+ 'default' => get_bloginfo( 'name' ),
179
+ 'desc_tip' => true,
180
+ ],
181
+ 'charge_type' => [
182
+ 'title' => __( 'Charge Type', 'checkout-plugins-stripe-woo' ),
183
+ 'type' => 'select',
184
+ 'description' => __( 'Select how to charge Order', 'checkout-plugins-stripe-woo' ),
185
+ 'default' => 'automatic',
186
+ 'options' => [
187
+ 'automatic' => __( 'Charge', 'checkout-plugins-stripe-woo' ),
188
+ 'manual' => __( 'Authorize', 'checkout-plugins-stripe-woo' ),
189
+ ],
190
+ 'desc_tip' => true,
191
+ ],
192
+ 'enable_saved_cards' => [
193
+ 'label' => __( 'Enable Payment via Saved Cards', 'checkout-plugins-stripe-woo' ),
194
+ 'title' => __( 'Saved Cards', 'checkout-plugins-stripe-woo' ),
195
+ 'type' => 'checkbox',
196
+ 'description' => __( 'Save card details for future orders', 'checkout-plugins-stripe-woo' ),
197
+ 'default' => 'yes',
198
+ 'desc_tip' => true,
199
+ ],
200
+ 'inline_cc' => [
201
+ 'label' => __( 'Enable Inline Credit Card Form', 'checkout-plugins-stripe-woo' ),
202
+ 'title' => __( 'Inline Credit Card Form', 'checkout-plugins-stripe-woo' ),
203
+ 'type' => 'checkbox',
204
+ 'description' => __( 'Use inline credit card for card payments', 'checkout-plugins-stripe-woo' ),
205
+ 'default' => 'yes',
206
+ 'desc_tip' => true,
207
+ ],
208
+ 'allowed_cards' => [
209
+ 'title' => __( 'Allowed Cards', 'checkout-plugins-stripe-woo' ),
210
+ 'type' => 'multiselect',
211
+ 'class' => 'cpsw_allowed_cards_field',
212
+ 'desc_tip' => __( 'Accepts payments using selected cards. If empty all stripe cards are accepted.', 'checkout-plugins-stripe-woo' ),
213
+ 'options' => [
214
+ 'mastercard' => 'MasterCard',
215
+ 'visa' => 'Visa',
216
+ 'amex' => 'American Express',
217
+ 'discover' => 'Discover',
218
+ 'jcb' => 'JCB',
219
+ 'diners' => 'Diners Club',
220
+ 'unionpay' => 'UnionPay',
221
+ ],
222
+ 'default' => [],
223
+ ],
224
+ 'order_button_text' => [
225
+ 'title' => __( 'Order Button Label', 'checkout-plugins-stripe-woo' ),
226
+ 'type' => 'text',
227
+ 'description' => __( 'Customize label for Order button', 'checkout-plugins-stripe-woo' ),
228
+ 'default' => __( 'Pay via Stripe', 'checkout-plugins-stripe-woo' ),
229
+ 'desc_tip' => true,
230
+ ],
231
+ ];
232
+ }
233
+
234
+ /**
235
+ * Process woocommerce orders after payment is done
236
+ *
237
+ * @param int $order_id wooCommerce order id.
238
+ * @return array data to redirect after payment processing.
239
+ */
240
+ public function process_payment( $order_id ) {
241
+ if ( $this->maybe_change_subscription_payment_method( $order_id ) ) {
242
+ return $this->process_change_subscription_payment_method( $order_id );
243
+ }
244
+
245
+ if ( $this->is_using_saved_payment_method() ) {
246
+ return $this->process_payment_with_saved_payment_method( $order_id );
247
+ }
248
+
249
+ try {
250
+ $order = wc_get_order( $order_id );
251
+ $payment_method = sanitize_text_field( $_POST['payment_method_created'] ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
252
+ $customer_id = $this->get_customer_id( $order );
253
+ $idempotency_key = $payment_method . '_' . $order->get_order_key();
254
+
255
+ $data = [
256
+ 'amount' => $this->get_formatted_amount( $order->get_total() ),
257
+ 'currency' => get_woocommerce_currency(),
258
+ 'description' => $this->get_order_description( $order ),
259
+ 'payment_method_types' => [ 'card' ],
260
+ 'payment_method' => $payment_method,
261
+ 'customer' => $customer_id,
262
+ 'capture_method' => $this->capture_method,
263
+ ];
264
+
265
+ if ( ! empty( trim( $this->statement_descriptor ) ) ) {
266
+ $data['statement_descriptor'] = $this->statement_descriptor;
267
+ }
268
+
269
+ if ( isset( $_POST['enable_saved_card'] ) || $this->has_subscription( $order_id ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing
270
+ $data['setup_future_usage'] = 'off_session';
271
+ }
272
+
273
+ /* translators: %1$1s order id, %2$2s order total amount */
274
+ Logger::info( sprintf( __( 'Begin processing payment with new payment method for order %1$1s for the amount of %2$2s', 'checkout-plugins-stripe-woo' ), $order_id, $order->get_total() ) );
275
+ $intent_data = $this->get_payment_intent( $order_id, $payment_method, $customer_id, $idempotency_key, $data );
276
+ if ( $intent_data ) {
277
+ return [
278
+ 'result' => 'success',
279
+ 'redirect' => $this->get_return_url( $order ),
280
+ 'payment_method' => $intent_data['payment_method'],
281
+ 'intent_secret' => $intent_data['client_secret'],
282
+ 'save_card' => $this->should_save_card( $order_id ),
283
+ ];
284
+ } else {
285
+ return [
286
+ 'result' => 'fail',
287
+ 'redirect' => '',
288
+ ];
289
+ }
290
+ } catch ( Exception $e ) {
291
+ Logger::error( $e->getMessage(), true );
292
+ return new WP_Error( 'order-error', '<div class="woocommerce-error">' . $e->getMessage() . '</div>', [ 'status' => 200 ] );
293
+ }
294
+ }
295
+
296
+ /**
297
+ * This function checks for the conditions whether current card should be saved or not.
298
+ *
299
+ * @param int $order_id WooCommerce order id.
300
+ * @return boolean
301
+ */
302
+ public function should_save_card( $order_id ) {
303
+ $status = false;
304
+ $status = isset( $_POST['enable_saved_card'] ) || $this->has_subscription( $order_id ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
305
+
306
+ return apply_filters( 'cpsw_force_save_card', $status );
307
+ }
308
+
309
+ /**
310
+ * Process payment using saved cards.
311
+ *
312
+ * @param int $order_id woocommerce order id.
313
+ * @return array
314
+ */
315
+ public function process_payment_with_saved_payment_method( $order_id ) {
316
+ try {
317
+ $order = wc_get_order( $order_id );
318
+ $token = $this->get_token_from_request( $_POST ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
319
+ $response = $this->stripe_api->payment_methods( 'retrieve', [ $token->get_token() ] );
320
+ $payment_method = $response['success'] ? $response['data'] : false;
321
+ $prepared_payment_method = $this->prepare_payment_method( $payment_method, $token );
322
+
323
+ $this->save_payment_method_to_order( $order, $prepared_payment_method );
324
+ /* translators: %1$1s order id, %2$2s order total amount */
325
+ Logger::info( sprintf( __( 'Begin processing payment with saved payment method for order %1$1s for the amount of %2$2s', 'checkout-plugins-stripe-woo' ), $order_id, $order->get_total() ) );
326
+
327
+ $request = [
328
+ 'payment_method' => $payment_method->id,
329
+ 'payment_method_types' => [ 'card' ],
330
+ 'amount' => $this->get_formatted_amount( $order->get_total() ),
331
+ 'currency' => strtolower( $order->get_currency() ),
332
+ 'description' => $this->get_order_description( $order ),
333
+ 'customer' => $payment_method->customer,
334
+ 'confirm' => true,
335
+ 'capture_method' => $this->capture_method,
336
+ ];
337
+
338
+ if ( ! empty( trim( $this->statement_descriptor ) ) ) {
339
+ $request['statement_descriptor'] = $this->statement_descriptor;
340
+ }
341
+
342
+ $response = $this->stripe_api->payment_intents( 'create', [ $request ] );
343
+
344
+ if ( $response['success'] ) {
345
+ $intent = $response['data'];
346
+ } else {
347
+ wc_add_notice( $response['message'], 'error' );
348
+ $intent = false;
349
+ }
350
+
351
+ if ( ! $intent ) {
352
+ return [
353
+ 'result' => 'fail',
354
+ 'redirect' => '',
355
+ ];
356
+ }
357
+
358
+ $intent_data = [
359
+ 'id' => $intent->id,
360
+ 'client_secret' => $intent->client_secret,
361
+ ];
362
+ update_post_meta( $order_id, '_cpsw_intent_secret', $intent_data );
363
+
364
+ if ( 'requires_action' === $intent->status ) {
365
+ if ( isset( $intent->next_action->type ) && 'redirect_to_url' === $intent->next_action->type && ! empty( $intent->next_action->redirect_to_url->url ) ) {
366
+ return [
367
+ 'result' => 'success',
368
+ 'redirect' => $intent->next_action->redirect_to_url->url,
369
+ ];
370
+ } else {
371
+ return [
372
+ 'result' => 'success',
373
+ 'redirect' => $this->get_return_url( $order ),
374
+ 'payment_method' => $intent_data['id'],
375
+ 'intent_secret' => $intent_data['client_secret'],
376
+ 'save_card' => false,
377
+ ];
378
+ }
379
+ }
380
+
381
+ if ( $intent->amount > 0 ) {
382
+ // Use the last charge within the intent to proceed.
383
+ $this->process_response( end( $intent->charges->data ), $order );
384
+ } else {
385
+ $order->payment_complete();
386
+ }
387
+
388
+ // Remove cart.
389
+ if ( isset( WC()->cart ) ) {
390
+ WC()->cart->empty_cart();
391
+ }
392
+
393
+ // Return thank you page redirect.
394
+ return [
395
+ 'result' => 'success',
396
+ 'redirect' => $this->get_return_url( $order ),
397
+ ];
398
+
399
+ } catch ( Exception $e ) {
400
+ wc_add_notice( $e->getMessage(), 'error' );
401
+
402
+ /* translators: error message */
403
+ $order->update_status( 'failed' );
404
+
405
+ return [
406
+ 'result' => 'fail',
407
+ 'redirect' => '',
408
+ ];
409
+ }
410
+ }
411
+
412
+ /**
413
+ * Process payment method functionality
414
+ *
415
+ * @return array
416
+ */
417
+ public function add_payment_method() {
418
+ $source_id = '';
419
+
420
+ if ( empty( $_POST['payment_method_created'] ) && empty( $_POST['stripe_token'] ) || ! is_user_logged_in() ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing
421
+ $error_msg = __( 'There was a problem adding the payment method.', 'checkout-plugins-stripe-woo' );
422
+ /* translators: error msg */
423
+ Logger::error( sprintf( __( 'Add payment method Error: $1%1s', 'checkout-plugins-stripe-woo' ), $error_msg ) );
424
+ return;
425
+ }
426
+
427
+ $customer_id = $this->get_customer_id();
428
+
429
+ $source = ! empty( $_POST['payment_method_created'] ) ? wc_clean( wp_unslash( $_POST['payment_method_created'] ) ) : ''; //phpcs:ignore WordPress.Security.NonceVerification.Missing
430
+ $response = $this->stripe_api->payment_methods( 'retrieve', [ $source ] );
431
+ $source_object = $response['success'] ? $response['data'] : false;
432
+
433
+ if ( isset( $source_object ) ) {
434
+ if ( ! empty( $source_object->error ) ) {
435
+ $error_msg = __( 'Invalid stripe source', 'checkout-plugins-stripe-woo' );
436
+ wc_add_notice( $error_msg, 'error' );
437
+ /* translators: error msg */
438
+ Logger::error( sprintf( __( 'Add payment method Error: $1%1s', 'checkout-plugins-stripe-woo' ), $error_msg ) );
439
+ return;
440
+ }
441
+
442
+ $source_id = $source_object->id;
443
+ }
444
+ $response = $this->stripe_api->payment_methods( 'attach', [ $source_id, [ 'customer' => $customer_id ] ] );
445
+ $response = $response['success'] ? $response['data'] : false;
446
+ $user = wp_get_current_user();
447
+ $user_id = ( $user->ID && $user->ID > 0 ) ? $user->ID : false;
448
+ $this->create_payment_token_for_user( $user_id, $source_object );
449
+
450
+ if ( ! $response || is_wp_error( $response ) || ! empty( $response->error ) ) {
451
+ $error_msg = __( 'Unble to attach payment method to customer', 'checkout-plugins-stripe-woo' );
452
+ wc_add_notice( $error_msg, 'error' );
453
+ /* translators: error msg */
454
+ Logger::error( sprintf( __( 'Add payment method Error: $1%1s', 'checkout-plugins-stripe-woo' ), $error_msg ) );
455
+ return;
456
+ }
457
+
458
+ do_action( 'cpsw_add_payment_method_' . ( isset( $_POST['payment_method'] ) ? wc_clean( wp_unslash( $_POST['payment_method'] ) ) : '' ) . '_success', $source_id, $source_object ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
459
+
460
+ return [
461
+ 'result' => 'success',
462
+ 'redirect' => wc_get_endpoint_url( 'payment-methods' ),
463
+ ];
464
+ }
465
+
466
+ /**
467
+ * Checks if using saved payment method or new card
468
+ *
469
+ * @return boolean
470
+ */
471
+ public function is_using_saved_payment_method() {
472
+ $payment_method = isset( $_POST['payment_method'] ) ? wc_clean( wp_unslash( $_POST['payment_method'] ) ) : $this->id; //phpcs:ignore WordPress.Security.NonceVerification.Missing
473
+ return ( isset( $_POST[ 'wc-' . $payment_method . '-payment-token' ] ) && 'new' !== $_POST[ 'wc-' . $payment_method . '-payment-token' ] ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
474
+ }
475
+
476
+ /**
477
+ * Process response for saved cards
478
+ *
479
+ * @param object $response intent response.
480
+ * @param object $order order response.
481
+ * @return array
482
+ */
483
+ public function process_response( $response, $order ) {
484
+ Logger::info( 'Processing: ' . $response->id );
485
+
486
+ $order_id = $order->get_id();
487
+ $captured = ( isset( $response->captured ) && $response->captured ) ? 'yes' : 'no';
488
+
489
+ // Store charge data.
490
+ $order->update_meta_data( '_cpsw_charge_captured', $captured );
491
+
492
+ if ( 'yes' === $captured ) {
493
+ /**
494
+ * Charge can be captured but in a pending state. Payment methods
495
+ * that are asynchronous may take couple days to clear. Webhook will
496
+ * take care of the status changes.
497
+ */
498
+ if ( 'pending' === $response->status ) {
499
+ $order_stock_reduced = $order->get_meta( '_order_stock_reduced', true );
500
+
501
+ if ( ! $order_stock_reduced ) {
502
+ wc_reduce_stock_levels( $order_id );
503
+ }
504
+
505
+ $order->set_transaction_id( $response->id );
506
+ /* translators: transaction id */
507
+ $order->update_status( 'on-hold', sprintf( __( 'Stripe charge awaiting payment: %s.', 'checkout-plugins-stripe-woo' ), $response->id ) );
508
+ }
509
+
510
+ if ( 'succeeded' === $response->status ) {
511
+ $order->payment_complete( $response->id );
512
+
513
+ /* translators: transaction id */
514
+ $message = sprintf( __( 'Stripe charge complete (Charge ID: %s)', 'checkout-plugins-stripe-woo' ), $response->id );
515
+ $order->add_order_note( $message );
516
+ }
517
+
518
+ if ( 'failed' === $response->status ) {
519
+ $localized_message = __( 'Payment processing failed. Please retry.', 'checkout-plugins-stripe-woo' );
520
+ $order->add_order_note( $localized_message );
521
+ }
522
+ } else {
523
+ $order->set_transaction_id( $response->id );
524
+
525
+ if ( $order->has_status( [ 'pending', 'failed' ] ) ) {
526
+ wc_reduce_stock_levels( $order_id );
527
+ }
528
+
529
+ /* translators: transaction id */
530
+ $order->update_status( 'on-hold', sprintf( __( 'Stripe charge authorized (Charge ID: %s). Process order to take payment, or cancel to remove the pre-authorization. Attempting to refund the order in part or in full will release the authorization and cancel the payment.', 'checkout-plugins-stripe-woo' ), $response->id ) );
531
+ }
532
+
533
+ if ( is_callable( [ $order, 'save' ] ) ) {
534
+ $order->save();
535
+ }
536
+
537
+ do_action( 'cpsw_process_response', $response, $order );
538
+
539
+ return $response;
540
+ }
541
+
542
+ /**
543
+ * Get token object for selected saved card payment
544
+ *
545
+ * @param array $request post request.
546
+ * @return object
547
+ */
548
+ public function get_token_from_request( array $request ) {
549
+ $payment_method = ! is_null( $request['payment_method'] ) ? $request['payment_method'] : null;
550
+ $token_request_key = 'wc-' . $payment_method . '-payment-token';
551
+ if (
552
+ ! isset( $request[ $token_request_key ] ) ||
553
+ 'new' === $request[ $token_request_key ]
554
+ ) {
555
+ return null;
556
+ }
557
+
558
+ //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash
559
+ $token = WC_Payment_Tokens::get( wc_clean( $request[ $token_request_key ] ) );
560
+
561
+ // If the token doesn't belong to this gateway or the current user it's invalid.
562
+ if ( ! $token || $payment_method !== $token->get_gateway_id() || $token->get_user_id() !== get_current_user_id() ) {
563
+ return null;
564
+ }
565
+
566
+ return $token;
567
+ }
568
+
569
+ /**
570
+ * Save payment method to meta of current order
571
+ *
572
+ * @param object $order current woocommerce order.
573
+ * @param object $payment_method payment method associated with current order.
574
+ * @return void
575
+ */
576
+ public function save_payment_method_to_order( $order, $payment_method ) {
577
+ if ( $payment_method->customer ) {
578
+ $order->update_meta_data( '_cpsw_customer_id', $payment_method->customer );
579
+ }
580
+
581
+ $order->update_meta_data( '_cpsw_source_id', $payment_method->source );
582
+
583
+ if ( is_callable( [ $order, 'save' ] ) ) {
584
+ $order->save();
585
+ }
586
+
587
+ $this->maybe_update_source_on_subscription_order( $order, $payment_method );
588
+ }
589
+
590
+ /**
591
+ * Prepare payment method object
592
+ *
593
+ * @param object $payment_method payment method object from intent.
594
+ * @param object $token token object used for payment.
595
+ * @return object
596
+ */
597
+ public function prepare_payment_method( $payment_method, $token ) {
598
+ return (object) [
599
+ 'token_id' => $token->get_id(),
600
+ 'customer' => $payment_method->customer,
601
+ 'source' => $payment_method->id,
602
+ 'source_object' => $payment_method,
603
+ 'payment_method' => $payment_method->id,
604
+ 'payment_method_object' => $payment_method,
605
+ ];
606
+ }
607
+
608
+ /**
609
+ * Checks if payment intent available for current order or else creates new payment intent.
610
+ *
611
+ * @param int $order_id woocommerce order id.
612
+ * @param string $payment_method cc payment method id.
613
+ * @param string $customer_id customer id.
614
+ * @param string $idempotency_key unique idempotency key.
615
+ * @param array $args payment_intent arguments.
616
+ * @return array intent data.
617
+ */
618
+ public function get_payment_intent( $order_id, $payment_method, $customer_id, $idempotency_key, $args ) {
619
+ $intent_secret = get_post_meta( $order_id, '_cpsw_intent_secret', true );
620
+ $client_secret = '';
621
+
622
+ if ( ! empty( $intent_secret ) ) {
623
+ $secret = $intent_secret;
624
+ $response = $this->stripe_api->payment_intents( 'retrieve', [ $secret['id'] ] );
625
+ if ( $response['success'] && 'success' === $response['data']->status ) {
626
+ wc_add_notice( __( 'An error has occurred internally, due to which you are not redirected to the order received page.', 'checkout-plugins-stripe-woo' ), $notice_type = 'error' );
627
+ wp_safe_redirect( wc_get_checkout_url() );
628
+ }
629
+ }
630
+
631
+ $args = [
632
+ [ $args ],
633
+ [ 'idempotency_key' => $idempotency_key ],
634
+ ];
635
+
636
+ $response = $this->stripe_api->payment_intents( 'create', $args );
637
+
638
+ if ( $response['success'] ) {
639
+ $intent = $response['data'];
640
+ } else {
641
+ wc_add_notice( $response['message'], 'error' );
642
+ return false;
643
+ }
644
+
645
+ $intent_data = [
646
+ 'id' => $intent->id,
647
+ 'client_secret' => $intent->client_secret,
648
+ ];
649
+ update_post_meta( $order_id, '_cpsw_intent_secret', $intent_data, );
650
+ $client_secret = $intent->client_secret;
651
+
652
+ return [
653
+ 'payment_method' => $payment_method,
654
+ 'client_secret' => $client_secret,
655
+ ];
656
+ }
657
+
658
+ /**
659
+ * Verify intent state and redirect.
660
+ *
661
+ * @return void
662
+ */
663
+ public function verify_intent() {
664
+ $order_id = isset( $_GET['order'] ) ? sanitize_text_field( $_GET['order'] ) : 0; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
665
+ $redirect = isset( $_GET['redirect_to'] ) ? esc_url_raw( wp_unslash( $_GET['redirect_to'] ) ) : ''; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
666
+ $order = wc_get_order( $order_id );
667
+
668
+ $intent_secret = get_post_meta( $order_id, '_cpsw_intent_secret', true );
669
+ $response = $this->stripe_api->payment_intents( 'retrieve', [ $intent_secret['id'] ] );
670
+ $intent = $response['success'] ? $response['data'] : false;
671
+
672
+ if ( 'succeeded' === $intent->status || 'requires_capture' === $intent->status ) {
673
+ if ( ( isset( $_GET['save_card'] ) && '1' === $_GET['save_card'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
674
+ $user = $order->get_id() ? $order->get_user() : wp_get_current_user();
675
+ $user_id = $user->ID;
676
+ $payment_method = $intent->payment_method;
677
+ $response = $this->stripe_api->payment_methods( 'retrieve', [ $payment_method ] );
678
+ $payment_method = $response['success'] ? $response['data'] : false;
679
+ $token = $this->create_payment_token_for_user( $user_id, $payment_method );
680
+ /* translators: %1$1s order id, %2$2s token id */
681
+ Logger::info( sprintf( __( 'Payment method tokenized for Order id - %1$1s with token id - %2$2s', 'checkout-plugins-stripe-woo' ), $order_id, $token->get_id() ) );
682
+ $prepared_payment_method = $this->prepare_payment_method( $payment_method, $token );
683
+ $this->save_payment_method_to_order( $order, $prepared_payment_method );
684
+
685
+ }
686
+ $redirect_to = $this->process_order( end( $intent->charges->data ), $order_id );
687
+ $redirect_url = apply_filters( 'cpsw_redirect_order_url', ! empty( $redirect ) ? $redirect : $redirect_to, $order );
688
+ wp_safe_redirect( $redirect_url );
689
+ }
690
+ exit();
691
+ }
692
+
693
+ /**
694
+ * Tokenize card payment
695
+ *
696
+ * @param int $user_id id of current user placing .
697
+ * @param object $payment_method payment method object.
698
+ * @return object token object.
699
+ */
700
+ public function create_payment_token_for_user( $user_id, $payment_method ) {
701
+ $token = new WC_Payment_Token_CC();
702
+ $token->set_expiry_month( $payment_method->card->exp_month );
703
+ $token->set_expiry_year( $payment_method->card->exp_year );
704
+ $token->set_card_type( strtolower( $payment_method->card->brand ) );
705
+ $token->set_last4( $payment_method->card->last4 );
706
+ $token->set_gateway_id( $this->id );
707
+ $token->set_token( $payment_method->id );
708
+ $token->set_user_id( $user_id );
709
+ $token->save();
710
+
711
+ return $token;
712
+ }
713
+
714
+ /**
715
+ * Checks whether saved card settings is enabled ord not.
716
+ *
717
+ * @return bool
718
+ */
719
+ public function enable_saved_cards() {
720
+ return ( $this->supports( 'tokenization' ) && 'yes' === $this->enable_saved_cards && is_user_logged_in() ) ? true : false;
721
+ }
722
+
723
+ /**
724
+ * Clean/Trim statement descriptor as per stripe requirement.
725
+ *
726
+ * @param string $statement_descriptor User Input.
727
+ * @return string optimized statement descriptor.
728
+ */
729
+ public function clean_statement_descriptor( $statement_descriptor = '' ) {
730
+ $disallowed_characters = [ '<', '>', '\\', '*', '"', "'", '/', '(', ')', '{', '}' ];
731
+
732
+ // Strip any tags.
733
+ $statement_descriptor = wp_strip_all_tags( $statement_descriptor );
734
+
735
+ // Strip any HTML entities.
736
+ // Props https://stackoverflow.com/questions/657643/how-to-remove-html-special-chars .
737
+ $statement_descriptor = preg_replace( '/&#?[a-z0-9]{2,8};/i', '', $statement_descriptor );
738
+
739
+ // Next, remove any remaining disallowed characters.
740
+ $statement_descriptor = str_replace( $disallowed_characters, '', $statement_descriptor );
741
+
742
+ // Trim any whitespace at the ends and limit to 22 characters.
743
+ $statement_descriptor = substr( trim( $statement_descriptor ), 0, 22 );
744
+
745
+ return $statement_descriptor;
746
+ }
747
+
748
+ /**
749
+ * Process order after stripe payment
750
+ *
751
+ * @param object $response intent response data.
752
+ * @param string $order_id currnt coocommerce id.
753
+ * @return array return data.
754
+ */
755
+ public function process_order( $response, $order_id ) {
756
+
757
+ $order = wc_get_order( $order_id );
758
+
759
+ if ( true === $response->captured ) {
760
+ $order->payment_complete( $response->id );
761
+ /* translators: order id */
762
+ Logger::info( sprintf( __( 'Payment successful Order id - %1s', 'checkout-plugins-stripe-woo' ), $order->get_id() ), true );
763
+ }
764
+ if ( ! $response->captured ) {
765
+ /* translators: transaction id */
766
+ $order->update_status( 'on-hold', sprintf( __( 'Charge authorized (Charge ID: %s). Process order to take payment, or cancel to remove the pre-authorization. Attempting to refund the order in part or in full will release the authorization and cancel the payment.', 'checkout-plugins-stripe-woo' ), $response->id ) );
767
+ /* translators: transaction id */
768
+ Logger::info( sprintf( __( 'Charge authorized Order id - %1s', 'checkout-plugins-stripe-woo' ), $order->get_id() ), true );
769
+ }
770
+
771
+ $order->add_order_note( __( 'Payment Status : ', 'checkout-plugins-stripe-woo' ) . ucfirst( $response->status ) . __( ' Source : ', 'checkout-plugins-stripe-woo' ) . $response->payment_method_details->card->brand );
772
+ WC()->cart->empty_cart();
773
+
774
+ return [
775
+ 'result' => 'success',
776
+ 'redirect' => $this->get_return_url( $order ),
777
+ ];
778
+ }
779
+
780
+ /**
781
+ * Modify redirect url
782
+ *
783
+ * @param array $result redirect url array.
784
+ * @param int $order_id woocommerce order id.
785
+ * @return array modified redirect url array.
786
+ */
787
+ public function modify_successful_payment_result( $result, $order_id ) {
788
+ if ( ! isset( $result['intent_secret'] ) ) {
789
+ return $result;
790
+ }
791
+
792
+ // Put the final thank you page redirect into the verification URL.
793
+ $verification_url = add_query_arg(
794
+ [
795
+ 'order' => $order_id,
796
+ 'confirm_payment_nonce' => wp_create_nonce( 'cpsw_confirm_payment_intent' ),
797
+ 'redirect_to' => rawurlencode( $result['redirect'] ),
798
+ 'save_card' => $result['save_card'],
799
+ ],
800
+ WC_AJAX::get_endpoint( 'cpsw_verify_payment_intent' )
801
+ );
802
+
803
+ // Combine into a hash.
804
+ $redirect = sprintf( '#confirm-pi-%s:%s', $result['intent_secret'], rawurlencode( $verification_url ) );
805
+
806
+ return [
807
+ 'result' => 'success',
808
+ 'redirect' => $redirect,
809
+ ];
810
+ }
811
+
812
+ /**
813
+ * Creates stripe customer object
814
+ *
815
+ * @param object $order woocommerce order object.
816
+ * @param boolean|string $user_email user email id.
817
+ * @return Stripe::Customer
818
+ */
819
+ public function create_stripe_customer( $order = false, $user_email = false ) {
820
+ $args = [
821
+ 'email' => $user_email,
822
+ ];
823
+ if ( $order ) {
824
+ $args = [
825
+ 'description' => 'Customer for Order #' . $order->get_id(),
826
+ 'email' => $user_email ? $user_email : $order->get_billing_email(),
827
+ 'address' => [ // sending name and billing address to stripe to support indian exports.
828
+ 'city' => method_exists( $order, 'get_billing_city' ) ? $order->get_billing_city() : $order->billing_city,
829
+ 'country' => method_exists( $order, 'get_billing_country' ) ? $order->get_billing_country() : $order->billing_country,
830
+ 'line1' => method_exists( $order, 'get_billing_address_1' ) ? $order->get_billing_address_1() : $order->billing_address_1,
831
+ 'line2' => method_exists( $order, 'get_billing_address_2' ) ? $order->get_billing_address_2() : $order->billing_address_2,
832
+ 'postal_code' => method_exists( $order, 'get_billing_postcode' ) ? $order->get_billing_postcode() : $order->billing_postcode,
833
+ 'state' => method_exists( $order, 'get_billing_state' ) ? $order->get_billing_state() : $order->billing_state,
834
+ ],
835
+ 'name' => ( method_exists( $order, 'get_billing_first_name' ) ? $order->get_billing_first_name() : $order->billing_first_name ) . ( method_exists( $order, 'get_billing_last_name' ) ? $order->get_billing_last_name() : $order->billing_last_name ),
836
+ ];
837
+ }
838
+
839
+ $response = $this->stripe_api->customers( 'create', [ $args ] );
840
+ $response = $response['success'] ? $response['data'] : false;
841
+
842
+ if ( empty( $response->id ) ) {
843
+ return false;
844
+ }
845
+
846
+ return $response;
847
+ }
848
+
849
+ /**
850
+ * Refunds amount from stripe and return true/false as result
851
+ *
852
+ * @param string $order_id order id.
853
+ * @param string $amount refund amount.
854
+ * @param string $reason reason of refund.
855
+ * @return bool
856
+ */
857
+ public function process_refund( $order_id, $amount = null, $reason = '' ) {
858
+ $client = $this->get_clients_details();
859
+
860
+ if ( 0 >= $amount ) {
861
+ return false;
862
+ }
863
+
864
+ try {
865
+ $intent_secret = get_post_meta( $order_id, '_cpsw_intent_secret', true );
866
+ $response = $this->stripe_api->payment_intents( 'retrieve', [ $intent_secret['id'] ] );
867
+ $status = $response['success'] ? $response['data']->charges->data[0]->captured : false;
868
+
869
+ if ( ! $status ) {
870
+ Logger::error( __( 'Uncaptured Amount cannot be refunded', 'checkout-plugins-stripe-woo' ), true );
871
+ return new WP_Error( 'error', __( 'Uncaptured Amount cannot be refunded', 'checkout-plugins-stripe-woo' ) );
872
+ }
873
+
874
+ $intent_response = $response['data'];
875
+ $order = wc_get_order( $order_id );
876
+ $currency = $intent_response->currency;
877
+
878
+ $refund_params = [
879
+ 'payment_intent' => $intent_secret['id'],
880
+ 'amount' => $this->get_formatted_amount( $amount, $currency ),
881
+ 'reason' => 'requested_by_customer',
882
+ 'metadata' => [
883
+ 'order_id' => $order->get_order_number(),
884
+ 'Customer IP' => $client['IP'],
885
+ 'Agent' => $client['Agent'],
886
+ 'Referer' => $client['Referer'],
887
+ 'Reason for Refund' => $reason,
888
+ ],
889
+ ];
890
+
891
+ $response = $this->stripe_api->refunds( 'create', [ $refund_params ] );
892
+ $refund_response = $response['success'] ? $response['data'] : false;
893
+
894
+ if ( $refund_response ) {
895
+ $refund_time = gmdate( 'Y-m-d H:i:s', time() );
896
+ $order->add_order_note( __( 'Reason : ', 'checkout-plugins-stripe-woo' ) . $reason . '.<br>' . __( 'Amount : ', 'checkout-plugins-stripe-woo' ) . get_woocommerce_currency_symbol() . $amount . '.<br>' . __( 'Status : ', 'checkout-plugins-stripe-woo' ) . ( ( 'succeeded' === $refund_response->status ) ? 'Success' : 'Failed' ) . ' [ ' . $refund_time . ' ] ' . ( is_null( $refund_response->id ) ? '' : '<br>' . __( 'Transaction ID : ', 'checkout-plugins-stripe-woo' ) . $refund_response->id ) );
897
+ Logger::info( __( 'Refund initiated: ', 'checkout-plugins-stripe-woo' ) . __( 'Reason : ', 'checkout-plugins-stripe-woo' ) . $reason . __( 'Amount : ', 'checkout-plugins-stripe-woo' ) . get_woocommerce_currency_symbol() . $amount . __( 'Status : ', 'checkout-plugins-stripe-woo' ) . ( ( 'succeeded' === $refund_response->status ) ? 'Success' : 'Failed' ) . ' [ ' . $refund_time . ' ] ' . ( is_null( $refund_response->id ) ? '' : __( 'Transaction ID : ', 'checkout-plugins-stripe-woo' ) . $refund_response->id ), true );
898
+ return true;
899
+ } else {
900
+ $order->add_order_note( __( 'Reason : ', 'checkout-plugins-stripe-woo' ) . $reason . '.<br>' . __( 'Amount : ', 'checkout-plugins-stripe-woo' ) . get_woocommerce_currency_symbol() . $amount . '.<br>' . __( ' Status : Failed ', 'checkout-plugins-stripe-woo' ) );
901
+ Logger::error( $refund_response->message, true );
902
+ return new WP_Error( 'error', $refund_response->message );
903
+ }
904
+ } catch ( Exception $e ) {
905
+ Logger::error( $e->getMessage(), true );
906
+ }
907
+ }
908
+
909
+ /**
910
+ * Get stripe activated payment cards icon.
911
+ */
912
+ public function get_icon() {
913
+ $ext = version_compare( WC()->version, '2.6', '>=' ) ? '.svg' : '.png';
914
+ $style = version_compare( WC()->version, '2.6', '>=' ) ? 'style="margin-left: 0.3em"' : '';
915
+ $icon = '';
916
+
917
+ if ( ( in_array( 'visa', $this->allowed_cards, true ) ) || ( in_array( 'Visa', $this->allowed_cards, true ) ) ) {
918
+ $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/visa' . $ext ) . '" alt="Visa" width="32" title="VISA" ' . $style . ' />';
919
+ }
920
+ if ( ( in_array( 'mastercard', $this->allowed_cards, true ) ) || ( in_array( 'MasterCard', $this->allowed_cards, true ) ) ) {
921
+ $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/mastercard' . $ext ) . '" alt="Mastercard" width="32" title="Master Card" ' . $style . ' />';
922
+ }
923
+ if ( ( in_array( 'amex', $this->allowed_cards, true ) ) || ( in_array( 'American Express', $this->allowed_cards, true ) ) ) {
924
+ $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/amex' . $ext ) . '" alt="Amex" width="32" title="American Express" ' . $style . ' />';
925
+ }
926
+ if ( 'USD' === get_woocommerce_currency() ) {
927
+ if ( ( in_array( 'discover', $this->allowed_cards, true ) ) || ( in_array( 'Discover', $this->allowed_cards, true ) ) ) {
928
+ $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/discover' . $ext ) . '" alt="Discover" width="32" title="Discover" ' . $style . ' />';
929
+ }
930
+ if ( ( in_array( 'jcb', $this->allowed_cards, true ) ) || ( in_array( 'JCB', $this->allowed_cards, true ) ) ) {
931
+ $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/jcb' . $ext ) . '" alt="JCB" width="32" title="JCB" ' . $style . ' />';
932
+ }
933
+ if ( ( in_array( 'diners', $this->allowed_cards, true ) ) || ( in_array( 'Diners Club', $this->allowed_cards, true ) ) ) {
934
+ $icon .= '<img src="' . WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/icons/credit-cards/diners' . $ext ) . '" alt="Diners" width="32" title="Diners Club" ' . $style . ' />';
935
+ }
936
+ }
937
+ return apply_filters( 'woocommerce_gateway_icon', $icon, $this->id );
938
+ }
939
+
940
+
941
+ /**
942
+ * Returns amount as per currency type
943
+ *
944
+ * @param string $total amount to be processed.
945
+ * @param string $currency transaction currency.
946
+ * @return int
947
+ */
948
+ public function get_formatted_amount( $total, $currency = '' ) {
949
+ if ( ! $currency ) {
950
+ $currency = get_woocommerce_currency();
951
+ }
952
+
953
+ if ( in_array( strtoupper( $currency ), self::$zero_currencies, true ) ) {
954
+ // Zero decimal currencies accepted by stripe.
955
+ $total = absint( $total );
956
+ } else {
957
+ $total = round( $total, 2 ) * 100;
958
+ }
959
+ return $total;
960
+ }
961
+
962
+ /**
963
+ * Basic details of logged in user
964
+ *
965
+ * @return array current user data.
966
+ */
967
+ public function get_clients_details() {
968
+ return [
969
+ 'IP' => isset( $_SERVER['REMOTE_ADDR'] ) ? sanitize_text_field( $_SERVER['REMOTE_ADDR'] ) : '',
970
+ 'Agent' => isset( $_SERVER['HTTP_USER_AGENT'] ) ? sanitize_text_field( $_SERVER['HTTP_USER_AGENT'] ) : '',
971
+ 'Referer' => isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_text_field( $_SERVER['HTTP_REFERER'] ) : '',
972
+ ];
973
+ }
974
+
975
+ /**
976
+ * Creates markup for payment form for card payments
977
+ *
978
+ * @return void
979
+ */
980
+ public function payment_fields() {
981
+ if ( 'live' === Helper::get_payment_mode() && ! is_ssl() ) {
982
+ /* translators: %1$1s, %2$2s: HTML Markup */
983
+ echo '<span class="cpsw-stripe-error">' . sprintf( esc_html__( 'Live Stripe.js integrations must use HTTPS. %1$1s For more information:%2$2s', 'checkout-plugins-stripe-woo' ), '<br/><a href="https://stripe.com/docs/security/guide#tls" target="_blank" rel="noopener">', '</a>' ) . '</span></span>';
984
+ return;
985
+ }
986
+ $display_tokenization = $this->supports( 'tokenization' ) && is_checkout();
987
+ echo '<div class="status-box"></div>';
988
+ echo '<div class="cpsw-stipe-pay-data">';
989
+ echo '<div class="cpsw-stripe-info">';
990
+ if ( 'live' !== Helper::get_payment_mode() ) {
991
+ /* translators: %1$1s - %6$6s: HTML Markup */
992
+ printf( esc_html__( '%1$1s Test Mode Enabled %2$2s : Use demo card 4242424242424242 with any future date and CVV. %3$3s Check more %4$4sDemo Cards%5$5s %6$6s', 'checkout-plugins-stripe-woo' ), '<b>', '</b>', '</br>', "<a href='https://stripe.com/docs/testing' referrer='noopener' target='_blank'>", '</a>', '</br></br>' );
993
+ } else {
994
+ echo wp_kses_post( wpautop( $this->description ) );
995
+ }
996
+ echo '</div>';
997
+ if ( $display_tokenization ) {
998
+ $this->tokenization_script();
999
+ $this->saved_payment_methods();
1000
+ }
1001
+ echo '<div class="cpsw-stripe-elements-form">';
1002
+ if ( 'yes' === $this->inline_cc ) {
1003
+ ?>
1004
+ <span class="cpsw-cc"></span>
1005
+ <span class="cpsw-stripe-error"></span>
1006
+ <?php
1007
+ }
1008
+ if ( 'no' === $this->inline_cc ) {
1009
+ ?>
1010
+ <strong><?php esc_html_e( 'Enter Card Details', 'checkout-plugins-stripe-woo' ); ?>:</strong>
1011
+ <span class="cpsw-number"></span><span class="cpsw-number-error"></span><br/>
1012
+ <span style="width:55%;display:inline-block;vertical-align:top;">
1013
+ <strong><?php esc_html_e( 'Expiry Date', 'checkout-plugins-stripe-woo' ); ?></strong>
1014
+ <span class="cpsw-expiry"></span><span class="cpsw-expiry-error"></span>
1015
+ </span>
1016
+ <span style="width:40%;display:inline-block;vertical-align:top;">
1017
+ <strong><?php esc_html_e( 'CVC', 'checkout-plugins-stripe-woo' ); ?></strong>
1018
+ <span class="cpsw-cvc"></span><span class="cpsw-cvc-error"></span>
1019
+ </span>
1020
+ <?php
1021
+ }
1022
+ echo ( apply_filters( 'cpsw_display_save_payment_method_checkbox', $display_tokenization ) && $this->enable_saved_cards() ) ? '<span class="cpsw-save-cards"><label><input type="checkbox" name="enable_saved_card" value="on"/>' . wp_kses_post( apply_filters( 'cpsw_saved_cards_label', __( 'Save Card for Future Payments', 'checkout-plugins-stripe-woo' ) ) ) . '</label></span>' : '';
1023
+ do_action( 'cpsw_payment_fields_cpsw_stripe', $this->id );
1024
+ echo '</div>';
1025
+ echo '</div>';
1026
+ }
1027
+
1028
+ /**
1029
+ * Get/Retrieve stripe customer id if exists
1030
+ *
1031
+ * @param mixed $order current woocommerce order.
1032
+ * @return mixed customer id
1033
+ */
1034
+ public function get_customer_id( $order = false ) {
1035
+ $user = wp_get_current_user();
1036
+ $user_id = ( $user->ID && $user->ID > 0 ) ? $user->ID : false;
1037
+ $customer_id = false;
1038
+ if ( $user_id ) {
1039
+ $customer_id = get_user_option( '_cpsw_customer_id', $user_id );
1040
+ if ( $customer_id ) {
1041
+ return $customer_id;
1042
+ }
1043
+ }
1044
+
1045
+ $customer = false;
1046
+ if ( ! $customer_id ) {
1047
+ $customer = $this->create_stripe_customer( $order, $user->email );
1048
+ }
1049
+
1050
+ if ( $customer ) {
1051
+ if ( $user_id ) {
1052
+ update_user_option( $user_id, '_cpsw_customer_id', $customer->id, false );
1053
+ }
1054
+ return $customer->id;
1055
+ }
1056
+ }
1057
+ }
1058
+
gateway/stripe/frontend-scripts.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Stripe Frontend Scripts
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ * @since 0.0.1
7
+ */
8
+
9
+ namespace CPSW\Gateway\Stripe;
10
+
11
+ use CPSW\Inc\Traits\Get_Instance;
12
+ use CPSW\Inc\Helper;
13
+
14
+ /**
15
+ * Consists frontend scripts for payment gateways
16
+ */
17
+ class Frontend_Scripts {
18
+
19
+ use Get_Instance;
20
+
21
+ /**
22
+ * Prefix
23
+ *
24
+ * @var string
25
+ */
26
+ private $prefix = 'cpsw-';
27
+
28
+ /**
29
+ * Url of assets directory
30
+ *
31
+ * @var string
32
+ */
33
+ private $assets_url = CPSW_URL . 'assets/';
34
+
35
+ /**
36
+ * Constructor
37
+ */
38
+ public function __construct() {
39
+ add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
40
+ }
41
+
42
+ /**
43
+ * Enqueue scripts
44
+ *
45
+ * @return void
46
+ */
47
+ public function enqueue_scripts() {
48
+
49
+ $public_key = ( 'live' === Helper::get_payment_mode() ) ? Helper::get_setting( 'cpsw_pub_key' ) : Helper::get_setting( 'cpsw_test_pub_key' );
50
+ wp_enqueue_script( $this->prefix . 'stripe-external', 'https://js.stripe.com/v3/', [], CPSW_VERSION, true );
51
+ wp_enqueue_script( $this->prefix . 'stripe-elements', $this->assets_url . 'js/stripe-elements.js', [ 'jquery', $this->prefix . 'stripe-external' ], CPSW_VERSION, true );
52
+ wp_enqueue_style( $this->prefix . 'stripe-elements', $this->assets_url . 'css/stripe-elements.css', [], CPSW_VERSION );
53
+ wp_localize_script(
54
+ $this->prefix . 'stripe-elements',
55
+ 'cpsw_global_settings',
56
+ [
57
+ 'public_key' => $public_key,
58
+ 'inline_cc' => Helper::get_setting( 'inline_cc', 'cpsw_stripe' ),
59
+ 'is_ssl' => is_ssl(),
60
+ 'mode' => Helper::get_payment_mode(),
61
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
62
+ 'js_nonce' => wp_create_nonce( 'cpsw_js_error_nonce' ),
63
+ 'allowed_cards' => Helper::get_setting( 'allowed_cards', 'cpsw_stripe' ),
64
+ 'default_cards' => [
65
+ 'mastercard' => __( 'MasterCard', 'checkout-plugins-stripe-woo' ),
66
+ 'visa' => __( 'Visa', 'checkout-plugins-stripe-woo' ),
67
+ 'amex' => __( 'American Express', 'checkout-plugins-stripe-woo' ),
68
+ 'discover' => __( 'Discover', 'checkout-plugins-stripe-woo' ),
69
+ 'jcb' => __( 'JCB', 'checkout-plugins-stripe-woo' ),
70
+ 'diners' => __( 'Diners Club', 'checkout-plugins-stripe-woo' ),
71
+ 'unionpay' => __( 'UnionPay', 'checkout-plugins-stripe-woo' ),
72
+ ],
73
+ 'not_allowed_string' => __( 'is not allowed', 'checkout-plugins-stripe-woo' ),
74
+ ]
75
+ );
76
+ }
77
+ }
gateway/stripe/stripe-api.php ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Stripe Api Wrapper
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ * @since 0.0.1
7
+ */
8
+
9
+ namespace CPSW\Gateway\Stripe;
10
+
11
+ use CPSW\Inc\Traits\Get_Instance;
12
+ use CPSW\Inc\Logger;
13
+ use CPSW\Inc\Helper;
14
+ use \Stripe\StripeClient;
15
+
16
+ /**
17
+ * Stripe Api Class
18
+ */
19
+ class Stripe_Api {
20
+
21
+ use Get_Instance;
22
+
23
+ /**
24
+ * Instance of Stripe
25
+ *
26
+ * @var \Stripe\StripeClient
27
+ */
28
+ public $stripe;
29
+
30
+ /**
31
+ * Constructor
32
+ *
33
+ * @since 0.0.1
34
+ */
35
+ public function __construct() {
36
+ $secret_key = ( 'live' === Helper::get_payment_mode() ) ? Helper::get_setting( 'cpsw_secret_key' ) : Helper::get_setting( 'cpsw_test_secret_key' );
37
+ if ( ! empty( $secret_key ) ) {
38
+ $this->stripe = new StripeClient(
39
+ [
40
+ 'api_key' => $secret_key,
41
+ 'stripe_version' => '2020-08-27',
42
+ ]
43
+ );
44
+ }
45
+ }
46
+
47
+ /**
48
+ * Executes all stripe calls
49
+ *
50
+ * @param string $api Api.
51
+ * @param string $method name of method.
52
+ * @param array $args arguments.
53
+ * @return array
54
+ */
55
+ private function execute( $api, $method, $args ) {
56
+ $error_message = false;
57
+ try {
58
+ $response = $this->stripe->{$api}->{$method}( ...$args );
59
+ } catch ( \Stripe\Exception\CardException $e ) {
60
+ Logger::error( $e->getError()->message, true );
61
+ $error_message = $e->getError()->message;
62
+ } catch ( \Stripe\Exception\RateLimitException $e ) {
63
+ // Too many requests made to the API too quickly.
64
+ Logger::error( $e->getError()->message, true );
65
+ $error_message = $e->getError()->message;
66
+ } catch ( \Stripe\Exception\InvalidRequestException $e ) {
67
+ // Invalid parameters were supplied to Stripe's API.
68
+ Logger::error( $e->getError()->message, true );
69
+ $error_message = $e->getError()->message;
70
+ } catch ( \Stripe\Exception\AuthenticationException $e ) {
71
+ // Authentication with Stripe's API failed.
72
+ // (maybe you changed API keys recently).
73
+ Logger::error( $e->getError()->message, true );
74
+ $error_message = $e->getError()->message;
75
+ } catch ( \Stripe\Exception\ApiConnectionException $e ) {
76
+ // Network communication with Stripe failed.
77
+ Logger::error( $e->getError()->message, true );
78
+ $error_message = $e->getError()->message;
79
+ } catch ( \Stripe\Exception\ApiErrorException $e ) {
80
+ Logger::error( $e->getError()->message, true );
81
+ $error_message = $e->getError()->message;
82
+ // Display a very generic error to the user, and maybe send.
83
+ // yourself an email.
84
+ } catch ( Exception $e ) {
85
+ // Something else happened, completely unrelated to Stripe.
86
+ Logger::error( $e->getError()->message, true );
87
+ $error_message = $e->getError()->message;
88
+ }
89
+
90
+ if ( is_wp_error( $response ) ) {
91
+ $error_message = $response->get_error_message();
92
+ }
93
+
94
+ if ( ! $error_message ) {
95
+ return [
96
+ 'success' => true,
97
+ 'data' => $response,
98
+ 'message' => '',
99
+ ];
100
+ } else {
101
+ return [
102
+ 'success' => false,
103
+ 'message' => $error_message,
104
+ ];
105
+ }
106
+ }
107
+
108
+ /**
109
+ * Stripe wrapper for paymentIntents Api
110
+ *
111
+ * @param string $method method to be used.
112
+ * @param array $args parameter.
113
+ * @return array
114
+ */
115
+ public function payment_intents( $method, $args ) {
116
+ return $this->execute( 'paymentIntents', $method, $args );
117
+ }
118
+
119
+ /**
120
+ * Stripe wrapper for paymentMethods Api
121
+ *
122
+ * @param string $method method to be used.
123
+ * @param array $args parameter.
124
+ * @return array
125
+ */
126
+ public function payment_methods( $method, $args ) {
127
+ return $this->execute( 'paymentMethods', $method, $args );
128
+ }
129
+
130
+ /**
131
+ * Executes stripe customers query
132
+ *
133
+ * @param string $method method to be used.
134
+ * @param array $args parameter.
135
+ * @return array
136
+ */
137
+ public function customers( $method, $args ) {
138
+ return $this->execute( 'customers', $method, $args );
139
+ }
140
+
141
+ /**
142
+ * Executes Stripe refunds query
143
+ *
144
+ * @param string $method method to be used.
145
+ * @param array $args parameter.
146
+ * @return array
147
+ */
148
+ public function refunds( $method, $args ) {
149
+ return $this->execute( 'refunds', $method, $args );
150
+ }
151
+
152
+ /**
153
+ * Executes Stripe setupIntents query
154
+ *
155
+ * @param string $method method to be used.
156
+ * @param array $args parameter.
157
+ * @return array
158
+ */
159
+ public function setup_intents( $method, $args ) {
160
+ return $this->execute( 'setupIntents', $method, $args );
161
+ }
162
+
163
+ /**
164
+ * Executes Stripe accounts query
165
+ *
166
+ * @param string $method method to be used.
167
+ * @param array $args parameter.
168
+ * @return array
169
+ */
170
+ public function accounts( $method, $args ) {
171
+ return $this->execute( 'accounts', $method, $args );
172
+ }
173
+ }
gateway/stripe/webhook.php ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Stripe Webhook Class
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ * @since 0.0.1
7
+ */
8
+
9
+ namespace CPSW\Gateway\Stripe;
10
+
11
+ use CPSW\Inc\Traits\Get_Instance;
12
+ use CPSW\Inc\Helper;
13
+ use CPSW\Inc\Logger;
14
+ use DateTime;
15
+
16
+ /**
17
+ * Webhook endpoints
18
+ */
19
+ class Webhook {
20
+
21
+ const CPSW_LIVE_BEGAN_AT = 'cpsw_live_webhook_began_at';
22
+ const CPSW_LIVE_LAST_SUCCESS_AT = 'cpsw_live_webhook_last_success_at';
23
+ const CPSW_LIVE_LAST_FAILURE_AT = 'cpsw_live_webhook_last_failure_at';
24
+ const CPSW_LIVE_LAST_ERROR = 'cpsw_live_webhook_last_error';
25
+
26
+ const CPSW_TEST_BEGAN_AT = 'cpsw_test_webhook_began_at';
27
+ const CPSW_TEST_LAST_SUCCESS_AT = 'cpsw_test_webhook_last_success_at';
28
+ const CPSW_TEST_LAST_FAILURE_AT = 'cpsw_test_webhook_last_failure_at';
29
+ const CPSW_TEST_LAST_ERROR = 'cpsw_test_webhook_last_error';
30
+
31
+ /**
32
+ * Zero currencies accepted by stripe.
33
+ *
34
+ * @var array
35
+ */
36
+ private static $zero_currencies = [ 'BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VUV', 'XAF', 'XOF', 'XPF', 'VND' ];
37
+
38
+ use Get_Instance;
39
+
40
+ /**
41
+ * Constructor function
42
+ */
43
+ public function __construct() {
44
+ add_action( 'rest_api_init', [ $this, 'register_endpoints' ] );
45
+ }
46
+
47
+ /**
48
+ * Returns message about interaction with stripe webhook
49
+ *
50
+ * @param mixed $mode mode of operation.
51
+ * @return string
52
+ */
53
+ public static function get_webhook_interaction_message( $mode = false ) {
54
+ if ( ! $mode ) {
55
+ $mode = Helper::get_payment_mode();
56
+ }
57
+ $last_success = constant( 'self::CPSW_' . strtoupper( $mode ) . '_LAST_SUCCESS_AT' );
58
+ $last_success_at = get_option( $last_success );
59
+
60
+ $last_failure = constant( 'self::CPSW_' . strtoupper( $mode ) . '_LAST_FAILURE_AT' );
61
+ $last_failure_at = get_option( $last_failure );
62
+
63
+ $began = constant( 'self::CPSW_' . strtoupper( $mode ) . '_BEGAN_AT' );
64
+ $began_at = get_option( $began );
65
+
66
+ $status = 'none';
67
+
68
+ if ( $last_success_at && $last_failure_at ) {
69
+ $status = ( $last_success_at >= $last_failure_at ) ? 'success' : 'failure';
70
+ } elseif ( $last_success_at ) {
71
+ $status = 'success';
72
+ } elseif ( $last_failure_at ) {
73
+ $status = 'failure';
74
+ } elseif ( $began_at ) {
75
+ $status = 'began';
76
+ }
77
+
78
+ switch ( $status ) {
79
+ case 'success':
80
+ /* translators: time, status */
81
+ return sprintf( __( 'Last webhook call was %1$1s. Status : %2$2s', 'checkout-plugins-stripe-woo' ), self::time_elapsed_string( gmdate( 'Y-m-d H:i:s e', $last_success_at ) ), '<b>' . ucfirst( $status ) . '</b>' );
82
+
83
+ case 'failure':
84
+ $err_const = constant( 'self::CPSW_' . strtoupper( $mode ) . '_LAST_ERROR' );
85
+ $error = get_option( $err_const );
86
+ /* translators: error message */
87
+ $reason = ( $error ) ? sprintf( __( 'Reason : %1s', 'checkout-plugins-stripe-woo' ), '<b>' . $error . '</b>' ) : '';
88
+ /* translators: time, status, reason */
89
+ return sprintf( __( 'Last webhook call was %1$1s. Status : %2$2s. %3$3s', 'checkout-plugins-stripe-woo' ), self::time_elapsed_string( gmdate( 'Y-m-d H:i:s e', $last_success_at ) ), '<b>' . ucfirst( $status ) . '</b>', $reason );
90
+
91
+ case 'began':
92
+ /* translators: timestamp */
93
+ return sprintf( __( 'No webhook call since %1s.', 'checkout-plugins-stripe-woo' ), gmdate( 'Y-m-d H:i:s e', $began_at ) );
94
+
95
+ default:
96
+ if ( 'live' === $mode ) {
97
+ $endpoint_secret = Helper::get_setting( 'cpsw_live_webhook_secret' );
98
+ } elseif ( 'test' === $mode ) {
99
+ $endpoint_secret = Helper::get_setting( 'cpsw_test_webhook_secret' );
100
+ }
101
+ if ( ! empty( trim( $endpoint_secret ) ) ) {
102
+ $current_time = time();
103
+ update_option( $began, $current_time );
104
+ /* translators: timestamp */
105
+ return sprintf( __( 'No webhook call since %1s.', 'checkout-plugins-stripe-woo' ), gmdate( 'Y-m-d H:i:s e', $current_time ) );
106
+ }
107
+ return '';
108
+ }
109
+ }
110
+
111
+ /**
112
+ * Registers endpoint for stripe webhook
113
+ *
114
+ * @return void
115
+ */
116
+ public function register_endpoints() {
117
+ register_rest_route(
118
+ 'cpsw',
119
+ '/v1/webhook',
120
+ array(
121
+ 'methods' => 'POST',
122
+ 'callback' => [ $this, 'webhook_listener' ],
123
+ 'permission_callback' => function() {
124
+ return true;
125
+ },
126
+ ),
127
+ );
128
+ }
129
+
130
+ /**
131
+ * This function listens webhook events from stripe.
132
+ *
133
+ * @return void
134
+ */
135
+ public function webhook_listener() {
136
+ $mode = Helper::get_payment_mode();
137
+ if ( 'live' === $mode ) {
138
+ $endpoint_secret = Helper::get_setting( 'cpsw_live_webhook_secret' );
139
+ } elseif ( 'test' === $mode ) {
140
+ $endpoint_secret = Helper::get_setting( 'cpsw_test_webhook_secret' );
141
+ }
142
+
143
+ if ( empty( trim( $endpoint_secret ) ) ) {
144
+ // Empty webhook secret or webhook not initialized.
145
+ http_response_code( 400 );
146
+ exit();
147
+ }
148
+
149
+ $began = constant( 'self::CPSW_' . strtoupper( $mode ) . '_BEGAN_AT' );
150
+ if ( ! get_option( $began ) ) {
151
+ update_option( $began, time() );
152
+ }
153
+
154
+ $payload = file_get_contents( 'php://input' );
155
+ $sig_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
156
+ $event = null;
157
+
158
+ try {
159
+ $event = \Stripe\Webhook::constructEvent(
160
+ $payload,
161
+ $sig_header,
162
+ $endpoint_secret
163
+ );
164
+ } catch ( \UnexpectedValueException $e ) {
165
+ // Invalid payload.
166
+ Logger::error( 'Webhook error : ' . $e->getMessage() );
167
+ $error_at = constant( 'self::CPSW_' . strtoupper( $mode ) . '_LAST_FAILURE_AT' );
168
+ update_option( $error_at, time() );
169
+ $error = constant( 'self::CPSW_' . strtoupper( $mode ) . '_LAST_ERROR' );
170
+ update_option( $error, $e->getMessage() );
171
+ http_response_code( 400 );
172
+ exit();
173
+ } catch ( \Stripe\Exception\SignatureVerificationException $e ) {
174
+ // Invalid signature.
175
+ Logger::error( 'Webhook error : ' . $e->getMessage() );
176
+ $error_at = constant( 'self::CPSW_' . strtoupper( $mode ) . '_LAST_FAILURE_AT' );
177
+ update_option( $error_at, time() );
178
+ $error = constant( 'self::CPSW_' . strtoupper( $mode ) . '_LAST_ERROR' );
179
+ update_option( $error, $e->getMessage() );
180
+ http_response_code( 400 );
181
+ exit();
182
+ }
183
+
184
+ switch ( $event->type ) {
185
+ case 'charge.captured':
186
+ $charge = $event->data->object;
187
+ $this->charge_capture( $charge );
188
+ break;
189
+
190
+ }
191
+ $success = constant( 'self::CPSW_' . strtoupper( $mode ) . '_LAST_SUCCESS_AT' );
192
+ update_option( $success, time() );
193
+ http_response_code( 200 );
194
+ }
195
+
196
+ /**
197
+ * Captures charge for uncaptured charges via webhook calls
198
+ *
199
+ * @param object $charge Stripe Charge object.
200
+ * @return void
201
+ */
202
+ public function charge_capture( $charge ) {
203
+ global $wpdb;
204
+ $payment_intent = sanitize_text_field( $charge->payment_intent );
205
+ $order_id = $wpdb->get_var( $wpdb->prepare( "SELECT post_id from {$wpdb->prefix}postmeta where meta_key = '_cpsw_intent_secret' and meta_value like %s", '%' . $payment_intent . '%' ) );
206
+ if ( ! $order_id ) {
207
+ Logger::error( 'Could not find order via charge ID: ' . $charge->id );
208
+ return;
209
+ }
210
+
211
+ $order = wc_get_order( $order_id );
212
+
213
+ $order->set_transaction_id( $charge->id );
214
+
215
+ if ( 'cpsw_stripe' === $order->get_payment_method() ) {
216
+ // Check and see if capture is partial.
217
+ if ( $charge->amount_refunded > 0 ) {
218
+ $partial_amount = $charge->amount_captured;
219
+ $currency = strtoupper( $charge->currency );
220
+ if ( ! in_array( $currency, self::$zero_currencies, true ) ) {
221
+ $partial_amount = $partial_amount / 100;
222
+ }
223
+ $order->set_total( $partial_amount );
224
+ /* translators: order id */
225
+ Logger::info( sprintf( __( 'Stripe charge partially captured with amount %1$1s Order id - %2$2s', 'checkout-plugins-stripe-woo' ), $partial_amount, $order->get_id() ), true );
226
+ /* translators: partial captured amount */
227
+ $order->add_order_note( sprintf( __( 'This charge was partially captured via Stripe Dashboard with the amount : %s', 'checkout-plugins-stripe-woo' ), $partial_amount ) );
228
+ } else {
229
+ $order->payment_complete( $charge->id );
230
+ /* translators: order id */
231
+ Logger::info( sprintf( __( 'Stripe charge completely captured Order id - %1s', 'checkout-plugins-stripe-woo' ), $order->get_id() ), true );
232
+ /* translators: transaction id */
233
+ $order->add_order_note( sprintf( __( 'Stripe charge complete (Charge ID: %s)', 'checkout-plugins-stripe-woo' ), $charge->id ) );
234
+ }
235
+
236
+ if ( is_callable( [ $order, 'save' ] ) ) {
237
+ $order->save();
238
+ }
239
+ }
240
+
241
+ }
242
+
243
+ /**
244
+ * Shows time difference as - XX minutes ago.
245
+ *
246
+ * @param datetime $datetime time of last event.
247
+ * @param boolean $full show full time difference.
248
+ * @return string
249
+ */
250
+ public function time_elapsed_string( $datetime, $full = false ) {
251
+ $now = new DateTime();
252
+ $ago = new DateTime( $datetime );
253
+ $diff = $now->diff( $ago );
254
+
255
+ $diff->w = floor( $diff->d / 7 );
256
+ $diff->d -= $diff->w * 7;
257
+
258
+ $string = array(
259
+ 'y' => 'year',
260
+ 'm' => 'month',
261
+ 'w' => 'week',
262
+ 'd' => 'day',
263
+ 'h' => 'hour',
264
+ 'i' => 'minute',
265
+ 's' => 'second',
266
+ );
267
+ foreach ( $string as $k => &$v ) {
268
+ if ( $diff->$k ) {
269
+ $v = $diff->$k . ' ' . $v . ( $diff->$k > 1 ? 's' : '' );
270
+ } else {
271
+ unset( $string[ $k ] );
272
+ }
273
+ }
274
+
275
+ if ( ! $full ) {
276
+ $string = array_slice( $string, 0, 1 );
277
+ }
278
+ return $string ? implode( ', ', $string ) . ' ago' : 'just now';
279
+ }
280
+
281
+ }
inc/helper.php ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Stripe Gateway webhook.
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ * @since 0.0.1
7
+ */
8
+
9
+ namespace CPSW\Inc;
10
+
11
+ use CPSW\Inc\Traits\Get_Instance;
12
+ use CPSW\Inc\Logger;
13
+ use \Stripe\StripeClient;
14
+
15
+ /**
16
+ * Stripe Webhook.
17
+ */
18
+ class Helper {
19
+
20
+ use Get_Instance;
21
+
22
+
23
+ /**
24
+ * Instance of Stripe
25
+ *
26
+ * @var \Stripe\StripeClient
27
+ */
28
+ public static $stripe;
29
+
30
+ /**
31
+ * Options
32
+ *
33
+ * @var array
34
+ */
35
+ public static $options;
36
+
37
+ /**
38
+ * Options
39
+ *
40
+ * @var array
41
+ */
42
+ public static $global_settings;
43
+
44
+ /**
45
+ * Default values
46
+ *
47
+ * @var array
48
+ */
49
+ private static $defaults = [
50
+ 'woocommerce_cpsw_stripe_settings' => [
51
+ 'inline_cc' => 'yes',
52
+ 'allowed_cards' => [
53
+ 'mastercard',
54
+ 'visa',
55
+ 'diners',
56
+ 'discover',
57
+ 'amex',
58
+ 'jcb',
59
+ 'unionpay',
60
+ ],
61
+ ],
62
+ 'cpsw_test_pub_key' => '',
63
+ 'cpsw_pub_key' => '',
64
+ 'cpsw_test_secret_key' => '',
65
+ 'cpsw_secret_key' => '',
66
+ 'cpsw_test_con_status' => '',
67
+ 'cpsw_con_status' => '',
68
+ 'cpsw_mode' => '',
69
+ 'cpsw_live_webhook_secret' => '',
70
+ 'cpsw_test_webhook_secret' => '',
71
+ 'cpsw_account_id' => '',
72
+ 'cpsw_debug_log' => 'no',
73
+ ];
74
+
75
+ /**
76
+ * Constructor
77
+ *
78
+ * @since 0.0.1
79
+ */
80
+ public function __construct() {
81
+ foreach ( self::$defaults as $key => $default_data ) {
82
+ $db_data = get_option( $key, [] );
83
+ $settings_array = true;
84
+ switch ( $key ) {
85
+ case 'woocommerce_cpsw_stripe_settings':
86
+ // check if empty secret key saved manually.
87
+ if ( empty( $db_data['inline_cc'] ) ) {
88
+ $db_data = [];
89
+ }
90
+ break;
91
+ default:
92
+ $settings_array = false;
93
+ break;
94
+ }
95
+
96
+ if ( $settings_array ) {
97
+ static::$options[ $key ] = array_merge( $default_data, $db_data );
98
+ } else {
99
+ static::$global_settings[ $key ] = empty( $db_data ) ? $default_data : $db_data;
100
+ }
101
+ }
102
+
103
+ add_action( 'plugins_loaded', [ $this, 'load_stripe' ] );
104
+ add_action( 'wp_ajax_cpsw_js_errors', [ $this, 'js_errors' ] );
105
+ }
106
+
107
+ /**
108
+ * Stripe Instance
109
+ *
110
+ * @return void
111
+ */
112
+ public static function load_stripe() {
113
+ $secret_key = ( 'live' === self::get_payment_mode() ) ? self::get_setting( 'cpsw_secret_key' ) : self::get_setting( 'cpsw_test_secret_key' );
114
+ if ( ! empty( $secret_key ) ) {
115
+ self::$stripe = new StripeClient(
116
+ [
117
+ 'api_key' => $secret_key,
118
+ 'stripe_version' => '2020-08-27',
119
+ ]
120
+ );
121
+ }
122
+ }
123
+
124
+ /**
125
+ * Stripe get all settings
126
+ *
127
+ * @return $global_settings array It returns all stripe settings in an array.
128
+ */
129
+ public static function get_settings() {
130
+ return apply_filters( 'cpsw_settings', self::$global_settings );
131
+ }
132
+
133
+ /**
134
+ * Stripe get settings value by key.
135
+ *
136
+ * @param string $key Name of the key to get the value.
137
+ * @param mixed $gateway Name of the payment gateway to get options from the database.
138
+ * @return array $global_settings It returns all stripe settings in an array.
139
+ */
140
+ public static function get_setting( $key = '', $gateway = false ) {
141
+ $result = false;
142
+ if ( false !== $gateway ) {
143
+ $options = self::$options; // To get all store settings with default options value like you already did in constructor.
144
+ if ( $options && array_key_exists( $key, $options[ 'woocommerce_' . $gateway . '_settings' ] ) ) {
145
+ $result = $options[ 'woocommerce_' . $gateway . '_settings' ][ $key ];
146
+ }
147
+ } else {
148
+ $settings = self::get_settings(); // To get all store settings with default value like you already did in constructor.
149
+ if ( $settings && array_key_exists( $key, $settings ) ) {
150
+ $result = $settings[ $key ];
151
+ }
152
+ }
153
+ return $result ? apply_filters( $key, $result ) : false;
154
+ }
155
+
156
+ /**
157
+ * Stripe get current mode
158
+ *
159
+ * @return $mode string It returns current mode of the stripe payment gateway.
160
+ */
161
+ public static function get_payment_mode() {
162
+ return apply_filters( 'cpsw_payment_mode', self::get_setting( 'cpsw_mode' ) );
163
+ }
164
+
165
+ /**
166
+ * Logs js errors
167
+ *
168
+ * @return json
169
+ */
170
+ public function js_errors() {
171
+ if ( ! isset( $_POST['_security'] ) || ! wp_verify_nonce( sanitize_text_field( $_POST['_security'] ), 'cpsw_js_error_nonce' ) ) {
172
+ return wp_send_json_error( [ 'message' => __( 'Invalid Nonce', 'checkout-plugins-stripe-woo' ) ] );
173
+ }
174
+
175
+ if ( isset( $_POST['error'] ) ) {
176
+ $error = $_POST['error'];
177
+ $error_message = $error['message'] . ' (' . $error['type'] . ')';
178
+ Logger::error( $error_message, true );
179
+ return wp_send_json_success( [ 'message' => $error_message ] );
180
+ }
181
+ exit();
182
+ }
183
+
184
+ }
inc/logger.php ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Stripe Logger Class.
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ * @since 0.0.1
7
+ */
8
+
9
+ namespace CPSW\Inc;
10
+
11
+ use CPSW\Inc\Traits\Get_Instance;
12
+ use CPSW\Inc\Helper;
13
+
14
+ /**
15
+ * Stripe Logger Class.
16
+ */
17
+ class Logger {
18
+
19
+ use Get_Instance;
20
+
21
+
22
+ /**
23
+ * Constructor
24
+ *
25
+ * @since 0.0.1
26
+ */
27
+ public function __construct() {
28
+ }
29
+
30
+
31
+ /**
32
+ * Log the provided message in the WC logs directory.
33
+ *
34
+ * @param string $level One of the following:
35
+ * 'emergency': System is unusable.
36
+ * 'alert': Action must be taken immediately.
37
+ * 'critical': Critical conditions.
38
+ * 'error': Error conditions.
39
+ * 'warning': Warning conditions.
40
+ * 'notice': Normal but significant condition.
41
+ * 'info': Informational messages.
42
+ * 'debug': Debug-level messages.
43
+ * @param string $message Error log information.
44
+ * @param bool $separator End separator required or not.
45
+ *
46
+ * @since 0.0.1
47
+ */
48
+ public static function log( $level, $message, $separator = false ) {
49
+ if ( 'yes' === Helper::get_setting( 'cpsw_debug_log' ) ) {
50
+ $log = wc_get_logger();
51
+ if ( $separator ) {
52
+ $message .= PHP_EOL . '==============================';
53
+ }
54
+ $log->log( $level, $message, [ 'source' => 'cpsw-stripe' ] );
55
+ }
56
+ }
57
+
58
+
59
+ /**
60
+ * Adds an emergency level message.
61
+ *
62
+ * @param string $message Message to log.
63
+ * @param bool $separator End separator required or not.
64
+ * @since 0.0.1
65
+ */
66
+ public static function emergency( $message, $separator = false ) {
67
+ self::log( 'emergency', $message, $separator );
68
+ }
69
+
70
+ /**
71
+ * Adds an alert level message.
72
+ *
73
+ * Action must be taken immediately.
74
+ * Example: Entire website down, database unavailable, etc.
75
+ *
76
+ * @param string $message Message to log.
77
+ * @param bool $separator End separator required or not.
78
+ * @since 0.0.1
79
+ */
80
+ public static function alert( $message, $separator = false ) {
81
+ self::log( 'alert', $message, $separator );
82
+ }
83
+
84
+ /**
85
+ * Adds a critical level message.
86
+ *
87
+ * Critical conditions.
88
+ * Example: Application component unavailable, unexpected exception.
89
+ *
90
+ * @param string $message Message to log.
91
+ * @param bool $separator End separator required or not.
92
+ * @since 0.0.1
93
+ */
94
+ public static function critical( $message, $separator = false ) {
95
+ self::log( 'critical', $message, $separator );
96
+ }
97
+
98
+ /**
99
+ * Adds an error level message.
100
+ *
101
+ * Runtime errors that do not require immediate action but should typically be logged
102
+ * and monitored.
103
+ *
104
+ * @param string $message Message to log.
105
+ * @param bool $separator End separator required or not.
106
+ * @since 0.0.1
107
+ */
108
+ public static function error( $message, $separator = false ) {
109
+ self::log( 'error', $message, $separator );
110
+ }
111
+
112
+ /**
113
+ * Adds a warning level message.
114
+ *
115
+ * Exceptional occurrences that are not errors.
116
+ *
117
+ * Example: Use of deprecated APIs, poor use of an API, undesirable things that are not
118
+ * necessarily wrong.
119
+ *
120
+ * @param string $message Message to log.
121
+ * @param bool $separator End separator required or not.
122
+ * @since 0.0.1
123
+ */
124
+ public static function warning( $message, $separator = false ) {
125
+ self::log( 'warning', $message, $separator );
126
+ }
127
+
128
+ /**
129
+ * Adds a notice level message.
130
+ *
131
+ * Normal but significant events.
132
+ *
133
+ * @param string $message Message to log.
134
+ * @param bool $separator End separator required or not.
135
+ * @since 0.0.1
136
+ */
137
+ public static function notice( $message, $separator = false ) {
138
+ self::log( 'notice', $message, $separator );
139
+ }
140
+
141
+ /**
142
+ * Adds a info level message.
143
+ *
144
+ * Interesting events.
145
+ * Example: User logs in, SQL logs.
146
+ *
147
+ * @param string $message Message to log.
148
+ * @param bool $separator End separator required or not.
149
+ * @since 0.0.1
150
+ */
151
+ public static function info( $message, $separator = false ) {
152
+ self::log( 'info', $message, $separator );
153
+ }
154
+
155
+ /**
156
+ * Adds a debug level message.
157
+ *
158
+ * Detailed debug information.
159
+ *
160
+ * @param string $message Message to log.
161
+ * @param bool $separator End separator required or not.
162
+ * @since 0.0.1
163
+ */
164
+ public static function debug( $message, $separator = false ) {
165
+ self::log( 'debug', $message, $separator );
166
+ }
167
+
168
+ }
inc/traits/get-instance.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Trait.
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ */
7
+
8
+ namespace CPSW\Inc\Traits;
9
+
10
+ /**
11
+ * Trait Get_Instance.
12
+ */
13
+ trait Get_Instance {
14
+
15
+ /**
16
+ * Instance object.
17
+ *
18
+ * @var instance
19
+ */
20
+ private static $instance;
21
+
22
+ /**
23
+ * Initiator
24
+ *
25
+ * @since 1.0.0
26
+ * @return object initialized object of class.
27
+ */
28
+ public static function get_instance() {
29
+ if ( ! isset( self::$instance ) ) {
30
+ self::$instance = new self();
31
+ }
32
+ return self::$instance;
33
+ }
34
+ }
inc/traits/subscription-helper.php ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Trait.
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ */
7
+
8
+ namespace CPSW\Inc\Traits;
9
+
10
+ use WC_Subscriptions;
11
+ use WC_Subscriptions_Cart;
12
+
13
+ /**
14
+ * Trait for Subscriptions utility functions.
15
+ */
16
+ trait Subscription_Helper {
17
+
18
+ /**
19
+ * Checks if subscriptions are enabled on the site.
20
+ *
21
+ * @return bool Whether subscriptions is enabled or not.
22
+ */
23
+ public function is_subscriptions_enabled() {
24
+ return class_exists( 'WC_Subscriptions' ) && version_compare( WC_Subscriptions::$version, '2.2.0', '>=' );
25
+ }
26
+
27
+ /**
28
+ * Adding subscription filter
29
+ *
30
+ * @param array $supports already enabled filters.
31
+ * @return array
32
+ */
33
+ public function add_subscription_filters( $supports ) {
34
+ return array_merge(
35
+ $supports,
36
+ [
37
+ 'subscriptions',
38
+ 'subscription_cancellation',
39
+ 'subscription_suspension',
40
+ 'subscription_reactivation',
41
+ 'subscription_amount_changes',
42
+ 'subscription_date_changes',
43
+ 'subscription_payment_method_change',
44
+ 'subscription_payment_method_change_customer',
45
+ 'subscription_payment_method_change_admin',
46
+ 'multiple_subscriptions',
47
+ ]
48
+ );
49
+ }
50
+
51
+ /**
52
+ * Is $order_id a subscription?
53
+ *
54
+ * @param int $order_id current woocommerce order id.
55
+ * @return boolean
56
+ */
57
+ public function has_subscription( $order_id ) {
58
+ return ( function_exists( 'wcs_order_contains_subscription' ) && ( wcs_order_contains_subscription( $order_id ) || wcs_is_subscription( $order_id ) || wcs_order_contains_renewal( $order_id ) ) );
59
+ }
60
+
61
+ /**
62
+ * Returns whether this user is changing the payment method for a subscription.
63
+ *
64
+ * @return bool
65
+ */
66
+ public function is_changing_payment_method_for_subscription() {
67
+ if ( isset( $_GET['change_payment_method'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
68
+ return wcs_is_subscription( wc_clean( wp_unslash( $_GET['change_payment_method'] ) ) ); // phpcs:ignore WordPress.Security.NonceVerification
69
+ }
70
+ return false;
71
+ }
72
+
73
+ /**
74
+ * Returns boolean value indicating whether payment for an order will be recurring,
75
+ * as opposed to single.
76
+ *
77
+ * @param int $order_id ID for corresponding WC_Order in process.
78
+ *
79
+ * @return bool
80
+ */
81
+ public function is_payment_recurring( $order_id ) {
82
+ if ( ! $this->is_subscriptions_enabled() ) {
83
+ return false;
84
+ }
85
+ return $this->is_changing_payment_method_for_subscription() || $this->has_subscription( $order_id );
86
+ }
87
+
88
+ /**
89
+ * Display checkbox for non subscription order if save card enabled
90
+ *
91
+ * @param bool $display is save card feature enabled.
92
+ *
93
+ * @return bool
94
+ */
95
+ public function display_save_payment_method_checkbox( $display ) {
96
+ if ( WC_Subscriptions_Cart::cart_contains_subscription() || $this->is_changing_payment_method_for_subscription() ) {
97
+ return false;
98
+ }
99
+ // Only render the "Save payment method" checkbox if there are no subscription products in the cart.
100
+ return $display;
101
+ }
102
+
103
+ /**
104
+ * Checks whether cart has subscription or not
105
+ *
106
+ * @return bool
107
+ */
108
+ public function is_subscription_item_in_cart() {
109
+ if ( $this->is_subscriptions_enabled() ) {
110
+ return WC_Subscriptions_Cart::cart_contains_subscription() || $this->cart_contains_renewal();
111
+ }
112
+ return false;
113
+ }
114
+
115
+ /**
116
+ * Checks if cart contains a subscription renewal.
117
+ *
118
+ * @return mixed
119
+ */
120
+ public function cart_contains_renewal() {
121
+ if ( ! function_exists( 'wcs_cart_contains_renewal' ) ) {
122
+ return false;
123
+ }
124
+ return wcs_cart_contains_renewal();
125
+ }
126
+
127
+ }
inc/traits/subscriptions.php ADDED
@@ -0,0 +1,877 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
1
+ <?php
2
+ /**
3
+ * Subscriptions Trait.
4
+ *
5
+ * @package checkout-plugins-stripe-woo
6
+ */
7
+
8
+ namespace CPSW\Inc\Traits;
9
+
10
+ use CPSW\Inc\Traits\Subscription_Helper as SH;
11
+ use CPSW\Inc\Helper;
12
+ use CPSW\Inc\Logger;
13
+ use WC_Payment_Tokens;
14
+ use WC_Emails;
15
+ use WC_Subscriptions_Change_Payment_Gateway;
16
+ use Exception;
17
+
18
+ /**
19
+ * Trait for Subscriptions utility functions.
20
+ */
21
+ trait Subscriptions {
22
+ use SH;
23
+
24
+ /**
25
+ * Initialize subscription support and hooks.
26
+ */
27
+ public function maybe_init_subscriptions() {
28
+ if ( ! $this->is_subscriptions_enabled() ) {
29
+ return;
30
+ }
31
+
32
+ $this->supports = $this->add_subscription_filters( $this->supports );
33
+
34
+ add_action( 'woocommerce_scheduled_subscription_payment_' . $this->id, [ $this, 'scheduled_subscription_payment' ], 10, 2 );
35
+ add_action( 'woocommerce_subscription_failing_payment_method_updated_' . $this->id, [ $this, 'update_failing_payment_method' ], 10, 2 );
36
+ add_action( 'wcs_resubscribe_order_created', [ $this, 'delete_resubscribe_meta' ], 10, 1 );
37
+ add_action( 'wcs_renewal_order_created', [ $this, 'delete_renewal_meta' ], 10 );
38
+ add_action( 'cpsw_payment_fields_' . $this->id, [ $this, 'display_update_subs_payment_checkout' ] );
39
+ add_action( 'cpsw_add_payment_method_' . $this->id . '_success', [ $this, 'handle_add_payment_method_success' ], 10, 2 );
40
+ add_action( 'woocommerce_subscriptions_change_payment_before_submit', [ $this, 'differentiate_change_payment_method_form' ] );
41
+
42
+ // Allow store managers to manually set Stripe as the payment method on a subscription.
43
+ add_filter( 'woocommerce_subscription_payment_meta', [ $this, 'add_subscription_payment_meta' ], 10, 2 );
44
+ add_filter( 'woocommerce_subscription_validate_payment_meta', [ $this, 'validate_subscription_payment_meta' ], 10, 2 );
45
+ add_filter( 'cpsw_display_save_payment_method_checkbox', [ $this, 'display_save_payment_method_checkbox' ] );
46
+
47
+ add_action( 'template_redirect', [ $this, 'remove_order_pay_var' ], 99 );
48
+ add_action( 'template_redirect', [ $this, 'restore_order_pay_var' ], 101 );
49
+ add_action( 'wp_ajax_create_setup_intent', [ $this, 'create_setup_intent' ] );
50
+ }
51
+
52
+ /**
53
+ * Checkbox to update all subcription to new payment method
54
+ */
55
+ public function display_update_subs_payment_checkout() {
56
+ $subs_statuses = apply_filters( 'cpsw_update_subs_payment_method_card_status', [ 'active' ] );
57
+ if (
58
+ apply_filters( 'cpsw_display_update_subs_payment_method_card_checkbox', true ) &&
59
+ wcs_user_has_subscription( get_current_user_id(), '', $subs_statuses ) &&
60
+ is_add_payment_method_page()
61
+ ) {
62
+ $label = esc_html( apply_filters( 'cpsw_save_to_subs_text', __( 'Update the Payment Method used for all of my active subscriptions.', 'checkout-plugins-stripe-woo' ) ) );
63
+ $id = sprintf( 'wc-%1$s-update-subs-payment-method-card', $this->id );
64
+ woocommerce_form_field(
65
+ $id,
66
+ [
67
+ 'type' => 'checkbox',
68
+ 'label' => $label,
69
+ 'default' => apply_filters( 'cpsw_save_to_subs_checked', false ),
70
+ ]
71
+ );
72
+ }
73
+ }
74
+
75
+ /**
76
+ * Updates all active subscriptions payment method.
77
+ *
78
+ * @param string $source_id source id.
79
+ * @param object $source_object source object.
80
+ */
81
+ public function handle_add_payment_method_success( $source_id, $source_object ) {
82
+ if ( isset( $_POST[ 'wc-' . $this->id . '-update-subs-payment-method-card' ] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing
83
+ $all_subs = wcs_get_users_subscriptions();
84
+ $subs_statuses = apply_filters( 'cpsw_update_subs_payment_method_card_status', [ 'active' ] );
85
+ $stripe_customer = $this->get_customer_id();
86
+
87
+ if ( ! empty( $all_subs ) ) {
88
+ foreach ( $all_subs as $sub ) {
89
+ if ( $sub->has_status( $subs_statuses ) ) {
90
+ WC_Subscriptions_Change_Payment_Gateway::update_payment_method(
91
+ $sub,
92
+ $this->id,
93
+ [
94
+ 'post_meta' => [
95
+ '_cpsw_source_id' => [ 'value' => $source_id ],
96
+ '_cpsw_customer_id' => [ 'value' => $stripe_customer ],
97
+ ],
98
+ ]
99
+ );
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+
106
+ /**
107
+ * Renders hidden element.
108
+ */
109
+ public function differentiate_change_payment_method_form() {
110
+ echo '<input type="hidden" id="wc-cpsw_stripe-change-payment-method" />';
111
+ }
112
+
113
+ /**
114
+ * Maybe process payment method change for subscriptions.
115
+ *
116
+ * @param int $order_id current order id.
117
+ * @return bool
118
+ */
119
+ public function maybe_change_subscription_payment_method( $order_id ) {
120
+ return (
121
+ $this->is_subscriptions_enabled() &&
122
+ $this->has_subscription( $order_id ) &&
123
+ $this->is_changing_payment_method_for_subscription()
124
+ );
125
+ }
126
+
127
+ /**
128
+ * Process the payment method change for subscriptions.
129
+ *
130
+ * @param int $order_id current order id.
131
+ * @return array|null
132
+ */
133
+ public function process_change_subscription_payment_method( $order_id ) {
134
+ try {
135
+ $subscription = wc_get_order( $order_id );
136
+ $prepared_source = $this->prepare_source( $order_id, get_current_user_id(), true );
137
+
138
+ $this->save_payment_method_to_order( $subscription, $prepared_source );
139
+
140
+ do_action( 'cpsw_change_subs_payment_method_success', $prepared_source->source, $prepared_source );
141
+
142
+ return [
143
+ 'result' => 'success',
144
+ 'redirect' => $this->get_return_url( $subscription ),
145
+ ];
146
+ } catch ( Exception $e ) {
147
+ Logger::error( $e->getMessage(), true );
148
+ }
149
+ }
150
+
151
+ /**
152
+ * Scheduled_subscription_payment function.
153
+ *
154
+ * @param float $amount_to_charge float The amount to charge.
155
+ * @param object $renewal_order WC_Order A WC_Order object created to record the renewal payment.
156
+ */
157
+ public function scheduled_subscription_payment( $amount_to_charge, $renewal_order ) {
158
+ $this->process_subscription_payment( $amount_to_charge, $renewal_order, true, false );
159
+ }
160
+
161
+ /**
162
+ * Process_subscription_payment function.
163
+ *
164
+ * @param float $amount order amount.
165
+ * @param mixed $renewal_order renewal order object.
166
+ * @param bool $retry Should we retry the process.
167
+ * @param object $previous_error previous error for same order.
168
+ * @throws Exception Stripe Exception.
169
+ * @return void
170
+ */
171
+ public function process_subscription_payment( $amount, $renewal_order, $retry = true, $previous_error = false ) {
172
+ try {
173
+ $order_id = $renewal_order->get_id();
174
+
175
+ if ( isset( $_REQUEST['process_early_renewal'] ) && 'cpsw_stripe' === $this->id ) { // phpcs:ignore WordPress.Security.NonceVerification
176
+ $response = $this->process_payment( $order_id, true, false, $previous_error, true );
177
+
178
+ if ( 'success' === $response['result'] && isset( $response['payment_intent_secret'] ) ) {
179
+ $verification_url = add_query_arg(
180
+ [
181
+ 'order' => $order_id,
182
+ 'nonce' => wp_create_nonce( 'wc_stripe_confirm_pi' ),
183
+ 'redirect_to' => remove_query_arg( [ 'process_early_renewal', 'subscription_id', 'wcs_nonce' ] ),
184
+ 'early_renewal' => true,
185
+ ],
186
+ WC_AJAX::get_endpoint( 'wc_stripe_verify_intent' )
187
+ );
188
+
189
+ echo wp_json_encode(
190
+ [
191
+ 'stripe_sca_required' => true,
192
+ 'intent_secret' => $response['payment_intent_secret'],
193
+ 'redirect_url' => $verification_url,
194
+ ]
195
+ );
196
+
197
+ exit;
198
+ }
199
+
200
+ // Hijack all other redirects in order to do the redirection in JavaScript.
201
+ add_action( 'wp_redirect', [ $this, 'redirect_after_early_renewal' ], 100 );
202
+
203
+ return;
204
+ }
205
+
206
+ // Check for an existing intent, which is associated with the order.
207
+ if ( $this->has_authentication_already_failed( $renewal_order ) ) {
208
+ return;
209
+ }
210
+
211
+ // Get source from order.
212
+ $prepared_source = $this->prepare_order_source( $renewal_order );
213
+ $source_object = $prepared_source->source_object;
214
+
215
+ if ( ! $prepared_source->customer ) {
216
+ throw new Exception(
217
+ 'Failed to process renewal for order ' . $renewal_order->get_id() . '. Stripe customer id is missing in the order',
218
+ __( 'Customer not found', 'checkout-plugins-stripe-woo' )
219
+ );
220
+ }
221
+
222
+ Logger::info( "Begin processing subscription payment for order {$order_id} for the amount of {$amount}" );
223
+ $response = $this->create_and_confirm_intent_for_off_session( $renewal_order, $prepared_source, $amount );
224
+ $is_authentication_required = $this->is_authentication_required_for_payment( $response );
225
+
226
+ // error not of the type 'authentication_required'.
227
+ if ( ! empty( $response->error ) && ! $is_authentication_required ) {
228
+ // We want to retry.
229
+ if ( $this->is_retryable_error( $response->error ) ) {
230
+ if ( $retry ) {
231
+ // Don't do anymore retries after this.
232
+ if ( 5 <= $this->retry_interval ) {
233
+ return $this->process_subscription_payment( $amount, $renewal_order, false, $response->error );
234
+ }
235
+
236
+ sleep( $this->retry_interval );
237
+
238
+ $this->retry_interval++;
239
+
240
+ return $this->process_subscription_payment( $amount, $renewal_order, true, $response->error );
241
+ } else {
242
+ $localized_message = __( 'Sorry, we are unable to process your payment at this time. Please retry later.', 'checkout-plugins-stripe-woo' );
243
+ $renewal_order->add_order_note( $localized_message );
244
+ throw new Exception( print_r( $response, true ), $localized_message ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
245
+ }
246
+ }
247
+
248
+ if ( 'card_error' === $response->error->type ) {
249
+ $localized_message = $response->error->message;
250
+ }
251
+
252
+ $renewal_order->add_order_note( $localized_message );
253
+
254
+ throw new Exception( print_r( $response, true ), $localized_message ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
255
+ }
256
+
257
+ // Either the charge was successfully captured, or it requires further authentication.
258
+ if ( $is_authentication_required ) {
259
+ do_action( 'cpsw_stripe_process_payment_authentication_required', $renewal_order, $response );
260
+
261
+ $error_message = __( 'This transaction requires authentication.', 'checkout-plugins-stripe-woo' );
262
+ $renewal_order->add_order_note( $error_message );
263
+
264
+ $charge = end( $response->error->payment_intent->charges->data );
265
+ $id = $charge->id;
266
+ $order_id = $renewal_order->get_id();
267
+
268
+ $renewal_order->set_transaction_id( $id );
269
+ /* translators: %s is the charge Id */
270
+ $renewal_order->update_status( 'failed', sprintf( __( 'Stripe charge awaiting authentication by user: %s.', 'checkout-plugins-stripe-woo' ), $id ) );
271
+ if ( is_callable( [ $renewal_order, 'save' ] ) ) {
272
+ $renewal_order->save();
273
+ }
274
+ } else {
275
+ // The charge was successfully captured.
276
+ do_action( 'cpsw_stripe_process_payment', $response, $renewal_order );
277
+
278
+ // Use the last charge within the intent or the full response body in case of SEPA.
279
+ $this->process_response( isset( $response->charges ) ? end( $response->charges->data ) : $response, $renewal_order );
280
+ }
281
+ } catch ( Exception $e ) {
282
+ Logger::error( $e->getMessage(), true );
283
+
284
+ do_action( 'cpsw_stripe_process_payment_error', $e, $renewal_order );
285
+
286
+ /* translators: error message */
287
+ $renewal_order->update_status( 'failed' );
288
+ }
289
+ }
290
+
291
+ /**
292
+ * Create and confirm intents for subscriptions
293
+ *
294
+ * @param WC_Orde $order current order.
295
+ * @param Object $source prepared source to be charged.
296
+ * @param string $amount amount of order.
297
+ * @return array
298
+ */
299
+ public function create_and_confirm_intent_for_off_session( $order, $source, $amount ) {
300
+ $request = [
301
+ 'amount' => $amount ? $this->get_formatted_amount( $order->get_total() ) : 0,
302
+ 'currency' => $order->get_currency(),
303
+ 'description' => $this->get_order_description( $order ),
304
+ 'payment_method_types' => [ 'card' ],
305
+ 'off_session' => 'true',
306
+ 'confirm' => 'true',
307
+ 'confirmation_method' => 'automatic',
308
+ 'customer' => $source->customer,
309
+ 'payment_method' => $source->source,
310
+ 'capture_method' => $this->capture_method,
311
+ ];
312
+
313
+ if ( ! empty( trim( $this->statement_descriptor ) ) ) {
314
+ $request['statement_descriptor'] = $this->statement_descriptor;
315
+ }
316
+
317
+ $order_id = $order->get_id();
318
+ Logger::info( "Stripe Payment initiated for order $order_id" );
319
+ $response = $this->stripe_api->payment_intents( 'create', [ $request ] );
320
+ $intent = $response['success'] ? $response['data'] : false;
321
+
322
+ if ( $intent ) {
323
+ $intent_data = [
324
+ 'id' => $intent->id,
325
+ 'client_secret' => $intent->client_secret,
326
+ ];
327
+ update_post_meta( $order_id, '_cpsw_intent_secret', $intent_data );
328
+ }
329
+
330
+ return $intent;
331
+ }
332
+
333
+ /**
334
+ * Process intent response
335
+ *
336
+ * @param object $response intent response.
337
+ * @param WC_Order $order Current order.
338
+ * @throws Exception Stripe Exception.
339
+ * @return object
340
+ */
341
+ public function process_response( $response, $order ) {
342
+ Logger::info( 'Processing response: ' . print_r( $response, true ) ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
343
+
344
+ $order_id = $order->get_id();
345
+ $captured = ( isset( $response->captured ) && $response->captured ) ? 'yes' : 'no';
346
+
347
+ // Store charge data.
348
+ $order->update_meta_data( '_cpsw_charge_captured', $captured );
349
+
350
+ if ( 'yes' === $captured ) {
351
+ /**
352
+ * Charge can be captured but in a pending state. Webhook required to update status.
353
+ */
354
+ if ( 'pending' === $response->status ) {
355
+ $order_stock_reduced = $order->get_meta( '_order_stock_reduced', true );
356
+
357
+ if ( ! $order_stock_reduced ) {
358
+ wc_reduce_stock_levels( $order_id );
359
+ }
360
+
361
+ $order->set_transaction_id( $response->id );
362
+ /* translators: transaction id */
363
+ $order->update_status( 'on-hold', sprintf( __( 'Stripe charge awaiting payment: %s.', 'checkout-plugins-stripe-woo' ), $response->id ) );
364
+ }
365
+
366
+ if ( 'succeeded' === $response->status ) {
367
+ $order->payment_complete( $response->id );
368
+
369
+ /* translators: transaction id */
370
+ $message = sprintf( __( 'Stripe charge complete (Charge ID: %s)', 'checkout-plugins-stripe-woo' ), $response->id );
371
+ Logger::info( $message, true );
372
+ $order->add_order_note( $message );
373
+
374
+ }
375
+
376
+ if ( 'failed' === $response->status ) {
377
+ $localized_message = __( 'Payment processing failed. Please retry.', 'checkout-plugins-stripe-woo' );
378
+ $order->add_order_note( $localized_message );
379
+ throw new Exception( print_r( $response, true ), $localized_message ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
380
+ }
381
+ } else {
382
+ $order->set_transaction_id( $response->id );
383
+
384
+ if ( $order->has_status( [ 'pending', 'failed' ] ) ) {
385
+ wc_reduce_stock_levels( $order_id );
386
+ }
387
+
388
+ /* translators: transaction id */
389
+ $order->update_status( 'on-hold', sprintf( __( 'Stripe charge authorized (Charge ID: %s). Process order to take payment, or cancel to remove the pre-authorization. Attempting to refund the order in part or in full will release the authorization and cancel the payment.', 'checkout-plugins-stripe-woo' ), $response->id ) );
390
+ }
391
+
392
+ if ( is_callable( [ $order, 'save' ] ) ) {
393
+ $order->save();
394
+ }
395
+
396
+ do_action( 'cpsw_stripe_process_response', $response, $order );
397
+
398
+ return $response;
399
+ }
400
+
401
+ /**
402
+ * Creates setup intent for update payment method
403
+ *
404
+ * @return json
405
+ */
406
+ public function create_setup_intent() {
407
+ if ( ! isset( $_POST['_security'] ) || ! wp_verify_nonce( sanitize_text_field( $_POST['_security'] ), 'cpsw_js_error_nonce' ) ) {
408
+ return wp_send_json_error( [ 'message' => __( 'Invalid Nonce', 'checkout-plugins-stripe-woo' ) ] );
409
+ }
410
+
411
+ if ( isset( $_POST['paymentMethod'] ) ) {
412
+ $response = $this->stripe_api->setup_intents( 'create', [ [ 'payment_method_types' => [ 'card' ] ] ] );
413
+ $response = $response['success'] ? $response['data'] : false;
414
+ return wp_send_json_success( [ 'client_secret' => $response->client_secret ] );
415
+ }
416
+ exit();
417
+ }
418
+
419
+ /**
420
+ * Check if authentication is required for payment
421
+ *
422
+ * @param object $response intent response.
423
+ * @return boolean
424
+ */
425
+ public function is_authentication_required_for_payment( $response ) {
426
+ return ( ! empty( $response->error ) && 'authentication_required' === $response->error->code )
427
+ || ( ! empty( $response->last_payment_error ) && 'authentication_required' === $response->last_payment_error->code );
428
+ }
429
+
430
+ /**
431
+ * Prepare Sorce for current order
432
+ *
433
+ * @param WC_Order $order Current order.
434
+ * @return object
435
+ */
436
+ public function prepare_order_source( $order = null ) {
437
+ $stripe_customer = [ 'id' => '' ];
438
+ $stripe_source = false;
439
+ $token_id = false;
440
+ $source_object = false;
441
+
442
+ if ( $order ) {
443
+ $order_id = $order->get_id();
444
+
445
+ $stripe_customer_id = $this->get_cpsw_customer_id( $order );
446
+
447
+ if ( $stripe_customer_id ) {
448
+ $stripe_customer['id'] = $stripe_customer_id;
449
+ }
450
+
451
+ $source_id = $order->get_meta( '_cpsw_source_id', true );
452
+
453
+ if ( $source_id ) {
454
+ $stripe_source = $source_id;
455
+ $response = $this->stripe_api->payment_methods( 'retrieve', [ $stripe_source ] );
456
+ $source_object = $response['success'] ? $response['data'] : false;
457
+ } elseif ( apply_filters( 'cpsw_use_default_customer_source', true ) ) {
458
+ // Attempting with empty source id.
459
+ $stripe_source = '';
460
+ }
461
+ }
462
+
463
+ return (object) [
464
+ 'token_id' => $token_id,
465
+ 'customer' => $stripe_customer ? $stripe_customer['id'] : false,
466
+ 'source' => $stripe_source,
467
+ 'source_object' => $source_object,
468
+ 'payment_method' => null,
469
+ ];
470
+ }
471
+
472
+ /**
473
+ * Get customer id from meta for current order.
474
+ *
475
+ * @param WC_Order $order current woocommerce order.
476
+ * @return string
477
+ */
478
+ public function get_cpsw_customer_id( $order ) {
479
+ // Try to get it via the order first.
480
+ $customer = $order->get_meta( '_cpsw_customer_id', true );
481
+
482
+ if ( empty( $customer ) ) {
483
+ $customer = get_user_option( '_cpsw_customer_id', $order->get_customer_id() );
484
+ }
485
+
486
+ return $customer;
487
+ }
488
+
489
+ /**
490
+ * Updates other subscription sources
491
+ *
492
+ * @param WC_Order $order Current order.
493
+ * @param Stripe_Source $source payment source to be used.
494
+ * @return void
495
+ */
496
+ public function maybe_update_source_on_subscription_order( $order, $source ) {
497
+ if ( ! $this->is_subscriptions_enabled() ) {
498
+ return;
499
+ }
500
+
501
+ $order_id = $order->get_id();
502
+
503
+ // Also store it on the subscriptions being purchased or paid for in the order.
504
+ if ( function_exists( 'wcs_order_contains_subscription' ) && wcs_order_contains_subscription( $order_id ) ) {
505
+ $subscriptions = wcs_get_subscriptions_for_order( $order_id );
506
+ } elseif ( function_exists( 'wcs_order_contains_renewal' ) && wcs_order_contains_renewal( $order_id ) ) {
507
+ $subscriptions = wcs_get_subscriptions_for_renewal_order( $order_id );
508
+ } else {
509
+ $subscriptions = [];
510
+ }
511
+
512
+ foreach ( $subscriptions as $subscription ) {
513
+ $subscription_id = $subscription->get_id();
514
+ update_post_meta( $subscription_id, '_cpsw_customer_id', $source->customer );
515
+
516
+ if ( ! empty( $source->payment_method ) ) {
517
+ update_post_meta( $subscription_id, '_cpsw_source_id', $source->payment_method );
518
+ } else {
519
+ update_post_meta( $subscription_id, '_cpsw_source_id', $source->source );
520
+ }
521
+ }
522
+ }
523
+
524
+ /**
525
+ * Don't transfer Stripe customer/token meta to resubscribe orders.
526
+ *
527
+ * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription.
528
+ */
529
+ public function delete_resubscribe_meta( $resubscribe_order ) {
530
+ delete_post_meta( $resubscribe_order->get_id(), '_cpsw_customer_id' );
531
+ delete_post_meta( $resubscribe_order->get_id(), '_cpsw_source_id' );
532
+ // For BW compat will remove in future.
533
+ delete_post_meta( $resubscribe_order->get_id(), '_stripe_card_id' );
534
+ // Delete payment intent ID.
535
+ delete_post_meta( $resubscribe_order->get_id(), '_stripe_intent_id' );
536
+ $this->delete_renewal_meta( $resubscribe_order );
537
+ }
538
+
539
+ /**
540
+ * Don't transfer Stripe fee/ID meta to renewal orders.
541
+ *
542
+ * @param object $renewal_order The order created for the customer to resubscribe to the old expired/cancelled subscription.
543
+ * @return object
544
+ */
545
+ public function delete_renewal_meta( $renewal_order ) {
546
+ $this->delete_stripe_fee( $renewal_order );
547
+ $this->delete_stripe_net( $renewal_order );
548
+
549
+ // Delete payment intent ID.
550
+ delete_post_meta( $renewal_order->get_id(), '_stripe_intent_id' );
551
+
552
+ return $renewal_order;
553
+ }
554
+
555
+ /**
556
+ * Deleting stripe fee meta
557
+ *
558
+ * @param WC_Order $order Current woocommerce order.
559
+ * @return bool | void
560
+ */
561
+ public function delete_stripe_fee( $order = null ) {
562
+ if ( is_null( $order ) ) {
563
+ return false;
564
+ }
565
+
566
+ $order_id = $order->get_id();
567
+
568
+ delete_post_meta( $order_id, '_stripe_fee' );
569
+ delete_post_meta( $order_id, 'Stripe Fee' );
570
+ }
571
+
572
+ /**
573
+ * Deleting Stripe renewal meta
574
+ *
575
+ * @param WC_Order $order Current woocommerce order.
576
+ * @return bool | void
577
+ */
578
+ public static function delete_stripe_net( $order = null ) {
579
+ if ( is_null( $order ) ) {
580
+ return false;
581
+ }
582
+
583
+ $order_id = $order->get_id();
584
+
585
+ delete_post_meta( $order_id, 'stripe_net' );
586
+ delete_post_meta( $order_id, 'Net Revenue From Stripe' );
587
+ }
588
+
589
+ /**
590
+ * Update the customer_id for after subscription completion
591
+ *
592
+ * @param WC_Subscription $subscription The subscription for which the failing payment method relates.
593
+ * @param WC_Order $renewal_order The order which recorded the successful payment (to make up for the failed automatic payment).
594
+ * @return void
595
+ */
596
+ public function update_failing_payment_method( $subscription, $renewal_order ) {
597
+ update_post_meta( $subscription->get_id(), '_cpsw_customer_id', $renewal_order->get_meta( '_cpsw_customer_id', true ) );
598
+ update_post_meta( $subscription->get_id(), '_cpsw_source_id', $renewal_order->get_meta( '_cpsw_source_id', true ) );
599
+ }
600
+
601
+ /**
602
+ * Saves the payment meta data required to process automatic recurring payments
603
+ *
604
+ * @param array $payment_meta associative array of meta data required for automatic payments.
605
+ * @param WC_Subscription $subscription An instance of a subscription object.
606
+ * @return array
607
+ */
608
+ public function add_subscription_payment_meta( $payment_meta, $subscription ) {
609
+ $subscription_id = $subscription->get_id();
610
+ $source_id = get_post_meta( $subscription_id, '_cpsw_source_id', true );
611
+
612
+ $payment_meta[ $this->id ] = [
613
+ 'post_meta' => [
614
+ '_cpsw_customer_id' => [
615
+ 'value' => get_post_meta( $subscription_id, '_cpsw_customer_id', true ),
616
+ 'label' => 'Stripe Customer ID',
617
+ ],
618
+ '_cpsw_source_id' => [
619
+ 'value' => $source_id,
620
+ 'label' => 'Stripe Source ID',
621
+ ],
622
+ ],
623
+ ];
624
+
625
+ return $payment_meta;
626
+ }
627
+
628
+ /**
629
+ * Validate the payment meta data
630
+ *
631
+ * @param string $payment_method_id The ID of the payment method to validate.
632
+ * @param array $payment_meta associative array of meta data required for automatic payments.
633
+ * @throws Exception Stripe Exception.
634
+ * @return void
635
+ */
636
+ public function validate_subscription_payment_meta( $payment_method_id, $payment_meta ) {
637
+ if ( $this->id === $payment_method_id ) {
638
+
639
+ if ( ! isset( $payment_meta['post_meta']['_cpsw_customer_id']['value'] ) || empty( $payment_meta['post_meta']['_cpsw_customer_id']['value'] ) ) {
640
+
641
+ // Allow empty stripe customer id during subscription renewal. It will be added when processing payment if required.
642
+ if ( ! isset( $_POST['wc_order_action'] ) || 'wcs_process_renewal' !== $_POST['wc_order_action'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing
643
+ throw new Exception( __( 'A "Stripe Customer ID" value is required.', 'checkout-plugins-stripe-woo' ) );
644
+ }
645
+ } elseif ( 0 !== strpos( $payment_meta['post_meta']['_cpsw_customer_id']['value'], 'cus_' ) ) {
646
+ throw new Exception( __( 'Invalid customer ID. A valid "Stripe Customer ID" must begin with "cus_".', 'checkout-plugins-stripe-woo' ) );
647
+ }
648
+
649
+ if (
650
+ ! empty( $payment_meta['post_meta']['_cpsw_source_id']['value'] ) && (
651
+ 0 !== strpos( $payment_meta['post_meta']['_cpsw_source_id']['value'], 'card_' )
652
+ && 0 !== strpos( $payment_meta['post_meta']['_cpsw_source_id']['value'], 'src_' )
653
+ && 0 !== strpos( $payment_meta['post_meta']['_cpsw_source_id']['value'], 'pm_' )
654
+ )
655
+ ) {
656
+ throw new Exception( __( 'Invalid source ID. A valid source "Stripe Source ID" must begin with "src_", "pm_", or "card_".', 'checkout-plugins-stripe-woo' ) );
657
+ }
658
+ }
659
+ }
660
+
661
+ /**
662
+ * Removes sca variable if not required.
663
+ */
664
+ public function remove_order_pay_var() {
665
+ global $wp;
666
+ if ( isset( $_GET['wc-stripe-confirmation'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
667
+ $this->order_pay_var = $wp->query_vars['order-pay'];
668
+ $wp->query_vars['order-pay'] = null;
669
+ }
670
+ }
671
+
672
+ /**
673
+ * Restore the variable that was removed in remove_order_pay_var()
674
+ */
675
+ public function restore_order_pay_var() {
676
+ global $wp;
677
+ if ( isset( $this->order_pay_var ) ) {
678
+ $wp->query_vars['order-pay'] = $this->order_pay_var;
679
+ }
680
+ }
681
+
682
+ /**
683
+ * Checks if a renewal already failed because a manual authentication is required.
684
+ *
685
+ * @param WC_Order $renewal_order The renewal order.
686
+ * @return boolean
687
+ */
688
+ public function has_authentication_already_failed( $renewal_order ) {
689
+ $existing_intent = $this->get_intent_from_order( $renewal_order );
690
+
691
+ if (
692
+ ! $existing_intent
693
+ || 'requires_payment_method' !== $existing_intent->status
694
+ || empty( $existing_intent->last_payment_error )
695
+ || 'authentication_required' !== $existing_intent->last_payment_error->code
696
+ ) {
697
+ return false;
698
+ }
699
+
700
+ // Make sure all emails are instantiated.
701
+ WC_Emails::instance();
702
+
703
+ /**
704
+ * A payment attempt failed because SCA authentication is required.
705
+ *
706
+ * @param WC_Order $renewal_order The order that is being renewed.
707
+ */
708
+ do_action( 'cpsw_stripe_process_payment_authentication_required', $renewal_order );
709
+
710
+ // Fail the payment attempt (order would be currently pending because of retry rules).
711
+ $charge = end( $existing_intent->charges->data );
712
+ $charge_id = $charge->id;
713
+ /* translators: %s is the stripe charge Id */
714
+ $renewal_order->update_status( 'failed', sprintf( __( 'Stripe charge awaiting authentication by user: %s.', 'checkout-plugins-stripe-woo' ), $charge_id ) );
715
+
716
+ return true;
717
+ }
718
+
719
+ /**
720
+ * Get intent from order
721
+ *
722
+ * @param WC_Order $order order object.
723
+ * @return mixed intent id or false.
724
+ */
725
+ public function get_intent_from_order( $order ) {
726
+ $intent_id = $order->get_meta( '_stripe_intent_id' );
727
+
728
+ if ( $intent_id ) {
729
+ return $this->get_intent( 'payment_intents', $intent_id );
730
+ }
731
+
732
+ // The order doesn't have a payment intent, but it may have a setup intent.
733
+ $intent_id = $order->get_meta( '_stripe_setup_intent' );
734
+
735
+ if ( $intent_id ) {
736
+ return $this->get_intent( 'setup_intents', $intent_id );
737
+ }
738
+
739
+ return false;
740
+ }
741
+
742
+ /**
743
+ * Hijacks `wp_redirect` in order to generate a JS-friendly object with the URL.
744
+ *
745
+ * @param string $url The URL that Subscriptions attempts a redirect to.
746
+ * @return void
747
+ */
748
+ public function redirect_after_early_renewal( $url ) {
749
+ echo wp_json_encode(
750
+ [
751
+ 'stripe_sca_required' => false,
752
+ 'redirect_url' => $url,
753
+ ]
754
+ );
755
+
756
+ exit;
757
+ }
758
+
759
+ /**
760
+ * Once an intent has been verified, perform some final actions for early renewals.
761
+ *
762
+ * @param WC_Order $order The renewal order.
763
+ * @param stdClass $intent The Payment Intent object.
764
+ */
765
+ protected function maybe_process_subscription_early_renewal_success( $order, $intent ) {
766
+ if ( $this->is_subscriptions_enabled() && isset( $_GET['early_renewal'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
767
+ wcs_update_dates_after_early_renewal( wcs_get_subscription( $order->get_meta( '_subscription_renewal' ) ), $order );
768
+ }
769
+ }
770
+
771
+ /**
772
+ * Process early renewal.
773
+ *
774
+ * @param WC_Order $order The renewal order.
775
+ * @param stdClass $intent The Payment Intent object (unused).
776
+ */
777
+ protected function maybe_process_subscription_early_renewal_failure( $order, $intent ) {
778
+ if ( $this->is_subscriptions_enabled() && isset( $_GET['early_renewal'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
779
+ $order->delete( true );
780
+ $renewal_url = wcs_get_early_renewal_url( wcs_get_subscription( $order->get_meta( '_subscription_renewal' ) ) );
781
+ wp_safe_redirect( $renewal_url );
782
+ exit;
783
+ }
784
+ }
785
+
786
+ /**
787
+ * Prepare source for user
788
+ *
789
+ * @param int $order_id current woocommerce order id.
790
+ * @param int $user_id current user id.
791
+ * @param boolean $force_save_source if saved a source is required.
792
+ * @param string $existing_customer_id stripe customer id if available.
793
+ * @throws Exception Stripe Exceptions.
794
+ * @return object
795
+ */
796
+ public function prepare_source( $order_id, $user_id, $force_save_source = false, $existing_customer_id = null ) {
797
+ $order = wc_get_order( $order_id );
798
+ $customer_id = ( ! empty( $existing_customer_id ) ) ? $existing_customer_id : $this->get_customer_id( $order );
799
+ $source_object = '';
800
+ $source_id = '';
801
+ $wc_token_id = false;
802
+ $payment_method = isset( $_POST['payment_method'] ) ? wc_clean( wp_unslash( $_POST['payment_method'] ) ) : 'cpsw_stripe'; //phpcs:ignore WordPress.Security.NonceVerification.Missing
803
+ $is_token = false;
804
+
805
+ // New CC info was entered and we have a new source to process.
806
+ if ( ! empty( $_POST['payment_method_created'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing
807
+ $stripe_source = wc_clean( wp_unslash( $_POST['payment_method_created'] ) ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
808
+ $response = $this->stripe_api->payment_methods( 'retrieve', [ $stripe_source ] );
809
+ $source_object = $response['success'] ? $response['data'] : false;
810
+ $source_id = $source_object->id;
811
+
812
+ // This checks to see if customer opted to save the payment method to file.
813
+ $maybe_saved_card = isset( $_POST[ 'wc-' . $payment_method . '-new-payment-method' ] ) && ! empty( $_POST[ 'wc-' . $payment_method . '-new-payment-method' ] ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
814
+
815
+ // Either saved card is enabled or forced by flow.
816
+ if ( ( $user_id && $this->enable_saved_cards && $maybe_saved_card && 'reusable' === $source_object->usage ) || $force_save_source ) {
817
+ $this->stripe_api->payment_methods( 'attach', [ $source_id, [ 'customer' => $customer_id ] ] );
818
+ $this->create_payment_token_for_user( $user_id, $source_object );
819
+ if ( ! empty( $response->error ) ) {
820
+ throw new Exception( print_r( $response, true ), $this->get_localized_error_message_from_response( $response ) ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
821
+ }
822
+ if ( is_wp_error( $response ) ) {
823
+ throw new Exception( $response->get_error_message(), $response->get_error_message() );
824
+ }
825
+ }
826
+ } elseif ( $this->is_using_saved_payment_method() ) {
827
+ // Use an existing token, and then process the payment.
828
+ $wc_token = $this->get_token_from_request( $_POST ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
829
+ $wc_token_id = $wc_token->get_id();
830
+ if ( ! $wc_token || $wc_token->get_user_id() !== get_current_user_id() ) {
831
+ WC()->session->set( 'refresh_totals', true );
832
+ throw new Exception( 'Invalid payment method', __( 'Invalid payment method. Please input a new card number.', 'checkout-plugins-stripe-woo' ) );
833
+ }
834
+
835
+ $source_id = $wc_token->get_token();
836
+
837
+ if ( ! empty( $source_id ) ) {
838
+ $is_token = true;
839
+ }
840
+ } elseif ( isset( $_POST['stripe_token'] ) && 'new' !== $_POST['stripe_token'] ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing
841
+ $stripe_token = wc_clean( wp_unslash( $_POST['stripe_token'] ) ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
842
+ $maybe_saved_card = isset( $_POST[ 'wc-' . $payment_method . '-new-payment-method' ] ) && ! empty( $_POST[ 'wc-' . $payment_method . '-new-payment-method' ] ); //phpcs:ignore WordPress.Security.NonceVerification.Missing
843
+
844
+ // This is true if the user wants to store the card to their account.
845
+ if ( ( $user_id && $this->enable_saved_cards && $maybe_saved_card ) || $force_save_source ) {
846
+ $response = $customer->attach_source( $stripe_token );
847
+
848
+ if ( ! empty( $response->error ) ) {
849
+ throw new Exception( print_r( $response, true ), $response->error->message ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
850
+ }
851
+ if ( is_wp_error( $response ) ) {
852
+ throw new Exception( $response->get_error_message(), $response->get_error_message() );
853
+ }
854
+ $source_id = $response->id;
855
+ } else {
856
+ $source_id = $stripe_token;
857
+ $is_token = true;
858
+ }
859
+ }
860
+
861
+ if ( ! $customer_id ) {
862
+ $customer = $this->create_stripe_customer( $source_id, $order_id, $user_email );
863
+ }
864
+
865
+ if ( empty( $source_object ) && ! $is_token ) {
866
+ $source_object = self::get_source_object( $source_id );
867
+ }
868
+
869
+ return (object) [
870
+ 'token_id' => $wc_token_id,
871
+ 'customer' => $customer_id,
872
+ 'source' => $source_id,
873
+ 'source_object' => $source_object,
874
+ 'payment_method' => null,
875
+ ];
876
+ }
877
+ }
lib/stripe-php/.coveralls.github-actions.yml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ service_name: github-actions
2
+ coverage_clover: clover.xml
3
+ json_path: coveralls-upload.json
lib/stripe-php/.php_cs.dist ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ return PhpCsFixer\Config::create()
4
+ ->setRiskyAllowed(true)
5
+ ->setRules([
6
+ // Rulesets
7
+ '@PSR2' => true,
8
+ '@PhpCsFixer' => true,
9
+ '@PhpCsFixer:risky' => true,
10
+ '@PHP56Migration:risky' => true,
11
+ '@PHPUnit57Migration:risky' => true,
12
+
13
+ // Additional rules
14
+ 'fopen_flags' => true,
15
+ 'linebreak_after_opening_tag' => true,
16
+ 'native_constant_invocation' => true,
17
+ 'native_function_invocation' => true,
18
+
19
+ // --- Diffs from @PhpCsFixer / @PhpCsFixer:risky ---
20
+
21
+ // This is the same as the default for the @PhpCsFixer ruleset, minus
22
+ // the following values: ['include', 'include_once', 'require',
23
+ // 'require_once']. We could enable them and remove this line after
24
+ // updating codegen for the `init.php` file to be compliant.
25
+ 'blank_line_before_statement' => ['statements' => ['break', 'case', 'continue', 'declare', 'default', 'exit', 'goto', 'return', 'switch', 'throw', 'try']],
26
+
27
+ // This is just prettier / easier to read.
28
+ 'concat_space' => ['spacing' => 'one'],
29
+
30
+ // This causes strange ordering with codegen'd classes. We might be
31
+ // able to enable this if we update codegen to output class elements
32
+ // in the correct order.
33
+ 'ordered_class_elements' => false,
34
+
35
+ // Keep this disabled to avoid unnecessary diffs in PHPDoc comments of
36
+ // codegen'd classes.
37
+ 'phpdoc_align' => false,
38
+
39
+ // This is a "risky" rule that causes a bug in our codebase.
40
+ // Specifically, in `StripeObject.updateAttributes` we construct new
41
+ // `StripeObject`s for metadata. We can't use `self` there because it
42
+ // needs to be a raw `StripeObject`.
43
+ 'self_accessor' => false,
44
+ ])
45
+ ;
lib/stripe-php/CHANGELOG.md ADDED
@@ -0,0 +1,1482 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Changelog
2
+
3
+ ## 7.100.0 - 2021-10-11
4
+ * [#1190](https://github.com/stripe/stripe-php/pull/1190) API Updates
5
+ * Add support for `klarna` on `PaymentMethod`.
6
+
7
+ ## 7.99.0 - 2021-10-11
8
+ * [#1188](https://github.com/stripe/stripe-php/pull/1188) API Updates
9
+ * Add support for `list_payment_methods` method on resource `Customer`
10
+
11
+ ## 7.98.0 - 2021-10-07
12
+ * [#1187](https://github.com/stripe/stripe-php/pull/1187) API Updates
13
+ * Add support for `phone_number_collection` on `Checkout.Session`
14
+ * Add support for new value `customer_id` on enum `Radar.ValueList.item_type`
15
+ * Add support for new value `bbpos_wisepos_e` on enum `Terminal.Reader.device_type`
16
+
17
+ ## 7.97.0 - 2021-09-16
18
+ * [#1181](https://github.com/stripe/stripe-php/pull/1181) API Updates
19
+ * Add support for `full_name_aliases` on `Person`
20
+
21
+ ## 7.96.0 - 2021-09-15
22
+ * [#1178](https://github.com/stripe/stripe-php/pull/1178) API Updates
23
+ * Add support for livemode on Reporting.ReportType
24
+ * Add support for new value `rst` on enum `TaxRate.tax_type`
25
+
26
+ ## 7.95.0 - 2021-09-01
27
+ * [#1177](https://github.com/stripe/stripe-php/pull/1177) API Updates
28
+ * Add support for `future_requirements` on `Account`, `Capability`, and `Person`
29
+ * Add support for `after_expiration`, `consent`, `consent_collection`, `expires_at`, and `recovered_from` on `Checkout.Session`
30
+
31
+ ## 7.94.0 - 2021-08-19
32
+ * [#1173](https://github.com/stripe/stripe-php/pull/1173) API Updates
33
+ * Add support for new value `fil` on enum `Checkout.Session.locale`
34
+ * Add support for new value `au_arn` on enum `TaxId.type`
35
+
36
+ ## 7.93.0 - 2021-08-11
37
+ * [#1172](https://github.com/stripe/stripe-php/pull/1172) API Updates
38
+ * Add support for `locale` on `BillingPortal.Session`
39
+
40
+ * [#1171](https://github.com/stripe/stripe-php/pull/1171) Fix typo in docblock `CurlClient::executeStreamingRequestWithRetries`
41
+
42
+ ## 7.92.0 - 2021-07-28
43
+ * [#1167](https://github.com/stripe/stripe-php/pull/1167) API Updates
44
+ * Add support for `account_type` on `BankAccount`
45
+ * Add support for new value `redacted` on enum `Review.closed_reason`
46
+
47
+ ## 7.91.0 - 2021-07-22
48
+ * [#1164](https://github.com/stripe/stripe-php/pull/1164) API Updates
49
+ * Add support for new values `hr`, `ko`, and `vi` on enum `Checkout.Session.locale`
50
+ * Add support for `payment_settings` on `Subscription`
51
+
52
+ ## 7.90.0 - 2021-07-20
53
+ * [#1163](https://github.com/stripe/stripe-php/pull/1163) API Updates
54
+ * Add support for `wallet` on `Issuing.Transaction`
55
+ * [#1160](https://github.com/stripe/stripe-php/pull/1160) Remove unused API error types from docs.
56
+
57
+ ## 7.89.0 - 2021-07-14
58
+ * [#1158](https://github.com/stripe/stripe-php/pull/1158) API Updates
59
+ * Add support for `list_computed_upfront_line_items` method on resource `Quote`
60
+ * [#1157](https://github.com/stripe/stripe-php/pull/1157) Improve readme for old PHP versions
61
+
62
+ ## 7.88.0 - 2021-07-09
63
+ * [#1152](https://github.com/stripe/stripe-php/pull/1152) API Updates
64
+ * Add support for new resource `Quote`
65
+ * Add support for `quote` on `Invoice`
66
+ * Add support for new value `quote_accept` on enum `Invoice.billing_reason`
67
+ * [#1155](https://github.com/stripe/stripe-php/pull/1155) Add streaming methods to Service infra
68
+ * Add support for `setStreamingHttpClient` and `streamingHttpClient` to `ApiRequestor`
69
+ * Add support for `getStreamingClient` and `requestStream` to `AbstractService`
70
+ * Add support for `requestStream` to `BaseStripeClient`
71
+ * `\Stripe\RequestOptions::parse` now clones its input if it is already a `RequestOptions` object, to prevent accidental mutation.
72
+ * [#1151](https://github.com/stripe/stripe-php/pull/1151) Add `mode` constants into Checkout\Session
73
+
74
+ ## 7.87.0 - 2021-06-30
75
+ * [#1149](https://github.com/stripe/stripe-php/pull/1149) API Updates
76
+ * Add support for `wechat_pay` on `PaymentMethod`
77
+ * [#1143](https://github.com/stripe/stripe-php/pull/1143) Streaming requests
78
+ * [#1138](https://github.com/stripe/stripe-php/pull/1138) Deprecate travis
79
+
80
+ ## 7.86.0 - 2021-06-25
81
+ * [#1145](https://github.com/stripe/stripe-php/pull/1145) API Updates
82
+ * Add support for `boleto` on `PaymentMethod`.
83
+ * Add support for `il_vat` as a member of the `TaxID.Type` enum.
84
+
85
+ ## 7.85.0 - 2021-06-18
86
+ * [#1142](https://github.com/stripe/stripe-php/pull/1142) API Updates
87
+ * Add support for new TaxId types: `ca_pst_mb`, `ca_pst_bc`, `ca_gst_hst`, and `ca_pst_sk`.
88
+
89
+ ## 7.84.0 - 2021-06-16
90
+ * [#1141](https://github.com/stripe/stripe-php/pull/1141) Update PHPDocs
91
+ * Add support for `url` on `Checkout\Session`
92
+
93
+
94
+ ## 7.83.0 - 2021-06-07
95
+ * [#1140](https://github.com/stripe/stripe-php/pull/1140) API Updates
96
+ * Added support for `tax_id_collection` on `Checkout\Session` and `Checkout\Session#create`
97
+ * Update `Location` to be expandable on `Terminal\Reader`
98
+
99
+ ## 7.82.0 - 2021-06-04
100
+ * [#1136](https://github.com/stripe/stripe-php/pull/1136) Update PHPDocs
101
+ * Add support for `controller` on `Account`.
102
+
103
+ ## 7.81.0 - 2021-06-04
104
+ * [#1135](https://github.com/stripe/stripe-php/pull/1135) API Updates
105
+ * Add support for new resource `TaxCode`
106
+ * Add support for `automatic_tax` `Invoice` and`Checkout.Session`.
107
+ * Add support for `tax_behavior` on `Price`
108
+ * Add support for `tax_code` on `Product`
109
+ * Add support for `tax` on `Customer`
110
+ * Add support for `tax_type` enum on `TaxRate`
111
+
112
+ ## 7.80.0 - 2021-05-26
113
+ * [#1130](https://github.com/stripe/stripe-php/pull/1130) Update PHPDocs
114
+
115
+ ## 7.79.0 - 2021-05-19
116
+ * [#1126](https://github.com/stripe/stripe-php/pull/1126) API Updates
117
+ * Added support for new resource `Identity.VerificationReport`
118
+ * Added support for new resource `Identity.VerificationSession`
119
+ * `File#list.purpose` and `File.purpose` added new enum members: `identity_document_downloadable` and `selfie`.
120
+
121
+ ## 7.78.0 - 2021-05-05
122
+ * [#1120](https://github.com/stripe/stripe-php/pull/1120) Update PHPDocs
123
+ * Add support for `Radar.EarlyFraudWarning.payment_intent`
124
+
125
+ ## 7.77.0 - 2021-04-12
126
+ * [#1110](https://github.com/stripe/stripe-php/pull/1110) Update PHPDocs
127
+ * Add support for `acss_debit` on `PaymentMethod`
128
+ * Add support for `payment_method_options` on `Checkout\Session`
129
+ * [#1107](https://github.com/stripe/stripe-php/pull/1107) Remove duplicate object phpdoc
130
+
131
+ ## 7.76.0 - 2021-03-22
132
+ * [#1100](https://github.com/stripe/stripe-php/pull/1100) Update PHPDocs
133
+ * Added support for `amount_shipping` on `Checkout.Session.total_details`
134
+ * [#1088](https://github.com/stripe/stripe-php/pull/1088) Make possibility to extend CurlClient
135
+
136
+ ## 7.75.0 - 2021-02-22
137
+ * [#1094](https://github.com/stripe/stripe-php/pull/1094) Add support for Billing Portal Configuration API
138
+
139
+ ## 7.74.0 - 2021-02-17
140
+ * [#1093](https://github.com/stripe/stripe-php/pull/1093) Update PHPDocs
141
+ * Add support for on_behalf_of to Invoice
142
+
143
+ ## 7.73.0 - 2021-02-16
144
+ * [#1091](https://github.com/stripe/stripe-php/pull/1091) Update PHPDocs
145
+ * Add support for `afterpay_clearpay` on `PaymentMethod`.
146
+
147
+ ## 7.72.0 - 2021-02-08
148
+ * [#1089](https://github.com/stripe/stripe-php/pull/1089) Update PHPDocs
149
+ * Add support for `afterpay_clearpay_payments` on `Account.capabilities`
150
+ * Add support for `payment_settings` on `Invoice`
151
+
152
+ ## 7.71.0 - 2021-02-05
153
+ * [#1087](https://github.com/stripe/stripe-php/pull/1087) Update PHPDocs
154
+ * [#1086](https://github.com/stripe/stripe-php/pull/1086) Update CA cert bundle URL
155
+
156
+ ## 7.70.0 - 2021-02-03
157
+ * [#1085](https://github.com/stripe/stripe-php/pull/1085) Update PHPDocs
158
+ * Add support for `nationality` on `Person`
159
+ * Add member `gb_vat` of `TaxID` enum
160
+
161
+
162
+ ## 7.69.0 - 2021-01-21
163
+ * [#1079](https://github.com/stripe/stripe-php/pull/1079) Update PHPDocs
164
+
165
+ ## 7.68.0 - 2021-01-14
166
+ * [#1063](https://github.com/stripe/stripe-php/pull/1063) Multiple API changes
167
+ * [#1061](https://github.com/stripe/stripe-php/pull/1061) Bump phpDocumentor to 3.0.0
168
+
169
+ ## 7.67.0 - 2020-12-09
170
+ * [#1060](https://github.com/stripe/stripe-php/pull/1060) Improve PHPDocs for `Discount`
171
+ * [#1059](https://github.com/stripe/stripe-php/pull/1059) Upgrade PHPStan to 0.12.59
172
+ * [#1057](https://github.com/stripe/stripe-php/pull/1057) Bump PHP-CS-Fixer and update code
173
+
174
+ ## 7.66.1 - 2020-12-01
175
+ * [#1054](https://github.com/stripe/stripe-php/pull/1054) Improve error message for invalid keys in StripeClient
176
+
177
+ ## 7.66.0 - 2020-11-24
178
+ * [#1053](https://github.com/stripe/stripe-php/pull/1053) Update PHPDocs
179
+
180
+ ## 7.65.0 - 2020-11-19
181
+ * [#1050](https://github.com/stripe/stripe-php/pull/1050) Added constants for `proration_behavior` on `Subscription`
182
+
183
+ ## 7.64.0 - 2020-11-18
184
+ * [#1049](https://github.com/stripe/stripe-php/pull/1049) Update PHPDocs
185
+
186
+ ## 7.63.0 - 2020-11-17
187
+ * [#1048](https://github.com/stripe/stripe-php/pull/1048) Update PHPDocs
188
+ * [#1046](https://github.com/stripe/stripe-php/pull/1046) Force IPv4 resolving
189
+
190
+ ## 7.62.0 - 2020-11-09
191
+ * [#1041](https://github.com/stripe/stripe-php/pull/1041) Add missing constants on `Event`
192
+ * [#1038](https://github.com/stripe/stripe-php/pull/1038) Update PHPDocs
193
+
194
+ ## 7.61.0 - 2020-10-20
195
+ * [#1030](https://github.com/stripe/stripe-php/pull/1030) Add support for `jp_rn` and `ru_kpp` as a `type` on `TaxId`
196
+
197
+ ## 7.60.0 - 2020-10-15
198
+ * [#1027](https://github.com/stripe/stripe-php/pull/1027) Warn if opts are in params
199
+
200
+ ## 7.58.0 - 2020-10-14
201
+ * [#1026](https://github.com/stripe/stripe-php/pull/1026) Add support for the Payout Reverse API
202
+
203
+ ## 7.57.0 - 2020-09-29
204
+ * [#1020](https://github.com/stripe/stripe-php/pull/1020) Add support for the `SetupAttempt` resource and List API
205
+
206
+ ## 7.56.0 - 2020-09-25
207
+ * [#1019](https://github.com/stripe/stripe-php/pull/1019) Update PHPDocs
208
+
209
+ ## 7.55.0 - 2020-09-24
210
+ * [#1018](https://github.com/stripe/stripe-php/pull/1018) Multiple API changes
211
+ * Updated PHPDocs
212
+ * Added `TYPE_CONTRIBUTION` as a constant on `BalanceTransaction`
213
+
214
+ ## 7.54.0 - 2020-09-23
215
+ * [#1017](https://github.com/stripe/stripe-php/pull/1017) Updated PHPDoc
216
+
217
+ ## 7.53.1 - 2020-09-22
218
+ * [#1015](https://github.com/stripe/stripe-php/pull/1015) Bugfix: don't error on systems with php_uname in disablefunctions with whitespace
219
+
220
+ ## 7.53.0 - 2020-09-21
221
+ * [#1016](https://github.com/stripe/stripe-php/pull/1016) Updated PHPDocs
222
+
223
+ ## 7.52.0 - 2020-09-08
224
+ * [#1010](https://github.com/stripe/stripe-php/pull/1010) Update PHPDocs
225
+
226
+ ## 7.51.0 - 2020-09-02
227
+ * [#1007](https://github.com/stripe/stripe-php/pull/1007) Multiple API changes
228
+ * Add support for the Issuing Dispute Submit API
229
+ * Add constants for `payment_status` on Checkout `Session`
230
+ * [#1003](https://github.com/stripe/stripe-php/pull/1003) Add trim to getSignatures to allow for leading whitespace.
231
+
232
+ ## 7.50.0 - 2020-08-28
233
+ * [#1005](https://github.com/stripe/stripe-php/pull/1005) Updated PHPDocs
234
+
235
+ ## 7.49.0 - 2020-08-19
236
+ * [#998](https://github.com/stripe/stripe-php/pull/998) PHPDocs updated
237
+
238
+ ## 7.48.0 - 2020-08-17
239
+ * [#997](https://github.com/stripe/stripe-php/pull/997) PHPDocs updated
240
+ * [#996](https://github.com/stripe/stripe-php/pull/996) Fixing telemetry
241
+
242
+ ## 7.47.0 - 2020-08-13
243
+ * [#994](https://github.com/stripe/stripe-php/pull/994) Nullable balance_transactions on issuing disputes
244
+ * [#991](https://github.com/stripe/stripe-php/pull/991) Fix invalid return types in OAuthService
245
+
246
+ ## 7.46.1 - 2020-08-07
247
+ * [#990](https://github.com/stripe/stripe-php/pull/990) PHPdoc changes
248
+
249
+ ## 7.46.0 - 2020-08-05
250
+ * [#989](https://github.com/stripe/stripe-php/pull/989) Add support for the `PromotionCode` resource and APIs
251
+
252
+ ## 7.45.0 - 2020-07-28
253
+ * [#981](https://github.com/stripe/stripe-php/pull/981) PHPdoc updates
254
+
255
+ ## 7.44.0 - 2020-07-20
256
+ * [#948](https://github.com/stripe/stripe-php/pull/948) Add `first()` and `last()` functions to `Collection`
257
+
258
+ ## 7.43.0 - 2020-07-17
259
+ * [#975](https://github.com/stripe/stripe-php/pull/975) Add support for `political_exposure` on `Person`
260
+
261
+ ## 7.42.0 - 2020-07-15
262
+ * [#974](https://github.com/stripe/stripe-php/pull/974) Add new constants for `purpose` on `File`
263
+
264
+ ## 7.41.1 - 2020-07-15
265
+ * [#973](https://github.com/stripe/stripe-php/pull/973) Multiple PHPDoc fixes
266
+
267
+ ## 7.41.0 - 2020-07-14
268
+ * [#971](https://github.com/stripe/stripe-php/pull/971) Adds enum values for `billing_address_collection` on Checkout `Session`
269
+
270
+ ## 7.40.0 - 2020-07-06
271
+ * [#964](https://github.com/stripe/stripe-php/pull/964) Add OAuthService
272
+
273
+ ## 7.39.0 - 2020-06-25
274
+ * [#960](https://github.com/stripe/stripe-php/pull/960) Add constants for `payment_behavior` on `Subscription`
275
+
276
+ ## 7.38.0 - 2020-06-24
277
+ * [#959](https://github.com/stripe/stripe-php/pull/959) Add multiple constants missing for `Event`
278
+
279
+ ## 7.37.2 - 2020-06-23
280
+ * [#957](https://github.com/stripe/stripe-php/pull/957) Updated PHPDocs
281
+
282
+ ## 7.37.1 - 2020-06-11
283
+ * [#952](https://github.com/stripe/stripe-php/pull/952) Improve PHPDoc
284
+
285
+ ## 7.37.0 - 2020-06-09
286
+ * [#950](https://github.com/stripe/stripe-php/pull/950) Add support for `id_npwp` and `my_frp` as `type` on `TaxId`
287
+
288
+ ## 7.36.2 - 2020-06-03
289
+ * [#946](https://github.com/stripe/stripe-php/pull/946) Update PHPDoc
290
+
291
+ ## 7.36.1 - 2020-05-28
292
+ * [#938](https://github.com/stripe/stripe-php/pull/938) Remove extra array_keys() call.
293
+ * [#942](https://github.com/stripe/stripe-php/pull/942) fix autopagination for service methods
294
+
295
+ ## 7.36.0 - 2020-05-21
296
+ * [#937](https://github.com/stripe/stripe-php/pull/937) Add support for `ae_trn`, `cl_tin` and `sa_vat` as `type` on `TaxId`
297
+
298
+ ## 7.35.0 - 2020-05-20
299
+ * [#936](https://github.com/stripe/stripe-php/pull/936) Add `anticipation_repayment` as a `type` on `BalanceTransaction`
300
+
301
+ ## 7.34.0 - 2020-05-18
302
+ * [#934](https://github.com/stripe/stripe-php/pull/934) Add support for `issuing_dispute` as a `type` on `BalanceTransaction`
303
+
304
+ ## 7.33.1 - 2020-05-15
305
+ * [#933](https://github.com/stripe/stripe-php/pull/933) Services bugfix: convert nested null params to empty strings
306
+
307
+ ## 7.33.0 - 2020-05-14
308
+ * [#771](https://github.com/stripe/stripe-php/pull/771) Introduce client/services API. The [migration guide](https://github.com/stripe/stripe-php/wiki/Migration-to-StripeClient-and-services-in-7.33.0) contains before & after examples of the backwards-compatible changes.
309
+
310
+ ## 7.32.1 - 2020-05-13
311
+ * [#932](https://github.com/stripe/stripe-php/pull/932) Fix multiple PHPDoc
312
+
313
+ ## 7.32.0 - 2020-05-11
314
+ * [#931](https://github.com/stripe/stripe-php/pull/931) Add support for the `LineItem` resource and APIs
315
+
316
+ ## 7.31.0 - 2020-05-01
317
+ * [#927](https://github.com/stripe/stripe-php/pull/927) Add support for new tax IDs
318
+
319
+ ## 7.30.0 - 2020-04-29
320
+ * [#924](https://github.com/stripe/stripe-php/pull/924) Add support for the `Price` resource and APIs
321
+
322
+ ## 7.29.0 - 2020-04-22
323
+ * [#920](https://github.com/stripe/stripe-php/pull/920) Add support for the `Session` resource and APIs on the `BillingPortal` namespace
324
+
325
+ ## 7.28.1 - 2020-04-10
326
+ * [#915](https://github.com/stripe/stripe-php/pull/915) Improve PHPdocs for many classes
327
+
328
+ ## 7.28.0 - 2020-04-03
329
+ * [#912](https://github.com/stripe/stripe-php/pull/912) Preserve backwards compatibility for typoed `TYPE_ADJUSTEMENT` enum.
330
+ * [#911](https://github.com/stripe/stripe-php/pull/911) Codegenerated PHPDoc for nested resources
331
+ * [#902](https://github.com/stripe/stripe-php/pull/902) Update docstrings for nested resources
332
+
333
+ ## 7.27.3 - 2020-03-18
334
+ * [#899](https://github.com/stripe/stripe-php/pull/899) Convert keys to strings in `StripeObject::toArray()`
335
+
336
+ ## 7.27.2 - 2020-03-13
337
+ * [#894](https://github.com/stripe/stripe-php/pull/894) Multiple PHPDocs changes
338
+
339
+ ## 7.27.1 - 2020-03-03
340
+ * [#890](https://github.com/stripe/stripe-php/pull/890) Update PHPdoc
341
+
342
+ ## 7.27.0 - 2020-02-28
343
+ * [#889](https://github.com/stripe/stripe-php/pull/889) Add new constants for `type` on `TaxId`
344
+
345
+ ## 7.26.0 - 2020-02-26
346
+ * [#886](https://github.com/stripe/stripe-php/pull/886) Add support for listing Checkout `Session`
347
+ * [#883](https://github.com/stripe/stripe-php/pull/883) Add PHPDoc class descriptions
348
+
349
+ ## 7.25.0 - 2020-02-14
350
+ * [#879](https://github.com/stripe/stripe-php/pull/879) Make `\Stripe\Collection` implement `\Countable`
351
+ * [#875](https://github.com/stripe/stripe-php/pull/875) Last set of PHP-CS-Fixer updates
352
+ * [#874](https://github.com/stripe/stripe-php/pull/874) Enable php_unit_internal_class rule
353
+ * [#873](https://github.com/stripe/stripe-php/pull/873) Add support for phpDocumentor in Makefile
354
+ * [#872](https://github.com/stripe/stripe-php/pull/872) Another batch of PHP-CS-Fixer rule updates
355
+ * [#871](https://github.com/stripe/stripe-php/pull/871) Fix a few PHPDoc comments
356
+ * [#870](https://github.com/stripe/stripe-php/pull/870) More PHP-CS-Fixer tweaks
357
+
358
+ ## 7.24.0 - 2020-02-10
359
+ * [#862](https://github.com/stripe/stripe-php/pull/862) Better PHPDoc
360
+ * [#865](https://github.com/stripe/stripe-php/pull/865) Get closer to `@PhpCsFixer` standard ruleset
361
+
362
+ ## 7.23.0 - 2020-02-05
363
+ * [#860](https://github.com/stripe/stripe-php/pull/860) Add PHPDoc types for expandable fields
364
+ * [#858](https://github.com/stripe/stripe-php/pull/858) Use `native_function_invocation` PHPStan rule
365
+ * [#857](https://github.com/stripe/stripe-php/pull/857) Update PHPDoc on nested resources
366
+ * [#855](https://github.com/stripe/stripe-php/pull/855) PHPDoc: `StripeObject` -> `ErrorObject` where appropriate
367
+ * [#837](https://github.com/stripe/stripe-php/pull/837) Autogen diff
368
+ * [#854](https://github.com/stripe/stripe-php/pull/854) Upgrade PHPStan and fix settings
369
+ * [#850](https://github.com/stripe/stripe-php/pull/850) Yet more PHPDoc updates
370
+
371
+ ## 7.22.0 - 2020-01-31
372
+ * [#849](https://github.com/stripe/stripe-php/pull/849) Add new constants for `type` on `TaxId`
373
+ * [#843](https://github.com/stripe/stripe-php/pull/843) Even more PHPDoc fixes
374
+ * [#841](https://github.com/stripe/stripe-php/pull/841) More PHPDoc fixes
375
+
376
+ ## 7.21.1 - 2020-01-29
377
+ * [#840](https://github.com/stripe/stripe-php/pull/840) Update phpdocs across multiple resources.
378
+
379
+ ## 7.21.0 - 2020-01-28
380
+ * [#839](https://github.com/stripe/stripe-php/pull/839) Add support for `TYPE_ES_CIF` on `TaxId`
381
+
382
+ ## 7.20.0 - 2020-01-23
383
+ * [#836](https://github.com/stripe/stripe-php/pull/836) Add new type values for `TaxId`
384
+
385
+ ## 7.19.1 - 2020-01-14
386
+ * [#831](https://github.com/stripe/stripe-php/pull/831) Fix incorrect `UnexpectedValueException` instantiation
387
+
388
+ ## 7.19.0 - 2020-01-14
389
+ * [#830](https://github.com/stripe/stripe-php/pull/830) Add support for `CreditNoteLineItem`
390
+
391
+ ## 7.18.0 - 2020-01-13
392
+ * [#829](https://github.com/stripe/stripe-php/pull/829) Don't call php_uname function if disabled by php.ini
393
+
394
+ ## 7.17.0 - 2020-01-08
395
+ * [#821](https://github.com/stripe/stripe-php/pull/821) Improve PHPDoc types for `ApiErrorException.get/setJsonBody()` methods
396
+
397
+ ## 7.16.0 - 2020-01-06
398
+ * [#826](https://github.com/stripe/stripe-php/pull/826) Rename remaining `$options` to `$opts`
399
+ * [#825](https://github.com/stripe/stripe-php/pull/825) Update PHPDoc
400
+
401
+ ## 7.15.0 - 2020-01-06
402
+ * [#824](https://github.com/stripe/stripe-php/pull/824) Add constant `TYPE_SG_UEN` to `TaxId`
403
+
404
+ ## 7.14.2 - 2019-12-04
405
+ * [#816](https://github.com/stripe/stripe-php/pull/816) Disable autoloader when checking for `Throwable`
406
+
407
+ ## 7.14.1 - 2019-11-26
408
+ * [#812](https://github.com/stripe/stripe-php/pull/812) Fix invalid PHPdoc on `Subscription`
409
+
410
+ ## 7.14.0 - 2019-11-26
411
+ * [#811](https://github.com/stripe/stripe-php/pull/811) Add support for `CreditNote` preview.
412
+
413
+ ## 7.13.0 - 2019-11-19
414
+ * [#808](https://github.com/stripe/stripe-php/pull/808) Add support for listing lines on an Invoice directly via `Invoice::allLines()`
415
+
416
+ ## 7.12.0 - 2019-11-08
417
+
418
+ - [#805](https://github.com/stripe/stripe-php/pull/805) Add Source::allSourceTransactions and SubscriptionItem::allUsageRecordSummaries
419
+ - [#798](https://github.com/stripe/stripe-php/pull/798) The argument of `array_key_exists` cannot be `null`
420
+ - [#803](https://github.com/stripe/stripe-php/pull/803) Removed unwanted got
421
+
422
+ ## 7.11.0 - 2019-11-06
423
+
424
+ - [#797](https://github.com/stripe/stripe-php/pull/797) Add support for reverse pagination
425
+
426
+ ## 7.10.0 - 2019-11-05
427
+
428
+ - [#795](https://github.com/stripe/stripe-php/pull/795) Add support for `Mandate`
429
+
430
+ ## 7.9.0 - 2019-11-05
431
+
432
+ - [#794](https://github.com/stripe/stripe-php/pull/794) Add PHPDoc to `ApiResponse`
433
+ - [#792](https://github.com/stripe/stripe-php/pull/792) Use single quotes for `OBJECT_NAME` constants
434
+
435
+ ## 7.8.0 - 2019-11-05
436
+
437
+ - [#790](https://github.com/stripe/stripe-php/pull/790) Mark nullable fields in PHPDoc
438
+ - [#788](https://github.com/stripe/stripe-php/pull/788) Early codegen fixes
439
+ - [#787](https://github.com/stripe/stripe-php/pull/787) Use PHPStan in Travis CI
440
+
441
+ ## 7.7.1 - 2019-10-25
442
+
443
+ - [#781](https://github.com/stripe/stripe-php/pull/781) Fix telemetry header
444
+ - [#780](https://github.com/stripe/stripe-php/pull/780) Contributor Convenant
445
+
446
+ ## 7.7.0 - 2019-10-23
447
+
448
+ - [#776](https://github.com/stripe/stripe-php/pull/776) Add `CAPABILITY_TRANSFERS` to `Account`
449
+ - [#778](https://github.com/stripe/stripe-php/pull/778) Add support for `TYPE_MX_RFC` type on `TaxId`
450
+
451
+ ## 7.6.0 - 2019-10-22
452
+
453
+ - [#770](https://github.com/stripe/stripe-php/pull/770) Add missing constants for Customer's `TaxId`
454
+
455
+ ## 7.5.0 - 2019-10-18
456
+
457
+ - [#768](https://github.com/stripe/stripe-php/pull/768) Redact API key in `RequestOptions` debug info
458
+
459
+ ## 7.4.0 - 2019-10-15
460
+
461
+ - [#764](https://github.com/stripe/stripe-php/pull/764) Add support for HTTP request monitoring callback
462
+
463
+ ## 7.3.1 - 2019-10-07
464
+
465
+ - [#755](https://github.com/stripe/stripe-php/pull/755) Respect Stripe-Should-Retry and Retry-After headers
466
+
467
+ ## 7.3.0 - 2019-10-02
468
+
469
+ - [#752](https://github.com/stripe/stripe-php/pull/752) Add `payment_intent.canceled` and `setup_intent.canceled` events
470
+ - [#749](https://github.com/stripe/stripe-php/pull/749) Call `toArray()` on objects only
471
+
472
+ ## 7.2.2 - 2019-09-24
473
+
474
+ - [#746](https://github.com/stripe/stripe-php/pull/746) Add missing decline codes
475
+
476
+ ## 7.2.1 - 2019-09-23
477
+
478
+ - [#744](https://github.com/stripe/stripe-php/pull/744) Added new PHPDoc
479
+
480
+ ## 7.2.0 - 2019-09-17
481
+
482
+ - [#738](https://github.com/stripe/stripe-php/pull/738) Added missing constants for `SetupIntent` events
483
+
484
+ ## 7.1.1 - 2019-09-16
485
+
486
+ - [#737](https://github.com/stripe/stripe-php/pull/737) Added new PHPDoc
487
+
488
+ ## 7.1.0 - 2019-09-13
489
+
490
+ - [#736](https://github.com/stripe/stripe-php/pull/736) Make `CaseInsensitiveArray` countable and traversable
491
+
492
+ ## 7.0.2 - 2019-09-06
493
+
494
+ - [#729](https://github.com/stripe/stripe-php/pull/729) Fix usage of `SignatureVerificationException` in PHPDoc blocks
495
+
496
+ ## 7.0.1 - 2019-09-05
497
+
498
+ - [#728](https://github.com/stripe/stripe-php/pull/728) Clean up Collection
499
+
500
+ ## 7.0.0 - 2019-09-03
501
+
502
+ Major version release. The [migration guide](https://github.com/stripe/stripe-php/wiki/Migration-guide-for-v7) contains a detailed list of backwards-incompatible changes with upgrade instructions.
503
+
504
+ Pull requests included in this release (cf. [#552](https://github.com/stripe/stripe-php/pull/552)) (⚠️ = breaking changes):
505
+
506
+ - ⚠️ Drop support for PHP 5.4 ([#551](https://github.com/stripe/stripe-php/pull/551))
507
+ - ⚠️ Drop support for PHP 5.5 ([#554](https://github.com/stripe/stripe-php/pull/554))
508
+ - Bump dependencies ([#553](https://github.com/stripe/stripe-php/pull/553))
509
+ - Remove `CURLFile` check ([#555](https://github.com/stripe/stripe-php/pull/555))
510
+ - Update constant definitions for PHP >= 5.6 ([#556](https://github.com/stripe/stripe-php/pull/556))
511
+ - ⚠️ Remove `FileUpload` alias ([#557](https://github.com/stripe/stripe-php/pull/557))
512
+ - Remove `curl_reset` check ([#570](https://github.com/stripe/stripe-php/pull/570))
513
+ - Use `\Stripe\<class>::class` constant instead of strings ([#643](https://github.com/stripe/stripe-php/pull/643))
514
+ - Use `array_column` to flatten params ([#686](https://github.com/stripe/stripe-php/pull/686))
515
+ - ⚠️ Remove deprecated methods ([#692](https://github.com/stripe/stripe-php/pull/692))
516
+ - ⚠️ Remove `IssuerFraudRecord` ([#696](https://github.com/stripe/stripe-php/pull/696))
517
+ - Update constructors of Stripe exception classes ([#559](https://github.com/stripe/stripe-php/pull/559))
518
+ - Fix remaining TODOs ([#700](https://github.com/stripe/stripe-php/pull/700))
519
+ - Use yield for autopagination ([#703](https://github.com/stripe/stripe-php/pull/703))
520
+ - ⚠️ Rename fake magic methods and rewrite array conversion ([#704](https://github.com/stripe/stripe-php/pull/704))
521
+ - Add `ErrorObject` to Stripe exceptions ([#705](https://github.com/stripe/stripe-php/pull/705))
522
+ - Start using PHP CS Fixer ([#706](https://github.com/stripe/stripe-php/pull/706))
523
+ - Update error messages for nested resource operations ([#708](https://github.com/stripe/stripe-php/pull/708))
524
+ - Upgrade retry logic ([#707](https://github.com/stripe/stripe-php/pull/707))
525
+ - ⚠️ `Collection` improvements / fixes ([#715](https://github.com/stripe/stripe-php/pull/715))
526
+ - ⚠️ Modernize exceptions ([#709](https://github.com/stripe/stripe-php/pull/709))
527
+ - Add constants for error codes ([#716](https://github.com/stripe/stripe-php/pull/716))
528
+ - Update certificate bundle ([#717](https://github.com/stripe/stripe-php/pull/717))
529
+ - Retry requests on a 429 that's a lock timeout ([#718](https://github.com/stripe/stripe-php/pull/718))
530
+ - Fix `toArray()` calls ([#719](https://github.com/stripe/stripe-php/pull/719))
531
+ - Couple of fixes for PHP 7.4 ([#725](https://github.com/stripe/stripe-php/pull/725))
532
+
533
+ ## 6.43.1 - 2019-08-29
534
+
535
+ - [#722](https://github.com/stripe/stripe-php/pull/722) Make `LoggerInterface::error` compatible with its PSR-3 counterpart
536
+ - [#714](https://github.com/stripe/stripe-php/pull/714) Add `pending_setup_intent` property in `Subscription`
537
+ - [#713](https://github.com/stripe/stripe-php/pull/713) Add typehint to `ApiResponse`
538
+ - [#712](https://github.com/stripe/stripe-php/pull/712) Fix comment
539
+ - [#701](https://github.com/stripe/stripe-php/pull/701) Start testing PHP 7.3
540
+
541
+ ## 6.43.0 - 2019-08-09
542
+
543
+ - [#694](https://github.com/stripe/stripe-php/pull/694) Add `SubscriptionItem::createUsageRecord` method
544
+
545
+ ## 6.42.0 - 2019-08-09
546
+
547
+ - [#688](https://github.com/stripe/stripe-php/pull/688) Remove `SubscriptionScheduleRevision`
548
+ - Note that this is technically a breaking change, however we've chosen to release it as a minor version in light of the fact that this resource and its API methods were virtually unused.
549
+
550
+ ## 6.41.0 - 2019-07-31
551
+
552
+ - [#683](https://github.com/stripe/stripe-php/pull/683) Move the List Balance History API to `/v1/balance_transactions`
553
+
554
+ ## 6.40.0 - 2019-06-27
555
+
556
+ - [#675](https://github.com/stripe/stripe-php/pull/675) Add support for `SetupIntent` resource and APIs
557
+
558
+ ## 6.39.2 - 2019-06-26
559
+
560
+ - [#676](https://github.com/stripe/stripe-php/pull/676) Fix exception message in `CustomerBalanceTransaction::update()`
561
+
562
+ ## 6.39.1 - 2019-06-25
563
+
564
+ - [#674](https://github.com/stripe/stripe-php/pull/674) Add new constants for `collection_method` on `Invoice`
565
+
566
+ ## 6.39.0 - 2019-06-24
567
+
568
+ - [#673](https://github.com/stripe/stripe-php/pull/673) Enable request latency telemetry by default
569
+
570
+ ## 6.38.0 - 2019-06-17
571
+
572
+ - [#649](https://github.com/stripe/stripe-php/pull/649) Add support for `CustomerBalanceTransaction` resource and APIs
573
+
574
+ ## 6.37.2 - 2019-06-17
575
+
576
+ - [#671](https://github.com/stripe/stripe-php/pull/671) Add new PHPDoc
577
+ - [#672](https://github.com/stripe/stripe-php/pull/672) Add constants for `submit_type` on Checkout `Session`
578
+
579
+ ## 6.37.1 - 2019-06-14
580
+
581
+ - [#670](https://github.com/stripe/stripe-php/pull/670) Add new PHPDoc
582
+
583
+ ## 6.37.0 - 2019-05-23
584
+
585
+ - [#663](https://github.com/stripe/stripe-php/pull/663) Add support for `radar.early_fraud_warning` resource
586
+
587
+ ## 6.36.0 - 2019-05-22
588
+
589
+ - [#661](https://github.com/stripe/stripe-php/pull/661) Add constants for new TaxId types
590
+ - [#662](https://github.com/stripe/stripe-php/pull/662) Add constants for BalanceTransaction types
591
+
592
+ ## 6.35.2 - 2019-05-20
593
+
594
+ - [#655](https://github.com/stripe/stripe-php/pull/655) Add constants for payment intent statuses
595
+ - [#659](https://github.com/stripe/stripe-php/pull/659) Fix PHPDoc for various nested Account actions
596
+ - [#660](https://github.com/stripe/stripe-php/pull/660) Fix various PHPDoc
597
+
598
+ ## 6.35.1 - 2019-05-20
599
+
600
+ - [#658](https://github.com/stripe/stripe-php/pull/658) Use absolute value when checking timestamp tolerance
601
+
602
+ ## 6.35.0 - 2019-05-14
603
+
604
+ - [#651](https://github.com/stripe/stripe-php/pull/651) Add support for the Capability resource and APIs
605
+
606
+ ## 6.34.6 - 2019-05-13
607
+
608
+ - [#654](https://github.com/stripe/stripe-php/pull/654) Fix typo in definition of `Event::PAYMENT_METHOD_ATTACHED` constant
609
+
610
+ ## 6.34.5 - 2019-05-06
611
+
612
+ - [#647](https://github.com/stripe/stripe-php/pull/647) Set the return type to static for more operations
613
+
614
+ ## 6.34.4 - 2019-05-06
615
+
616
+ - [#650](https://github.com/stripe/stripe-php/pull/650) Add missing constants for Event types
617
+
618
+ ## 6.34.3 - 2019-05-01
619
+
620
+ - [#644](https://github.com/stripe/stripe-php/pull/644) Update return type to `static` to improve static analysis
621
+ - [#645](https://github.com/stripe/stripe-php/pull/645) Fix constant for `payment_intent.payment_failed`
622
+
623
+ ## 6.34.2 - 2019-04-26
624
+
625
+ - [#642](https://github.com/stripe/stripe-php/pull/642) Fix an issue where existing idempotency keys would be overwritten when using automatic retries
626
+
627
+ ## 6.34.1 - 2019-04-25
628
+
629
+ - [#640](https://github.com/stripe/stripe-php/pull/640) Add missing phpdocs
630
+
631
+ ## 6.34.0 - 2019-04-24
632
+
633
+ - [#626](https://github.com/stripe/stripe-php/pull/626) Add support for the `TaxRate` resource and APIs
634
+ - [#639](https://github.com/stripe/stripe-php/pull/639) Fix multiple phpdoc issues
635
+
636
+ ## 6.33.0 - 2019-04-22
637
+
638
+ - [#630](https://github.com/stripe/stripe-php/pull/630) Add support for the `TaxId` resource and APIs
639
+
640
+ ## 6.32.1 - 2019-04-19
641
+
642
+ - [#636](https://github.com/stripe/stripe-php/pull/636) Correct type of `$personId` in PHPDoc
643
+
644
+ ## 6.32.0 - 2019-04-18
645
+
646
+ - [#621](https://github.com/stripe/stripe-php/pull/621) Add support for `CreditNote`
647
+
648
+ ## 6.31.5 - 2019-04-12
649
+
650
+ - [#628](https://github.com/stripe/stripe-php/pull/628) Add constants for `person.*` event types
651
+ - [#628](https://github.com/stripe/stripe-php/pull/628) Add missing constants for `Account` and `Person`
652
+
653
+ ## 6.31.4 - 2019-04-05
654
+
655
+ - [#624](https://github.com/stripe/stripe-php/pull/624) Fix encoding of nested parameters in multipart requests
656
+
657
+ ## 6.31.3 - 2019-04-02
658
+
659
+ - [#623](https://github.com/stripe/stripe-php/pull/623) Only use HTTP/2 with curl >= 7.60.0
660
+
661
+ ## 6.31.2 - 2019-03-25
662
+
663
+ - [#619](https://github.com/stripe/stripe-php/pull/619) Fix PHPDoc return types for list methods for nested resources
664
+
665
+ ## 6.31.1 - 2019-03-22
666
+
667
+ - [#612](https://github.com/stripe/stripe-php/pull/612) Add a lot of constants
668
+ - [#614](https://github.com/stripe/stripe-php/pull/614) Add missing subscription status constants
669
+
670
+ ## 6.31.0 - 2019-03-18
671
+
672
+ - [#600](https://github.com/stripe/stripe-php/pull/600) Add support for the `PaymentMethod` resource and APIs
673
+ - [#606](https://github.com/stripe/stripe-php/pull/606) Add support for retrieving a Checkout `Session`
674
+ - [#611](https://github.com/stripe/stripe-php/pull/611) Add support for deleting a Terminal `Location` and `Reader`
675
+
676
+ ## 6.30.5 - 2019-03-11
677
+
678
+ - [#607](https://github.com/stripe/stripe-php/pull/607) Correctly handle case where a metadata key is called `metadata`
679
+
680
+ ## 6.30.4 - 2019-02-27
681
+
682
+ - [#602](https://github.com/stripe/stripe-php/pull/602) Add `subscription_schedule` to `Subscription` for PHPDoc.
683
+
684
+ ## 6.30.3 - 2019-02-26
685
+
686
+ - [#603](https://github.com/stripe/stripe-php/pull/603) Improve PHPDoc on the `Source` object to cover all types of Sources currently supported.
687
+
688
+ ## 6.30.2 - 2019-02-25
689
+
690
+ - [#601](https://github.com/stripe/stripe-php/pull/601) Fix PHPDoc across multiple resources and add support for new events.
691
+
692
+ ## 6.30.1 - 2019-02-16
693
+
694
+ - [#599](https://github.com/stripe/stripe-php/pull/599) Fix PHPDoc for `SubscriptionSchedule` and `SubscriptionScheduleRevision`
695
+
696
+ ## 6.30.0 - 2019-02-12
697
+
698
+ - [#590](https://github.com/stripe/stripe-php/pull/590) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision`
699
+
700
+ ## 6.29.3 - 2019-01-31
701
+
702
+ - [#592](https://github.com/stripe/stripe-php/pull/592) Some more PHPDoc fixes
703
+
704
+ ## 6.29.2 - 2019-01-31
705
+
706
+ - [#591](https://github.com/stripe/stripe-php/pull/591) Fix PHPDoc for nested resources
707
+
708
+ ## 6.29.1 - 2019-01-25
709
+
710
+ - [#566](https://github.com/stripe/stripe-php/pull/566) Fix dangling message contents
711
+ - [#586](https://github.com/stripe/stripe-php/pull/586) Don't overwrite `CURLOPT_HTTP_VERSION` option
712
+
713
+ ## 6.29.0 - 2019-01-23
714
+
715
+ - [#579](https://github.com/stripe/stripe-php/pull/579) Rename `CheckoutSession` to `Session` and move it under the `Checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach.
716
+
717
+ ## 6.28.1 - 2019-01-21
718
+
719
+ - [#580](https://github.com/stripe/stripe-php/pull/580) Properly serialize `individual` on `Account` objects
720
+
721
+ ## 6.28.0 - 2019-01-03
722
+
723
+ - [#576](https://github.com/stripe/stripe-php/pull/576) Add support for iterating directly over `Collection` instances
724
+
725
+ ## 6.27.0 - 2018-12-21
726
+
727
+ - [#571](https://github.com/stripe/stripe-php/pull/571) Add support for the `CheckoutSession` resource
728
+
729
+ ## 6.26.0 - 2018-12-11
730
+
731
+ - [#568](https://github.com/stripe/stripe-php/pull/568) Enable persistent connections
732
+
733
+ ## 6.25.0 - 2018-12-10
734
+
735
+ - [#567](https://github.com/stripe/stripe-php/pull/567) Add support for account links
736
+
737
+ ## 6.24.0 - 2018-11-28
738
+
739
+ - [#562](https://github.com/stripe/stripe-php/pull/562) Add support for the Review resource
740
+ - [#564](https://github.com/stripe/stripe-php/pull/564) Add event name constants for subscription schedule aborted/expiring
741
+
742
+ ## 6.23.0 - 2018-11-27
743
+
744
+ - [#542](https://github.com/stripe/stripe-php/pull/542) Add support for `ValueList` and `ValueListItem` for Radar
745
+
746
+ ## 6.22.1 - 2018-11-20
747
+
748
+ - [#561](https://github.com/stripe/stripe-php/pull/561) Add cast and some docs to telemetry introduced in 6.22.0/549
749
+
750
+ ## 6.22.0 - 2018-11-15
751
+
752
+ - [#549](https://github.com/stripe/stripe-php/pull/549) Add support for client telemetry
753
+
754
+ ## 6.21.1 - 2018-11-12
755
+
756
+ - [#548](https://github.com/stripe/stripe-php/pull/548) Don't mutate `Exception` class properties from `OAuthBase` error
757
+
758
+ ## 6.21.0 - 2018-11-08
759
+
760
+ - [#537](https://github.com/stripe/stripe-php/pull/537) Add new API endpoints for the `Invoice` resource.
761
+
762
+ ## 6.20.1 - 2018-11-07
763
+
764
+ - [#546](https://github.com/stripe/stripe-php/pull/546) Drop files from the Composer package that aren't needed in the release
765
+
766
+ ## 6.20.0 - 2018-10-30
767
+
768
+ - [#536](https://github.com/stripe/stripe-php/pull/536) Add support for the `Person` resource
769
+ - [#541](https://github.com/stripe/stripe-php/pull/541) Add support for the `WebhookEndpoint` resource
770
+
771
+ ## 6.19.5 - 2018-10-17
772
+
773
+ - [#539](https://github.com/stripe/stripe-php/pull/539) Fix methods on `\Stripe\PaymentIntent` to properly pass arguments to the API.
774
+
775
+ ## 6.19.4 - 2018-10-11
776
+
777
+ - [#534](https://github.com/stripe/stripe-php/pull/534) Fix PSR-4 autoloading for `\Stripe\FileUpload` class alias
778
+
779
+ ## 6.19.3 - 2018-10-09
780
+
781
+ - [#530](https://github.com/stripe/stripe-php/pull/530) Add constants for `flow` (`FLOW_*`), `status` (`STATUS_*`) and `usage` (`USAGE_*`) on `\Stripe\Source`
782
+
783
+ ## 6.19.2 - 2018-10-08
784
+
785
+ - [#531](https://github.com/stripe/stripe-php/pull/531) Store HTTP response headers in case-insensitive array
786
+
787
+ ## 6.19.1 - 2018-09-25
788
+
789
+ - [#526](https://github.com/stripe/stripe-php/pull/526) Ignore null values in request parameters
790
+
791
+ ## 6.19.0 - 2018-09-24
792
+
793
+ - [#523](https://github.com/stripe/stripe-php/pull/523) Add support for Stripe Terminal
794
+
795
+ ## 6.18.0 - 2018-09-24
796
+
797
+ - [#520](https://github.com/stripe/stripe-php/pull/520) Rename `\Stripe\FileUpload` to `\Stripe\File`
798
+
799
+ ## 6.17.2 - 2018-09-18
800
+
801
+ - [#522](https://github.com/stripe/stripe-php/pull/522) Fix warning when adding a new additional owner to an existing array
802
+
803
+ ## 6.17.1 - 2018-09-14
804
+
805
+ - [#517](https://github.com/stripe/stripe-php/pull/517) Integer-index encode all sequential arrays
806
+
807
+ ## 6.17.0 - 2018-09-05
808
+
809
+ - [#514](https://github.com/stripe/stripe-php/pull/514) Add support for reporting resources
810
+
811
+ ## 6.16.0 - 2018-08-23
812
+
813
+ - [#509](https://github.com/stripe/stripe-php/pull/509) Add support for usage record summaries
814
+
815
+ ## 6.15.0 - 2018-08-03
816
+
817
+ - [#504](https://github.com/stripe/stripe-php/pull/504) Add cancel support for topups
818
+
819
+ ## 6.14.0 - 2018-08-02
820
+
821
+ - [#505](https://github.com/stripe/stripe-php/pull/505) Add support for file links
822
+
823
+ ## 6.13.0 - 2018-07-31
824
+
825
+ - [#502](https://github.com/stripe/stripe-php/pull/502) Add `isDeleted()` method to `\Stripe\StripeObject`
826
+
827
+ ## 6.12.0 - 2018-07-28
828
+
829
+ - [#501](https://github.com/stripe/stripe-php/pull/501) Add support for scheduled query runs (`\Stripe\Sigma\ScheduledQueryRun`) for Sigma
830
+
831
+ ## 6.11.0 - 2018-07-26
832
+
833
+ - [#500](https://github.com/stripe/stripe-php/pull/500) Add support for Stripe Issuing
834
+
835
+ ## 6.10.4 - 2018-07-19
836
+
837
+ - [#498](https://github.com/stripe/stripe-php/pull/498) Internal improvements to the `\Stripe\ApiResource.classUrl()` method
838
+
839
+ ## 6.10.3 - 2018-07-16
840
+
841
+ - [#497](https://github.com/stripe/stripe-php/pull/497) Use HTTP/2 only for HTTPS requests
842
+
843
+ ## 6.10.2 - 2018-07-11
844
+
845
+ - [#494](https://github.com/stripe/stripe-php/pull/494) Enable HTTP/2 support
846
+
847
+ ## 6.10.1 - 2018-07-10
848
+
849
+ - [#493](https://github.com/stripe/stripe-php/pull/493) Add PHPDoc for `auto_advance` on `\Stripe\Invoice`
850
+
851
+ ## 6.10.0 - 2018-06-28
852
+
853
+ - [#488](https://github.com/stripe/stripe-php/pull/488) Add support for `$appPartnerId` to `Stripe::setAppInfo()`
854
+
855
+ ## 6.9.0 - 2018-06-28
856
+
857
+ - [#487](https://github.com/stripe/stripe-php/pull/487) Add support for payment intents
858
+
859
+ ## 6.8.2 - 2018-06-24
860
+
861
+ - [#486](https://github.com/stripe/stripe-php/pull/486) Make `Account.deauthorize()` return the `StripeObject` from the API
862
+
863
+ ## 6.8.1 - 2018-06-13
864
+
865
+ - [#472](https://github.com/stripe/stripe-php/pull/472) Added phpDoc for `ApiRequestor` and others, especially regarding thrown errors
866
+
867
+ ## 6.8.0 - 2018-06-13
868
+
869
+ - [#481](https://github.com/stripe/stripe-php/pull/481) Add new `\Stripe\Discount` and `\Stripe\OrderItem` classes, add more PHPDoc describing object attributes
870
+
871
+ ## 6.7.4 - 2018-05-29
872
+
873
+ - [#480](https://github.com/stripe/stripe-php/pull/480) PHPDoc changes for API version 2018-05-21 and the addition of the new `CHARGE_EXPIRED` event type
874
+
875
+ ## 6.7.3 - 2018-05-28
876
+
877
+ - [#479](https://github.com/stripe/stripe-php/pull/479) Fix unnecessary traits on `\Stripe\InvoiceLineItem`
878
+
879
+ ## 6.7.2 - 2018-05-28
880
+
881
+ - [#471](https://github.com/stripe/stripe-php/pull/471) Add `OBJECT_NAME` constant to all API resource classes, add `\Stripe\InvoiceLineItem` class
882
+
883
+ ## 6.7.1 - 2018-05-13
884
+
885
+ - [#468](https://github.com/stripe/stripe-php/pull/468) Update fields in PHP docs for accuracy
886
+
887
+ ## 6.7.0 - 2018-05-09
888
+
889
+ - [#466](https://github.com/stripe/stripe-php/pull/466) Add support for issuer fraud records
890
+
891
+ ## 6.6.0 - 2018-04-11
892
+
893
+ - [#460](https://github.com/stripe/stripe-php/pull/460) Add support for flexible billing primitives
894
+
895
+ ## 6.5.0 - 2018-04-05
896
+
897
+ - [#461](https://github.com/stripe/stripe-php/pull/461) Don't zero keys on non-`metadata` subobjects
898
+
899
+ ## 6.4.2 - 2018-03-17
900
+
901
+ - [#458](https://github.com/stripe/stripe-php/pull/458) Add PHPDoc for `account` on `\Stripe\Event`
902
+
903
+ ## 6.4.1 - 2018-03-02
904
+
905
+ - [#455](https://github.com/stripe/stripe-php/pull/455) Fix namespaces in PHPDoc
906
+ - [#456](https://github.com/stripe/stripe-php/pull/456) Fix namespaces for some exceptions
907
+
908
+ ## 6.4.0 - 2018-02-28
909
+
910
+ - [#453](https://github.com/stripe/stripe-php/pull/453) Add constants for `reason` (`REASON_*`) and `status` (`STATUS_*`) on `\Stripe\Dispute`
911
+
912
+ ## 6.3.2 - 2018-02-27
913
+
914
+ - [#452](https://github.com/stripe/stripe-php/pull/452) Add PHPDoc for `amount_paid` and `amount_remaining` on `\Stripe\Invoice`
915
+
916
+ ## 6.3.1 - 2018-02-26
917
+
918
+ - [#443](https://github.com/stripe/stripe-php/pull/443) Add event types as constants to `\Stripe\Event` class
919
+
920
+ ## 6.3.0 - 2018-02-23
921
+
922
+ - [#450](https://github.com/stripe/stripe-php/pull/450) Add support for `code` attribute on all Stripe exceptions
923
+
924
+ ## 6.2.0 - 2018-02-21
925
+
926
+ - [#440](https://github.com/stripe/stripe-php/pull/440) Add support for topups
927
+ - [#442](https://github.com/stripe/stripe-php/pull/442) Fix PHPDoc for `\Stripe\Error\SignatureVerification`
928
+
929
+ ## 6.1.0 - 2018-02-12
930
+
931
+ - [#435](https://github.com/stripe/stripe-php/pull/435) Fix header persistence on `Collection` objects
932
+ - [#436](https://github.com/stripe/stripe-php/pull/436) Introduce new `Idempotency` error class
933
+
934
+ ## 6.0.0 - 2018-02-07
935
+
936
+ Major version release. List of backwards incompatible changes to watch out for:
937
+
938
+ - The minimum PHP version is now 5.4.0. If you're using PHP 5.3 or older, consider upgrading to a more recent version.
939
+
940
+ * `\Stripe\AttachedObject` no longer exists. Attributes that used to be instances of `\Stripe\AttachedObject` (such as `metadata`) are now instances of `\Stripe\StripeObject`.
941
+
942
+ - Attributes that used to be PHP arrays (such as `legal_entity->additional_owners` on `\Stripe\Account` instances) are now instances of `\Stripe\StripeObject`, except when they are empty. `\Stripe\StripeObject` has array semantics so this should not be an issue unless you are actively checking types.
943
+
944
+ * `\Stripe\Collection` now derives from `\Stripe\StripeObject` rather than from `\Stripe\ApiResource`.
945
+
946
+ Pull requests included in this release:
947
+
948
+ - [#410](https://github.com/stripe/stripe-php/pull/410) Drop support for PHP 5.3
949
+ - [#411](https://github.com/stripe/stripe-php/pull/411) Use traits for common API operations
950
+ - [#414](https://github.com/stripe/stripe-php/pull/414) Use short array syntax
951
+ - [#404](https://github.com/stripe/stripe-php/pull/404) Fix serialization logic
952
+ - [#417](https://github.com/stripe/stripe-php/pull/417) Remove `ExternalAccount` class
953
+ - [#418](https://github.com/stripe/stripe-php/pull/418) Increase test coverage
954
+ - [#421](https://github.com/stripe/stripe-php/pull/421) Update CA bundle and add script for future updates
955
+ - [#422](https://github.com/stripe/stripe-php/pull/422) Use vendored CA bundle for all requests
956
+ - [#428](https://github.com/stripe/stripe-php/pull/428) Support for automatic request retries
957
+
958
+ ## 5.9.2 - 2018-02-07
959
+
960
+ - [#431](https://github.com/stripe/stripe-php/pull/431) Update PHPDoc @property tags for latest API version
961
+
962
+ ## 5.9.1 - 2018-02-06
963
+
964
+ - [#427](https://github.com/stripe/stripe-php/pull/427) Add and update PHPDoc @property tags on all API resources
965
+
966
+ ## 5.9.0 - 2018-01-17
967
+
968
+ - [#421](https://github.com/stripe/stripe-php/pull/421) Updated bundled CA certificates
969
+ - [#423](https://github.com/stripe/stripe-php/pull/423) Escape unsanitized input in OAuth example
970
+
971
+ ## 5.8.0 - 2017-12-20
972
+
973
+ - [#403](https://github.com/stripe/stripe-php/pull/403) Add `__debugInfo()` magic method to `StripeObject`
974
+
975
+ ## 5.7.0 - 2017-11-28
976
+
977
+ - [#390](https://github.com/stripe/stripe-php/pull/390) Remove some unsupported API methods
978
+ - [#391](https://github.com/stripe/stripe-php/pull/391) Alphabetize the list of API resources in `Util::convertToStripeObject()` and add missing resources
979
+ - [#393](https://github.com/stripe/stripe-php/pull/393) Fix expiry date update for card sources
980
+
981
+ ## 5.6.0 - 2017-10-31
982
+
983
+ - [#386](https://github.com/stripe/stripe-php/pull/386) Support for exchange rates APIs
984
+
985
+ ## 5.5.1 - 2017-10-30
986
+
987
+ - [#387](https://github.com/stripe/stripe-php/pull/387) Allow `personal_address_kana` and `personal_address_kanji` to be updated on an account
988
+
989
+ ## 5.5.0 - 2017-10-27
990
+
991
+ - [#385](https://github.com/stripe/stripe-php/pull/385) Support for listing source transactions
992
+
993
+ ## 5.4.0 - 2017-10-24
994
+
995
+ - [#383](https://github.com/stripe/stripe-php/pull/383) Add static methods to manipulate resources from parent
996
+ - `Account` gains methods for external accounts and login links (e.g. `createExternalAccount`, `createLoginLink`)
997
+ - `ApplicationFee` gains methods for refunds
998
+ - `Customer` gains methods for sources
999
+ - `Transfer` gains methods for reversals
1000
+
1001
+ ## 5.3.0 - 2017-10-11
1002
+
1003
+ - [#378](https://github.com/stripe/stripe-php/pull/378) Rename source `delete` to `detach` (and deprecate the former)
1004
+
1005
+ ## 5.2.3 - 2017-09-27
1006
+
1007
+ - Add PHPDoc for `Card`
1008
+
1009
+ ## 5.2.2 - 2017-09-20
1010
+
1011
+ - Fix deserialization mapping of `FileUpload` objects
1012
+
1013
+ ## 5.2.1 - 2017-09-14
1014
+
1015
+ - Serialized `shipping` nested attribute
1016
+
1017
+ ## 5.2.0 - 2017-08-29
1018
+
1019
+ - Add support for `InvalidClient` OAuth error
1020
+
1021
+ ## 5.1.3 - 2017-08-14
1022
+
1023
+ - Allow `address_kana` and `address_kanji` to be updated for custom accounts
1024
+
1025
+ ## 5.1.2 - 2017-08-01
1026
+
1027
+ - Fix documented return type of `autoPagingIterator()` (was missing namespace)
1028
+
1029
+ ## 5.1.1 - 2017-07-03
1030
+
1031
+ - Fix order returns to use the right URL `/v1/order_returns`
1032
+
1033
+ ## 5.1.0 - 2017-06-30
1034
+
1035
+ - Add support for OAuth
1036
+
1037
+ ## 5.0.0 - 2017-06-27
1038
+
1039
+ - `pay` on invoice now takes params as well as opts
1040
+
1041
+ ## 4.13.0 - 2017-06-19
1042
+
1043
+ - Add support for ephemeral keys
1044
+
1045
+ ## 4.12.0 - 2017-06-05
1046
+
1047
+ - Clients can implement `getUserAgentInfo()` to add additional user agent information
1048
+
1049
+ ## 4.11.0 - 2017-06-05
1050
+
1051
+ - Implement `Countable` for `AttachedObject` (`metadata` and `additional_owners`)
1052
+
1053
+ ## 4.10.0 - 2017-05-25
1054
+
1055
+ - Add support for login links
1056
+
1057
+ ## 4.9.1 - 2017-05-10
1058
+
1059
+ - Fix docs to include arrays on `$id` parameter for retrieve methods
1060
+
1061
+ ## 4.9.0 - 2017-04-28
1062
+
1063
+ - Support for checking webhook signatures
1064
+
1065
+ ## 4.8.1 - 2017-04-24
1066
+
1067
+ - Allow nested field `payout_schedule` to be updated
1068
+
1069
+ ## 4.8.0 - 2017-04-20
1070
+
1071
+ - Add `\Stripe\Stripe::setLogger()` to support an external PSR-3 compatible logger
1072
+
1073
+ ## 4.7.0 - 2017-04-10
1074
+
1075
+ - Add support for payouts and recipient transfers
1076
+
1077
+ ## 4.6.0 - 2017-04-06
1078
+
1079
+ - Please see 4.7.0 instead (no-op release)
1080
+
1081
+ ## 4.5.1 - 2017-03-22
1082
+
1083
+ - Remove hard dependency on cURL
1084
+
1085
+ ## 4.5.0 - 2017-03-20
1086
+
1087
+ - Support for detaching sources from customers
1088
+
1089
+ ## 4.4.2 - 2017-02-27
1090
+
1091
+ - Correct handling of `owner` parameter when updating sources
1092
+
1093
+ ## 4.4.1 - 2017-02-24
1094
+
1095
+ - Correct the error check on a bad JSON decoding
1096
+
1097
+ ## 4.4.0 - 2017-01-18
1098
+
1099
+ - Add support for updating sources
1100
+
1101
+ ## 4.3.0 - 2016-11-30
1102
+
1103
+ - Add support for verifying sources
1104
+
1105
+ ## 4.2.0 - 2016-11-21
1106
+
1107
+ - Add retrieve method for 3-D Secure resources
1108
+
1109
+ ## 4.1.1 - 2016-10-21
1110
+
1111
+ - Add docblock with model properties for `Plan`
1112
+
1113
+ ## 4.1.0 - 2016-10-18
1114
+
1115
+ - Support for 403 status codes (permission denied)
1116
+
1117
+ ## 4.0.1 - 2016-10-17
1118
+
1119
+ - Fix transfer reversal materialization
1120
+ - Fixes for some property definitions in docblocks
1121
+
1122
+ ## 4.0.0 - 2016-09-28
1123
+
1124
+ - Support for subscription items
1125
+ - Drop attempt to force TLS 1.2: please note that this could be breaking if you're using old OS distributions or packages and upgraded recently (so please make sure to test your integration!)
1126
+
1127
+ ## 3.23.0 - 2016-09-15
1128
+
1129
+ - Add support for Apple Pay domains
1130
+
1131
+ ## 3.22.0 - 2016-09-13
1132
+
1133
+ - Add `Stripe::setAppInfo` to allow plugins to register user agent information
1134
+
1135
+ ## 3.21.0 - 2016-08-25
1136
+
1137
+ - Add `Source` model for generic payment sources
1138
+
1139
+ ## 3.20.0 - 2016-08-08
1140
+
1141
+ - Add `getDeclineCode` to card errors
1142
+
1143
+ ## 3.19.0 - 2016-07-29
1144
+
1145
+ - Opt requests directly into TLS 1.2 where OpenSSL >= 1.0.1 (see #277 for context)
1146
+
1147
+ ## 3.18.0 - 2016-07-28
1148
+
1149
+ - Add new `STATUS_` constants for subscriptions
1150
+
1151
+ ## 3.17.1 - 2016-07-28
1152
+
1153
+ - Fix auto-paging iterator so that it plays nicely with `iterator_to_array`
1154
+
1155
+ ## 3.17.0 - 2016-07-14
1156
+
1157
+ - Add field annotations to model classes for better editor hinting
1158
+
1159
+ ## 3.16.0 - 2016-07-12
1160
+
1161
+ - Add `ThreeDSecure` model for 3-D secure payments
1162
+
1163
+ ## 3.15.0 - 2016-06-29
1164
+
1165
+ - Add static `update` method to all resources that can be changed.
1166
+
1167
+ ## 3.14.3 - 2016-06-20
1168
+
1169
+ - Make sure that cURL never sends `Expects: 100-continue`, even on large request bodies
1170
+
1171
+ ## 3.14.2 - 2016-06-03
1172
+
1173
+ - Add `inventory` under `SKU` to list of keys that have nested data and can be updated
1174
+
1175
+ ## 3.14.1 - 2016-05-27
1176
+
1177
+ - Fix some inconsistencies in PHPDoc
1178
+
1179
+ ## 3.14.0 - 2016-05-25
1180
+
1181
+ - Add support for returning Relay orders
1182
+
1183
+ ## 3.13.0 - 2016-05-04
1184
+
1185
+ - Add `list`, `create`, `update`, `retrieve`, and `delete` methods to the Subscription class
1186
+
1187
+ ## 3.12.1 - 2016-04-07
1188
+
1189
+ - Additional check on value arrays for some extra safety
1190
+
1191
+ ## 3.12.0 - 2016-03-31
1192
+
1193
+ - Fix bug `refreshFrom` on `StripeObject` would not take an `$opts` array
1194
+ - Fix bug where `$opts` not passed to parent `save` method in `Account`
1195
+ - Fix bug where non-existent variable was referenced in `reverse` in `Transfer`
1196
+ - Update CA cert bundle for compatibility with OpenSSL versions below 1.0.1
1197
+
1198
+ ## 3.11.0 - 2016-03-22
1199
+
1200
+ - Allow `CurlClient` to be initialized with default `CURLOPT_*` options
1201
+
1202
+ ## 3.10.1 - 2016-03-22
1203
+
1204
+ - Fix bug where request params and options were ignored in `ApplicationFee`'s `refund.`
1205
+
1206
+ ## 3.10.0 - 2016-03-15
1207
+
1208
+ - Add `reject` on `Account` to support the new API feature
1209
+
1210
+ ## 3.9.2 - 2016-03-04
1211
+
1212
+ - Fix error when an object's metadata is set more than once
1213
+
1214
+ ## 3.9.1 - 2016-02-24
1215
+
1216
+ - Fix encoding behavior of nested arrays for requests (see #227)
1217
+
1218
+ ## 3.9.0 - 2016-02-09
1219
+
1220
+ - Add automatic pagination mechanism with `autoPagingIterator()`
1221
+ - Allow global account ID to be set with `Stripe::setAccountId()`
1222
+
1223
+ ## 3.8.0 - 2016-02-08
1224
+
1225
+ - Add `CountrySpec` model for looking up country payment information
1226
+
1227
+ ## 3.7.1 - 2016-02-01
1228
+
1229
+ - Update bundled CA certs
1230
+
1231
+ ## 3.7.0 - 2016-01-27
1232
+
1233
+ - Support deleting Relay products and SKUs
1234
+
1235
+ ## 3.6.0 - 2016-01-05
1236
+
1237
+ - Allow configuration of HTTP client timeouts
1238
+
1239
+ ## 3.5.0 - 2015-12-01
1240
+
1241
+ - Add a verification routine for external accounts
1242
+
1243
+ ## 3.4.0 - 2015-09-14
1244
+
1245
+ - Products, SKUs, and Orders -- https://stripe.com/relay
1246
+
1247
+ ## 3.3.0 - 2015-09-11
1248
+
1249
+ - Add support for 429 Rate Limit response
1250
+
1251
+ ## 3.2.0 - 2015-08-17
1252
+
1253
+ - Add refund listing and retrieval without an associated charge
1254
+
1255
+ ## 3.1.0 - 2015-08-03
1256
+
1257
+ - Add dispute listing and retrieval
1258
+ - Add support for manage account deletion
1259
+
1260
+ ## 3.0.0 - 2015-07-28
1261
+
1262
+ - Rename `\Stripe\Object` to `\Stripe\StripeObject` (PHP 7 compatibility)
1263
+ - Rename `getCode` and `getParam` in exceptions to `getStripeCode` and `getStripeParam`
1264
+ - Add support for calling `json_encode` on Stripe objects in PHP 5.4+
1265
+ - Start supporting/testing PHP 7
1266
+
1267
+ ## 2.3.0 - 2015-07-06
1268
+
1269
+ - Add request ID to all Stripe exceptions
1270
+
1271
+ ## 2.2.0 - 2015-06-01
1272
+
1273
+ - Add support for Alipay accounts as sources
1274
+ - Add support for bank accounts as sources (private beta)
1275
+ - Add support for bank accounts and cards as external_accounts on Account objects
1276
+
1277
+ ## 2.1.4 - 2015-05-13
1278
+
1279
+ - Fix CA certificate file path (thanks @lphilps & @matthewarkin)
1280
+
1281
+ ## 2.1.3 - 2015-05-12
1282
+
1283
+ - Fix to account updating to permit `tos_acceptance` and `personal_address` to be set properly
1284
+ - Fix to Transfer reversal creation (thanks @neatness!)
1285
+ - Network requests are now done through a swappable class for easier mocking
1286
+
1287
+ ## 2.1.2 - 2015-04-10
1288
+
1289
+ - Remove SSL cert revokation checking (all pre-Heartbleed certs have expired)
1290
+ - Bug fixes to account updating
1291
+
1292
+ ## 2.1.1 - 2015-02-27
1293
+
1294
+ - Support transfer reversals
1295
+
1296
+ ## 2.1.0 - 2015-02-19
1297
+
1298
+ - Support new API version (2015-02-18)
1299
+ - Added Bitcoin Receiever update and delete actions
1300
+ - Edited tests to prefer "source" over "card" as per new API version
1301
+
1302
+ ## 2.0.1 - 2015-02-16
1303
+
1304
+ - Fix to fetching endpoints that use a non-default baseUrl (`FileUpload`)
1305
+
1306
+ ## 2.0.0 - 2015-02-14
1307
+
1308
+ - Bumped minimum version to 5.3.3
1309
+ - Switched to Stripe namespace instead of Stripe\_ class name prefiexes (thanks @chadicus!)
1310
+ - Switched tests to PHPUnit (thanks @chadicus!)
1311
+ - Switched style guide to PSR2 (thanks @chadicus!)
1312
+ - Added \$opts hash to the end of most methods: this permits passing 'idempotency_key', 'stripe_account', or 'stripe_version'. The last 2 will persist across multiple object loads.
1313
+ - Added support for retrieving Account by ID
1314
+
1315
+ ## 1.18.0 - 2015-01-21
1316
+
1317
+ - Support making bitcoin charges through BitcoinReceiver source object
1318
+
1319
+ ## 1.17.5 - 2014-12-23
1320
+
1321
+ - Adding support for creating file uploads.
1322
+
1323
+ ## 1.17.4 - 2014-12-15
1324
+
1325
+ - Saving objects fetched with a custom key now works (thanks @JustinHook & @jpasilan)
1326
+ - Added methods for reporting charges as safe or fraudulent and for specifying the reason for refunds
1327
+
1328
+ ## 1.17.3 - 2014-11-06
1329
+
1330
+ - Better handling of HHVM support for SSL certificate blacklist checking.
1331
+
1332
+ ## 1.17.2 - 2014-09-23
1333
+
1334
+ - Coupons now are backed by a `Stripe_Coupon` instead of `Stripe_Object`, and support updating metadata
1335
+ - Running operations (`create`, `retrieve`, `all`) on upcoming invoice items now works
1336
+
1337
+ ## 1.17.1 - 2014-07-31
1338
+
1339
+ - Requests now send Content-Type header
1340
+
1341
+ ## 1.17.0 - 2014-07-29
1342
+
1343
+ - Application Fee refunds now a list instead of array
1344
+ - HHVM now works
1345
+ - Small bug fixes (thanks @bencromwell & @fastest963)
1346
+ - `__toString` now returns the name of the object in addition to its JSON representation
1347
+
1348
+ ## 1.16.0 - 2014-06-17
1349
+
1350
+ - Add metadata for refunds and disputes
1351
+
1352
+ ## 1.15.0 - 2014-05-28
1353
+
1354
+ - Support canceling transfers
1355
+
1356
+ ## 1.14.1 - 2014-05-21
1357
+
1358
+ - Support cards for recipients.
1359
+
1360
+ ## 1.13.1 - 2014-05-15
1361
+
1362
+ - Fix bug in account resource where `id` wasn't in the result
1363
+
1364
+ ## 1.13.0 - 2014-04-10
1365
+
1366
+ - Add support for certificate blacklisting
1367
+ - Update ca bundle
1368
+ - Drop support for HHVM (Temporarily)
1369
+
1370
+ ## 1.12.0 - 2014-04-01
1371
+
1372
+ - Add Stripe_RateLimitError for catching rate limit errors.
1373
+ - Update to Zend coding style (thanks, @jpiasetz)
1374
+
1375
+ ## 1.11.0 - 2014-01-29
1376
+
1377
+ - Add support for multiple subscriptions per customer
1378
+
1379
+ ## 1.10.1 - 2013-12-02
1380
+
1381
+ - Add new ApplicationFee
1382
+
1383
+ ## 1.9.1 - 2013-11-08
1384
+
1385
+ - Fix a bug where a null nestable object causes warnings to fire.
1386
+
1387
+ ## 1.9.0 - 2013-10-16
1388
+
1389
+ - Add support for metadata API.
1390
+
1391
+ ## 1.8.4 - 2013-09-18
1392
+
1393
+ - Add support for closing disputes.
1394
+
1395
+ ## 1.8.3 - 2013-08-13
1396
+
1397
+ - Add new Balance and BalanceTransaction
1398
+
1399
+ ## 1.8.2 - 2013-08-12
1400
+
1401
+ - Add support for unsetting attributes by updating to NULL. Setting properties to a blank string is now an error.
1402
+
1403
+ ## 1.8.1 - 2013-07-12
1404
+
1405
+ - Add support for multiple cards API (Stripe API version 2013-07-12: https://stripe.com/docs/upgrades#2013-07-05)
1406
+
1407
+ ## 1.8.0 - 2013-04-11
1408
+
1409
+ - Allow Transfers to be creatable
1410
+ - Add new Recipient resource
1411
+
1412
+ ## 1.7.15 - 2013-02-21
1413
+
1414
+ - Add 'id' to the list of permanent object attributes
1415
+
1416
+ ## 1.7.14 - 2013-02-20
1417
+
1418
+ - Don't re-encode strings that are already encoded in UTF-8. If you were previously using plan or coupon objects with UTF-8 IDs, they may have been treated as ISO-8859-1 (Latin-1) and encoded to UTF-8 a 2nd time. You may now need to pass the IDs to utf8_encode before passing them to Stripe_Plan::retrieve or Stripe_Coupon::retrieve.
1419
+ - Ensure that all input is encoded in UTF-8 before submitting it to Stripe's servers. (github issue #27)
1420
+
1421
+ ## 1.7.13 - 2013-02-01
1422
+
1423
+ - Add support for passing options when retrieving Stripe objects e.g., Stripe_Charge::retrieve(array("id"=>"foo", "expand" => array("customer"))); Stripe_Charge::retrieve("foo") will continue to work
1424
+
1425
+ ## 1.7.12 - 2013-01-15
1426
+
1427
+ - Add support for setting a Stripe API version override
1428
+
1429
+ ## 1.7.11 - 2012-12-30
1430
+
1431
+ - Version bump to cleanup constants and such (fix issue #26)
1432
+
1433
+ ## 1.7.10 - 2012-11-08
1434
+
1435
+ - Add support for updating charge disputes.
1436
+ - Fix bug preventing retrieval of null attributes
1437
+
1438
+ ## 1.7.9 - 2012-11-08
1439
+
1440
+ - Fix usage under autoloaders such as the one generated by composer (fix issue #22)
1441
+
1442
+ ## 1.7.8 - 2012-10-30
1443
+
1444
+ - Add support for creating invoices.
1445
+ - Add support for new invoice lines return format
1446
+ - Add support for new list objects
1447
+
1448
+ ## 1.7.7 - 2012-09-14
1449
+
1450
+ - Get all of the various version numbers in the repo in sync (no other changes)
1451
+
1452
+ ## 1.7.6 - 2012-08-31
1453
+
1454
+ - Add update and pay methods to Invoice resource
1455
+
1456
+ ## 1.7.5 - 2012-08-23
1457
+
1458
+ - Change internal function names so that Stripe_SingletonApiRequest is E_STRICT-clean (github issue #16)
1459
+
1460
+ ## 1.7.4 - 2012-08-21
1461
+
1462
+ - Bugfix so that Stripe objects (e.g. Customer, Charge objects) used in API calls are transparently converted to their object IDs
1463
+
1464
+ ## 1.7.3 - 2012-08-15
1465
+
1466
+ - Add new Account resource
1467
+
1468
+ ## 1.7.2 - 2012-06-26
1469
+
1470
+ - Make clearer that you should be including lib/Stripe.php, not test/Stripe.php (github issue #14)
1471
+
1472
+ ## 1.7.1 - 2012-05-24
1473
+
1474
+ - Add missing argument to Stripe_InvalidRequestError constructor in Stripe_ApiResource::instanceUrl. Fixes a warning when Stripe_ApiResource::instanceUrl is called on a resource with no ID (fix issue #12)
1475
+
1476
+ ## 1.7.0 - 2012-05-17
1477
+
1478
+ - Support Composer and Packagist (github issue #9)
1479
+ - Add new deleteDiscount method to Stripe_Customer
1480
+ - Add new Transfer resource
1481
+ - Switch from using HTTP Basic auth to Bearer auth. (Note: Stripe will support Basic auth for the indefinite future, but recommends Bearer auth when possible going forward)
1482
+ - Numerous test suite improvements
lib/stripe-php/CODE_OF_CONDUCT.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to make participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies within all project spaces, and it also applies when
49
+ an individual is representing the project or its community in public spaces.
50
+ Examples of representing a project or community include using an official
51
+ project e-mail address, posting via an official social media account, or acting
52
+ as an appointed representative at an online or offline event. Representation of
53
+ a project may be further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at conduct@stripe.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
77
+
lib/stripe-php/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License
2
+
3
+ Copyright (c) 2010-2019 Stripe, Inc. (https://stripe.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
lib/stripe-php/Makefile ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export PHPDOCUMENTOR_VERSION := v3.0.0
2
+ export PHPSTAN_VERSION := 0.12.59
3
+
4
+ vendor: composer.json
5
+ composer install
6
+
7
+ vendor/bin/phpstan: vendor
8
+ curl -sfL https://github.com/phpstan/phpstan/releases/download/$(PHPSTAN_VERSION)/phpstan.phar -o vendor/bin/phpstan
9
+ chmod +x vendor/bin/phpstan
10
+
11
+ vendor/bin/phpdoc: vendor
12
+ curl -sfL https://github.com/phpDocumentor/phpDocumentor/releases/download/$(PHPDOCUMENTOR_VERSION)/phpDocumentor.phar -o vendor/bin/phpdoc
13
+ chmod +x vendor/bin/phpdoc
14
+
15
+ test: vendor
16
+ vendor/bin/phpunit
17
+ .PHONY: test
18
+
19
+ fmt: vendor
20
+ vendor/bin/php-cs-fixer fix -v --using-cache=no .
21
+ .PHONY: fmt
22
+
23
+ fmtcheck: vendor
24
+ vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no .
25
+ .PHONY: fmtcheck
26
+
27
+ phpdoc: vendor/bin/phpdoc
28
+ vendor/bin/phpdoc
29
+
30
+ phpstan: vendor/bin/phpstan
31
+ php -d memory_limit=512M vendor/bin/phpstan analyse lib tests
32
+ .PHONY: phpstan
33
+
34
+ phpstan-baseline: vendor/bin/phpstan
35
+ php -d memory_limit=512M vendor/bin/phpstan analyse lib tests --generate-baseline
36
+ .PHONY: phpstan-baseline
lib/stripe-php/VERSION ADDED
@@ -0,0 +1 @@
 
1
+ 7.100.0
lib/stripe-php/build.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env php
2
+ <?php
3
+ \chdir(__DIR__);
4
+
5
+ $autoload = (int) $argv[1];
6
+ $returnStatus = null;
7
+
8
+ if (!$autoload) {
9
+ // Modify composer to not autoload Stripe
10
+ $composer = \json_decode(\file_get_contents('composer.json'), true);
11
+ unset($composer['autoload'], $composer['autoload-dev']);
12
+
13
+ \file_put_contents('composer.json', \json_encode($composer, \JSON_PRETTY_PRINT));
14
+ }
15
+
16
+ \passthru('composer update', $returnStatus);
17
+ if (0 !== $returnStatus) {
18
+ exit(1);
19
+ }
20
+
21
+ $config = $autoload ? 'phpunit.xml' : 'phpunit.no_autoload.xml';
22
+ \passthru("./vendor/bin/phpunit -c {$config}", $returnStatus);
23
+ if (0 !== $returnStatus) {
24
+ exit(1);
25
+ }
lib/stripe-php/data/ca-certificates.crt ADDED
@@ -0,0 +1,3476 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##
2
+ ## Bundle of CA Root Certificates
3
+ ##
4
+ ## Certificate data from Mozilla as of: Wed Aug 28 03:12:10 2019 GMT
5
+ ##
6
+ ## This is a bundle of X.509 certificates of public Certificate Authorities
7
+ ## (CA). These were automatically extracted from Mozilla's root certificates
8
+ ## file (certdata.txt). This file can be found in the mozilla source tree:
9
+ ## https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
10
+ ##
11
+ ## It contains the certificates in PEM format and therefore
12
+ ## can be directly used with curl / libcurl / php_curl, or with
13
+ ## an Apache+mod_ssl webserver for SSL client authentication.
14
+ ## Just configure this file as the SSLCACertificateFile.
15
+ ##
16
+ ## Conversion done with mk-ca-bundle.pl version 1.27.
17
+ ## SHA256: fffa309937c3be940649293f749b8207fabc6eb224e50e4bb3f2c5e44e0d6a6b
18
+ ##
19
+
20
+
21
+ GlobalSign Root CA
22
+ ==================
23
+ -----BEGIN CERTIFICATE-----
24
+ MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkGA1UEBhMCQkUx
25
+ GTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jvb3QgQ0ExGzAZBgNVBAMTEkds
26
+ b2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAwMDBaFw0yODAxMjgxMj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obalSign Root CA - R2
43
+ =======================
44
+ -----BEGIN CERTIFICATE-----
45
+ MIIDujCCAqKgAwIBAgILBAAAAAABD4Ym5g0wDQYJKoZIhvcNAQEFBQAwTDEgMB4GA1UECxMXR2xv
46
+ YmFsU2lnbiBSb290IENBIC0gUjIxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh
47
+ bFNpZ24wHhcNMDYxMjE1MDgwMDAwWhcNMjExMjE1MDgwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT
48
+ aWduIFJvb3QgQ0EgLSBSMjETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln
49
+ bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKbPJA6+Lm8omUVCxKs+IVSbC9N/hHD6
50
+ ErPLv4dfxn+G07IwXNb9rfF73OX4YJYJkhD10FPe+3t+c4isUoh7SqbKSaZeqKeMWhG8eoLrvozp
51
+ s6yWJQeXSpkqBy+0Hne/ig+1AnwblrjFuTosvNYSuetZfeLQBoZfXklqtTleiDTsvHgMCJiEbKjN
52
+ S7SgfQx5TfC4LcshytVsW33hoCmEofnTlEnLJGKRILzdC9XZzPnqJworc5HGnRusyMvo4KD0L5CL
53
+ TfuwNhv2GXqF4G3yYROIXJ/gkwpRl4pazq+r1feqCapgvdzZX99yqWATXgAByUr6P6TqBwMhAo6C
54
+ ygPCm48CAwEAAaOBnDCBmTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E
55
+ FgQUm+IHV2ccHsBqBt5ZtJot39wZhi4wNgYDVR0fBC8wLTAroCmgJ4YlaHR0cDovL2NybC5nbG9i
56
+ YWxzaWduLm5ldC9yb290LXIyLmNybDAfBgNVHSMEGDAWgBSb4gdXZxwewGoG3lm0mi3f3BmGLjAN
57
+ BgkqhkiG9w0BAQUFAAOCAQEAmYFThxxol4aR7OBKuEQLq4GsJ0/WwbgcQ3izDJr86iw8bmEbTUsp
58
+ 9Z8FHSbBuOmDAGJFtqkIk7mpM0sYmsL4h4hO291xNBrBVNpGP+DTKqttVCL1OmLNIG+6KYnX3ZHu
59
+ 01yiPqFbQfXf5WRDLenVOavSot+3i9DAgBkcRcAtjOj4LaR0VknFBbVPFd5uRHg5h6h+u/N5GJG7
60
+ 9G+dwfCMNYxdAfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/7
61
+ TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg==
62
+ -----END CERTIFICATE-----
63
+
64
+ Verisign Class 3 Public Primary Certification Authority - G3
65
+ ============================================================
66
+ -----BEGIN CERTIFICATE-----
67
+ MIIEGjCCAwICEQCbfgZJoz5iudXukEhxKe9XMA0GCSqGSIb3DQEBBQUAMIHKMQswCQYDVQQGEwJV
68
+ UzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
69
+ cmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl
70
+ IG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDMgUHVibGljIFByaW1hcnkgQ2VydGlmaWNh
71
+ dGlvbiBBdXRob3JpdHkgLSBHMzAeFw05OTEwMDEwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMIHKMQsw
72
+ CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRy
73
+ dXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhv
74
+ cml6ZWQgdXNlIG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDMgUHVibGljIFByaW1hcnkg
75
+ Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
76
+ ggEBAMu6nFL8eB8aHm8bN3O9+MlrlBIwT/A2R/XQkQr1F8ilYcEWQE37imGQ5XYgwREGfassbqb1
77
+ EUGO+i2tKmFZpGcmTNDovFJbcCAEWNF6yaRpvIMXZK0Fi7zQWM6NjPXr8EJJC52XJ2cybuGukxUc
78
+ cLwgTS8Y3pKI6GyFVxEa6X7jJhFUokWWVYPKMIno3Nij7SqAP395ZVc+FSBmCC+Vk7+qRy+oRpfw
79
+ EuL+wgorUeZ25rdGt+INpsyow0xZVYnm6FNcHOqd8GIWC6fJXwzw3sJ2zq/3avL6QaaiMxTJ5Xpj
80
+ 055iN9WFZZ4O5lMkdBteHRJTW8cs54NJOxWuimi5V5cCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEA
81
+ ERSWwauSCPc/L8my/uRan2Te2yFPhpk0djZX3dAVL8WtfxUfN2JzPtTnX84XA9s1+ivbrmAJXx5f
82
+ j267Cz3qWhMeDGBvtcC1IyIuBwvLqXTLR7sdwdela8wv0kL9Sd2nic9TutoAWii/gt/4uhMdUIaC
83
+ /Y4wjylGsB49Ndo4YhYYSq3mtlFs3q9i6wHQHiT+eo8SGhJouPtmmRQURVyu565pF4ErWjfJXir0
84
+ xuKhXFSbplQAz/DxwceYMBo7Nhbbo27q/a2ywtrvAkcTisDxszGtTxzhT5yvDwyd93gN2PQ1VoDa
85
+ t20Xj50egWTh/sVFuq1ruQp6Tk9LhO5L8X3dEQ==
86
+ -----END CERTIFICATE-----
87
+
88
+ Entrust.net Premium 2048 Secure Server CA
89
+ =========================================
90
+ -----BEGIN CERTIFICATE-----
91
+ MIIEKjCCAxKgAwIBAgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChMLRW50cnVzdC5u
92
+ ZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0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GY4+WZiT6QBshJ8rmcnPy
106
+ T/4xmf3IDExoU8aAghOY+rat2l098c5u9hURlIIM7j+VrxGrD9cv3h8Dj1csHsm7mhpElesYT6Yf
107
+ zX1XEC+bBAlahLVu2B064dae0Wx5XnkcFMXj0EyTO2U87d89vqbllRrDtRnDvV5bu/8j72gZyxKT
108
+ J1wDLW8w0B62GqzeWvfRqqgnpv55gcR5mTNXuhKwqeBCbJPKVt7+bYQLCIt+jerXmCHG8+c8eS9e
109
+ nNFMFY3h7CI3zJpDC5fcgJCNs2ebb0gIFVbPv/ErfF6adulZkMV8gzURZVE=
110
+ -----END CERTIFICATE-----
111
+
112
+ Baltimore CyberTrust Root
113
+ =========================
114
+ -----BEGIN CERTIFICATE-----
115
+ MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJRTESMBAGA1UE
116
+ ChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYDVQQDExlCYWx0aW1vcmUgQ3li
117
+ ZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoXDTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMC
118
+ SUUxEjAQBgNVBAoTCUJhbHRpbW9yZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFs
119
+ dGltb3JlIEN5YmVyVHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKME
120
+ uyKrmD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjrIZ3AQSsB
121
+ UnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeKmpYcqWe4PwzV9/lSEy/C
122
+ G9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSuXmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9
123
+ XbIGevOF6uvUA65ehD5f/xXtabz5OTZydc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjpr
124
+ l3RjM71oGDHweI12v/yejl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoI
125
+ VDaGezq1BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEB
126
+ BQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT929hkTI7gQCvlYpNRh
127
+ cL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3WgxjkzSswF07r51XgdIGn9w/xZchMB5
128
+ hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsa
129
+ Y71k5h+3zvDyny67G7fyUIhzksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9H
130
+ RCwBXbsdtTLSR9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp
131
+ -----END CERTIFICATE-----
132
+
133
+ AddTrust External Root
134
+ ======================
135
+ -----BEGIN CERTIFICATE-----
136
+ MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEUMBIGA1UEChML
137
+ QWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFsIFRUUCBOZXR3b3JrMSIwIAYD
138
+ VQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEw
139
+ NDgzOFowbzELMAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRU
140
+ cnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0Eg
141
+ Um9vd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9F4BrLunMTA5amnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
155
+ -----END CERTIFICATE-----
156
+
157
+ Entrust Root Certification Authority
158
+ ====================================
159
+ -----BEGIN CERTIFICATE-----
160
+ MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMCVVMxFjAUBgNV
161
+ BAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0Lm5ldC9DUFMgaXMgaW5jb3Jw
162
+ b3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMWKGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsG
163
+ A1UEAxMkRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA2MTEyNzIwMjM0
164
+ MloXDTI2MTEyNzIwNTM0MlowgbAxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMu
165
+ MTkwNwYDVQQLEzB3d3cuZW50cnVzdC5uZXQvQ1BTIGlzIGluY29ycG9yYXRlZCBieSByZWZlcmVu
166
+ Y2UxHzAdBgNVBAsTFihjKSAyMDA2IEVudHJ1c3QsIEluYy4xLTArBgNVBAMTJEVudHJ1c3QgUm9v
167
+ dCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
168
+ ALaVtkNC+sZtKm9I35RMOVcF7sN5EUFoNu3s/poBj6E4KPz3EEZmLk0eGrEaTsbRwJWIsMn/MYsz
169
+ A9u3g3s+IIRe7bJWKKf44LlAcTfFy0cOlypowCKVYhXbR9n10Cv/gkvJrT7eTNuQgFA/CYqEAOww
170
+ Cj0Yzfv9KlmaI5UXLEWeH25DeW0MXJj+SKfFI0dcXv1u5x609mhF0YaDW6KKjbHjKYD+JXGIrb68
171
+ j6xSlkuqUY3kEzEZ6E5Nn9uss2rVvDlUccp6en+Q3X0dgN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+ LjEbMBkGA1UEAxMSR2VvVHJ1c3QgR2xvYmFsIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
190
+ CgKCAQEA2swYYzD99BcjGlZ+W988bDjkcbd4kdS8odhM+KhDtgPpTSEHCIjaWC9mOSm9BXiLnTjo
191
+ BbdqfnGk5sRgprDvgOSJKA+eJdbtg/OtppHHmMlCGDUUna2YRpIuT8rxh0PBFpVXLVDviS2Aelet
192
+ 8u5fa9IAjbkU+BQVNdnARqN7csiRv8lVK83Qlz6cJmTM386DGXHKTubU1XupGc1V3sjs0l44U+Vc
193
+ T4wt/lAjNvxm5suOpDkZALeVAjmRCw7+OC7RHQWa9k0+bw8HHa8sHo9gOeL6NlMTOdReJivbPagU
194
+ vTLrGAMoUgRx5aszPeE4uwc2hGKceeoWMPRfwCvocWvk+QIDAQABo1MwUTAPBgNVHRMBAf8EBTAD
195
+ AQH/MB0GA1UdDgQWBBTAephojYn7qwVkDBF9qn1luMrMTjAfBgNVHSMEGDAWgBTAephojYn7qwVk
196
+ DBF9qn1luMrMTjANBgkqhkiG9w0BAQUFAAOCAQEANeMpauUvXVSOKVCUn5kaFOSPeCpilKInZ57Q
197
+ zxpeR+nBsqTP3UEaBU6bS+5Kb1VSsyShNwrrZHYqLizz/Tt1kL/6cdjHPTfStQWVYrmm3ok9Nns4
198
+ d0iXrKYgjy6myQzCsplFAMfOEVEiIuCl6rYVSAlk6l5PdPcFPseKUgzbFbS9bZvlxrFUaKnjaZC2
199
+ mqUPuLk/IH2uSrW4nOQdtqvmlKXBx4Ot2/Unhw4EbNX/3aBd7YdStysVAq45pmp06drE57xNNB6p
200
+ XE0zX5IJL4hmXXeXxx12E6nV5fEWCRE11azbJHFwLJhWC9kXtNHjUStedejV0NxPNO3CBWaAocvm
201
+ Mw==
202
+ -----END CERTIFICATE-----
203
+
204
+ GeoTrust Universal CA
205
+ =====================
206
+ -----BEGIN CERTIFICATE-----
207
+ MIIFaDCCA1CgAwIBAgIBATANBg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QFMAMBAf8wHQYDVR0OBBYEFNq7LqqwDLiIJlF0
221
+ XG0D08DYj3rWMB8GA1UdIwQYMBaAFNq7LqqwDLiIJlF0XG0D08DYj3rWMA4GA1UdDwEB/wQEAwIB
222
+ hjANBgkqhkiG9w0BAQUFAAOCAgEAMXjmx7XfuJRAyXHEqDXsRh3ChfMoWIawC/yOsjmPRFWrZIRc
223
+ aanQmjg8+uUfNeVE44B5lGiku8SfPeE0zTBGi1QrlaXv9z+ZhP015s8xxtxqv6fXIwjhmF7DWgh2
224
+ qaavdy+3YL1ERmrvl/9zlcGO6JP7/TG37FcREUWbMPEaiDnBTzynANXH/KttgCJwpQzgXQQpAvvL
225
+ oJHRfNbDflDVnVi+QTjruXU8FdmbyUqDWcDaU/0zuzYYm4UPFd3uLax2k7nZAY1IEKj79TiG8dsK
226
+ xr2EoyNB3tZ3b4XUhRxQ4K5RirqNPnbiucon8l+f725ZDQbYKxek0nxru18UGkiPGkzns0ccjkxF
227
+ KyDuSN/n3QmOGKjaQI2SJhFTYXNd673nxE0pN2HrrDktZy4W1vUAg4WhzH92xH3kt0tm7wNFYGm2
228
+ DFKWkoRepqO1pD4r2czYG0eq8kTaT/kD6PAUyz/zg97QwVTjt+gKN02LIFkDMBmhLMi9ER/frslK
229
+ xfMnZmaGrGiR/9nmUxwPi1xpZQomyB40w11Re9epnAahNt3ViZS82eQtDF4JbAiXfKM9fJP/P6EU
230
+ p8+1Xevb2xzEdt+Iub1FBZUbrvxGakyvSOPOrg/SfuvmbJxPgWp6ZKy7PtXny3YuxadIwVyQD8vI
231
+ P/rmMuGNG2+k5o7Y+SlIis5z/iw=
232
+ -----END CERTIFICATE-----
233
+
234
+ GeoTrust Universal CA 2
235
+ =======================
236
+ -----BEGIN CERTIFICATE-----
237
+ MIIFbDCCA1SgAwIBAgIBATANBgkqhkiG9w0BAQUFADBHMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
238
+ R2VvVHJ1c3QgSW5jLjEgMB4GA1UEAxMXR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Xh+qQ2+/CfXGJx7Tz0RzgQKzAOBgNVHQ8BAf8E
252
+ BAMCAYYwDQYJKoZIhvcNAQEFBQADggIBAGbBxiPz2eAubl/oz66wsCVNK/g7WJtAJDday6sWSf+z
253
+ dXkzoS9tcBc0kf5nfo/sm+VegqlVHy/c1FEHEv6sFj4sNcZj/NwQ6w2jqtB8zNHQL1EuxBRa3ugZ
254
+ 4T7GzKQp5y6EqgYweHZUcyiYWTjgAA1i00J9IZ+uPTqM1fp3DRgrFg5fNuH8KrUwJM/gYwx7WBr+
255
+ mbpCErGR9Hxo4sjoryzqyX6uuyo9DRXcNJW2GHSoag/HtPQTxORb7QrSpJdMKu0vbBKJPfEncKpq
256
+ A1Ihn0CoZ1Dy81of398j9tx4TuaYT1U6U+Pv8vSfx3zYWK8pIpe44L2RLrB27FcRz+8pRPPphXpg
257
+ Y+RdM4kX2TGq2tbzGDVyz4crL2MjhF2EjD9XoIj8mZEoJmmZ1I+XRL6O1UixpCgp8RW04eWe3fiP
258
+ pm8m1wk8OhwRDqZsN/etRIcsKMfYdIKz0G9KV7s1KSegi+ghp4dkNl3M2Basx7InQJJVOCiNUW7d
259
+ FGdTbHFcJoRNdVq2fmBWqU2t+5sel/MN2dKXVHfaPRK34B7vCAas+YWH6aLcr34YEoP9VhdBLtUp
260
+ gn2Z9DH2canPLAEnpQW5qrJITirvn5NSUZU8UnOOVkwXQMAJKOSLakhT2+zNVVXxxvjpoixMptEm
261
+ X36vWkzaH6byHCx+rgIW0lbQL1dTR+iS
262
+ -----END CERTIFICATE-----
263
+
264
+ Comodo AAA Services root
265
+ ========================
266
+ -----BEGIN CERTIFICATE-----
267
+ MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJHQjEbMBkGA1UECAwS
268
+ R3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRowGAYDVQQKDBFDb21vZG8gQ0Eg
269
+ TGltaXRlZDEhMB8GA1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mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz
283
+ Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2G9w84FoVxp7Z
284
+ 8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsil2D4kF501KKaU73yqWjgom7C
285
+ 12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg==
286
+ -----END CERTIFICATE-----
287
+
288
+ QuoVadis Root CA
289
+ ================
290
+ -----BEGIN CERTIFICATE-----
291
+ MIIF0DCCBLigAwIBAgIEOrZQizANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJCTTEZMBcGA1UE
292
+ ChMQUXVvVmFkaXMgTGltaXRlZDElMCMGA1UECxMcUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0
293
+ eTEuMCwGA1UEAxMlUXVvVmFkaXMgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wMTAz
294
+ MTkxODMzMzNaFw0yMTAzMTcxODMzMzNaMH8xCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRp
295
+ cyBMaW1pdGVkMSUwIwYDVQQLExxSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MS4wLAYDVQQD
296
+ EyVRdW9WYWRpcyBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEF
297
+ AAOCAQ8AMIIBCgKCAQEAv2G1lVO6V/z68mcLOhrfEYBklbTRvM16z/Ypli4kVEAkOPcahdxYTMuk
298
+ J0KX0J+DisPkBgNbAKVRHnAEdOLB1Dqr1607BxgFjv2DrOpm2RgbaIr1VxqYuvXtdj182d6UajtL
299
+ F8HVj71lODqV0D1VNk7feVcxKh7YWWVJWCCYfqtffp/p1k3sg3Sp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fnIYj9lo
313
+ fFIk3WdvOXrEql494liwTXCYhGHoG+NpGA7O+0dQoE7/8CQfvbLO9Sf87C9TqnN7Az10buYWnuul
314
+ LsS/VidQK2K6vkscPFVcQR0kvoIgR13VRH56FmjffU1RcHhXHTMe/QKZnAzNCgVPx7uOpHX6Sm2x
315
+ gI4JVrmcGmD+XcHXetwReNDWXcG31a0ymQM6isxUJTkxgXsTIlG6Rmyhu576BGxJJnSP0nPrzDCi
316
+ 5upZIof4l/UO/erMkqQWxFIY6iHOsfHmhIHluqmGKPJDWl0Snawe2ajlCmqnf6CHKc/yiU3U7MXi
317
+ 5nrQNiOKSnQ2+Q==
318
+ -----END CERTIFICATE-----
319
+
320
+ QuoVadis Root CA 2
321
+ ==================
322
+ -----BEGIN CERTIFICATE-----
323
+ MIIFtzCCA5+gAwIBAgICBQkwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT
324
+ EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMjAeFw0wNjExMjQx
325
+ ODI3MDBaFw0zMTExMjQxODIzMzNaMEUxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM
326
+ aW1pdGVkMRswGQYDVQQDExJRdW9WYWRpcyBSb290IENBIDIwggIiMA0GCSqGSIb3DQEBAQUAA4IC
327
+ DwAwggIKAoICAQCaGMpLlA0ALa8DKYrwD4HIrkwZhR0In6spRIXzL4GtMh6QRr+jhiYaHv5+HBg6
328
+ XJxgFyo6dIMzMH1hVBHL7avg5tKifvVrbxi3Cgst/ek+7wrGsxDp3MJGF/hd/aTa/55JWpzmM+Yk
329
+ lvc/ulsrHHo1wtZn/qtmUIttKGAr79dgw8eTvI02kfN/+NsRE8Scd3bBrrcCaoF6qUWD4gXmuVbB
330
+ lDePSHFjIuwXZQeVikvfj8ZaCuWw419eaxGrDPmF60Tp+ARz8un+XJiM9XOva7R+zdRcAitMO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Y56QSIPMO661V6bYCZJPVsAfv4l7CUW+v90m/xd2gNNWQjrLhVoQPRTUIZ3Ph1
345
+ WVaj+ahJefivDrkRoHy3au000LYmYjgahwz46P0u05B/B5EqHdZ+XIWDmbA4CD/pXvk1B+TJYm5X
346
+ f6dQlfe6yJvmjqIBxdZmv3lh8zwc4bmCXF2gw+nYSL0ZohEUGW6yhhtoPkg3Goi3XZZenMfvJ2II
347
+ 4pEZXNLxId26F0KCl3GBUzGpn/Z9Yr9y4aOTHcyKJloJONDO1w2AFrR4pTqHTI2KpdVGl/IsELm8
348
+ VCLAAVBpQ570su9t+Oza8eOx79+Rj1QqCyXBJhnEUhAFZdWCEOrCMc0u
349
+ -----END CERTIFICATE-----
350
+
351
+ QuoVadis Root CA 3
352
+ ==================
353
+ -----BEGIN CERTIFICATE-----
354
+ MIIGnTCCBIWgAwIBAgICBcYwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT
355
+ EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMzAeFw0wNjExMjQx
356
+ OTExMjNaFw0zMTExMjQxOTA2NDRaMEUxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM
357
+ aW1pdGVkMRswGQYDVQQDExJRdW9WYWRpcyBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4IC
358
+ DwAwggIKAoICAQDMV0IWVJzmmNPTTe7+7cefQzlKZbPoFog02w1ZkXTPkrgEQK0CSzGrvI2RaNgg
359
+ DhoB4hp7Thdd4oq3P5kazethq8Jlph+3t723j/z9cI8LoGe+AaJZz3HmDyl2/7FWeUUrH556VOij
360
+ KTVopAFPD6QuN+8bv+OPEKhyq1hX51SGyMnzW9os2l2ObjyjPtr7guXd8lyyBTNvijbO0BNO/79K
361
+ DDRMpsMhvVAEVeuxu537RR5kFd5VAYwCdrXLoT9CabwvvWhDFlaJKjdhkf2mrk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V
375
+ qyM07ucp2sNbtrCD2dDQ4iH782CnO11gUyeim/YIIirnv6By5ZwkajGxkHon24QRiSemd1o417+s
376
+ hvzuXYO8BsbRd2sPbSQvS3pspweWyuOEn62Iix2rFo1bZhfZFvSLgNLd+LJ2w/w4E6oM3kJpK27z
377
+ POuAJ9v1pkQNn1pVWQvVDVJIxa6f8i+AxeoyUDUSly7B4f/xI4hROJ/yZlZ25w9Rl6VSDE1JUZU2
378
+ Pb+iSwwQHYaZTKrzchGT5Or2m9qoXadNt54CrnMAyNojA+j56hl0YgCUyyIgvpSnWbWCar6ZeXqp
379
+ 8kokUvd0/bpO5qgdAm6xDYBEwa7TIzdfu4V8K5Iu6H6li92Z4b8nby1dqnuH/grdS/yO9SbkbnBC
380
+ bjPsMZ57k8HkyWkaPcBrTiJt7qtYTcbQQcEr6k8Sh17rRdhs9ZgC06DYVYoGmRmioHfRMJ6szHXu
381
+ g/WwYjnPbFfiTNKRCw51KBuav/0aQ/HKd/s7j2G4aSgWQgRecCocIdiP4b0jWy10QJLZYxkNc91p
382
+ vGJHvOB0K7Lrfb5BG7XARsWhIstfTsEokt4YutUqKLsRixeTmJlglFwjz1onl14LBQaTNx47aTbr
383
+ qZ5hHY8y2o4M1nQ+ewkk2gF3R8Q7zTSMmfXK4SVhM7JZG+Ju1zdXtg2pEto=
384
+ -----END CERTIFICATE-----
385
+
386
+ Security Communication Root CA
387
+ ==============================
388
+ -----BEGIN CERTIFICATE-----
389
+ MIIDWjCCAkKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
390
+ U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
391
+ HhcNMDMwOTMwMDQyMDQ5WhcNMjMwOTMwMDQyMDQ5WjBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
392
+ U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
393
+ ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzs/5/022x7xZ8V6UMbXaKL0u/ZPtM7orw
394
+ 8yl89f/uKuDp6bpbZCKamm8sOiZpUQWZJtzVHGpxxpp9Hp3dfGzGjGdnSj74cbAZJ6kJDKaVv0uM
395
+ DPpVmDvY6CKhS3E4eayXkmmziX7qIWgGmBSWh9JhNrxtJ1aeV+7AwFb9Ms+k2Y7CI9eNqPPYJayX
396
+ 5HA49LY6tJ07lyZDo6G8SVlyTCMwhwFY9k6+HGhWZq/NQV3Is00qVUarH9oe4kA92819uZKAnDfd
397
+ DJZkndwi92SL32HeFZRSFaB9UslLqCHJxrHty8OVYNEP8Ktw+N/LTX7s1vqr2b1/VPKl6Xn62dZ2
398
+ JChzAgMBAAGjPzA9MB0GA1UdDgQWBBSgc0mZaNyFW2XjmygvV5+9M7wHSDALBgNVHQ8EBAMCAQYw
399
+ DwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAaECpqLvkT115swW1F7NgE+vGkl3g
400
+ 0dNq/vu+m22/xwVtWSDEHPC32oRYAmP6SBbvT6UL90qY8j+eG61Ha2POCEfrUj94nK9NrvjVT8+a
401
+ mCoQQTlSxN3Zmw7vkwGusi7KaEIkQmywszo+zenaSMQVy+n5Bw+SUEmK3TGXX8npN6o7WWWXlDLJ
402
+ s58+OmJYxUmtYg5xpTKqL8aJdkNAExNnPaJUJRDL8Try2frbSVa7pv6nQTXD4IhhyYjH3zYQIphZ
403
+ 6rBK+1YWc26sTfcioU+tHXotRSflMMFe8toTyyVCUZVHA4xsIcx0Qu1T/zOLjw9XARYvz6buyXAi
404
+ FL39vmwLAw==
405
+ -----END CERTIFICATE-----
406
+
407
+ Sonera Class 2 Root CA
408
+ ======================
409
+ -----BEGIN CERTIFICATE-----
410
+ MIIDIDCCAgigAwIBAgIBHTANBgkqhkiG9w0BAQUF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ybtv8TyWf2TLH
424
+ llpwrN9M
425
+ -----END CERTIFICATE-----
426
+
427
+ XRamp Global CA Root
428
+ ====================
429
+ -----BEGIN CERTIFICATE-----
430
+ MIIEMDCCAxigAwIBAgIQUJRs7Bjq1ZxN1ZfvdY+grTANBgkqhkiG9w0BAQUFADCBgjELMAkGA1UE
431
+ BhMCVVMxHjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2Vj
432
+ dXJpdHkgU2VydmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBB
433
+ dXRob3JpdHkwHhcNMDQxMTAxMTcxNDA0WhcNMzUwMTAxMDUzNzE5WjCBgjELMAkGA1UEBhMCVVMx
434
+ HjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2VjdXJpdHkg
435
+ U2VydmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3Jp
436
+ dHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCYJB69FbS638eMpSe2OAtp87ZOqCwu
437
+ IR1cRN8hXX4jdP5efrRKt6atH67gBhbim1vZZ3RrXYCPKZ2GG9mcDZhtdhAoWORlsH9KmHmf4MMx
438
+ foArtYzAQDsRhtDLooY2YKTVMIJt2W7QDxIEM5dfT2Fa8OT5kavnHTu86M/0ay00fOJIYRyO82FE
439
+ zG+gSqmUsE3a56k0enI4qEHMPJQRfevIpoy3hsvKMzvZPTeL+3o+hiznc9cKV6xkmxnr9A8ECIqs
440
+ AxcZZPRaJSKNNCyy9mgdEm3Tih4U2sSPpuIjhdV6Db1q4Ons7Be7QhtnqiXtRYMh/MHJfNViPvry
441
+ xS3T/dRlAgMBAAGjgZ8wgZwwEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1Ud
442
+ EwEB/wQFMAMBAf8wHQYDVR0OBBYEFMZPoj0GY4QJnM5i5ASsjVy16bYbMDYGA1UdHwQvMC0wK6Ap
443
+ oCeGJWh0dHA6Ly9jcmwueHJhbXBzZWN1cml0eS5jb20vWEdDQS5jcmwwEAYJKwYBBAGCNxUBBAMC
444
+ AQEwDQYJKoZIhvcNAQEFBQADggEBAJEVOQMBG2f7Shz5CmBbodpNl2L5JFMn14JkTpAuw0kbK5rc
445
+ /Kh4ZzXxHfARvbdI4xD2Dd8/0sm2qlWkSLoC295ZLhVbO50WfUfXN+pfTXYSNrsf16GBBEYgoyxt
446
+ qZ4Bfj8pzgCT3/3JknOJiWSe5yvkHJEs0rnOfc5vMZnT5r7SHpDwCRR5XCOrTdLaIR9NmXmd4c8n
447
+ nxCbHIgNsIpkQTG4DmyQJKSbXHGPurt+HBvbaoAPIbzp26a3QPSyi6mx5O+aGtA9aZnuqCij4Tyz
448
+ 8LIRnM98QObd50N9otg6tamN8jSZxNQQ4Qb9CYQQO+7ETPTsJ3xCwnR8gooJybQDJbw=
449
+ -----END CERTIFICATE-----
450
+
451
+ Go Daddy Class 2 CA
452
+ ===================
453
+ -----BEGIN CERTIFICATE-----
454
+ MIIEADCCAuigAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMY
455
+ VGhlIEdvIERhZGR5IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRp
456
+ ZmljYXRpb24gQXV0aG9yaXR5MB4XDTA0MDYyOTE3MDYyMFoXDTM0MDYyOTE3MDYyMFowYzELMAkG
457
+ A1UEBhMCVVMxITAfBgNVBAoTGFRoZSBHbyBEYWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28g
458
+ RGFkZHkgQ2xhc3MgMiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASAwDQYJKoZIhvcNAQEBBQAD
459
+ ggENAD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
+ Starfield Class 2 CA
476
+ ====================
477
+ -----BEGIN CERTIFICATE-----
478
+ MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzElMCMGA1UEChMc
479
+ U3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZpZWxkIENsYXNzIDIg
480
+ Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQwNjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBo
481
+ MQswCQYDVQQGEwJVUzElMCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAG
482
+ A1UECxMpU3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqG
483
+ SIb3DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf8MOh2tTY
484
+ bitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN+lq2cwQlZut3f+dZxkqZ
485
+ JRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVm
486
+ epsZGD3/cVE8MC5fvj13c7JdBmzDI1aaK4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSN
487
+ F4Azbl5KXZnJHoe0nRrA1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HF
488
+ MIHCMB0GA1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fRzt0f
489
+ hvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNo
490
+ bm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBDbGFzcyAyIENlcnRpZmljYXRpb24g
491
+ QXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGs
492
+ afPzWdqbAYcaT1epoXkJKtv3L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLM
493
+ PUxA2IGvd56Deruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl
494
+ xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynpVSJYACPq4xJD
495
+ KVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEYWQPJIrSPnNVeKtelttQKbfi3
496
+ QBFGmh95DmK/D5fs4C8fF5Q=
497
+ -----END CERTIFICATE-----
498
+
499
+ Taiwan GRCA
500
+ ===========
501
+ -----BEGIN CERTIFICATE-----
502
+ MIIFcjCCA1qgAwIBAgIQH51ZWtcvwgZEpYAIaeNe9jANBgkqhkiG9w0BAQUFADA/MQswCQYDVQQG
503
+ EwJUVzEwMC4GA1UECgwnR292ZXJubWVudCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4X
504
+ DTAyMTIwNTEzMjMzM1oXDTMyMTIwNTEzMjMzM1owPzELMAkGA1UEBhMCVFcxMDAuBgNVBAoMJ0dv
505
+ dmVybm1lbnQgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCAiIwDQYJKoZIhvcNAQEBBQAD
506
+ ggIPADCCAgoCggIBAJoluOzMonWoe/fOW1mKydGGEghU7Jzy50b2iPN86aXfTEc2pBsBHH8eV4qN
507
+ w8XRIePaJD9IK/ufLqGU5ywck9G/GwGHU5nOp/UKIXZ3/6m3xnOUT0b3EEk3+qhZSV1qgQdW8or5
508
+ BtD3cCJNtLdBuTK4sfCxw5w/cP1T3YGq2GN49thTbqGsaoQkclSGxtKyyhwOeYHWtXBiCAEuTk8O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UO07+1EqLhRSPAzAhuYbeJq4PjJB7mXQfnHyA+z2fI56wwbSdLaG5LKlwCCDTb+Hbk
523
+ Z6MmnD+iMsJKxYEYMRBWqoTvLQr/uB930r+lWKBi5NdLkXWNiYCYfm3LU05er/ayl4WXudpVBrkk
524
+ 7tfGOB5jGxI7leFYrPLfhNVfmS8NVVvmONsuP3LpSIXLuykTjx44VbnzssQwmSNOXfJIoRIM3BKQ
525
+ CZBUkQM8R+XVyWXgt0t97EfTsws+rZ7QdAAO671RrcDeLMDDav7v3Aun+kbfYNucpllQdSNpc5Oy
526
+ +fwC00fmcc4QAu4njIT/rEUNE1yDMuAlpYYsfPQS
527
+ -----END CERTIFICATE-----
528
+
529
+ DigiCert Assured ID Root CA
530
+ ===========================
531
+ -----BEGIN CERTIFICATE-----
532
+ MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQG
533
+ EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw
534
+ IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzEx
535
+ MTEwMDAwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL
536
+ ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0Ew
537
+ ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7cJpSIqvTO
538
+ 9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYPmDI2dsze3Tyoou9q+yHy
539
+ UmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/UsDg+wRvDjDPZ2C8Y/igPs6eD1sNuRMBhNZYW
540
+ /lmci3Zt1/GiSw0r/wty2p5g0I6QNcZ4VYcgoc/lbQrISXwxmDNsIumH0DJaoroTghHtORedmTpy
541
+ oeb6pNnVFzF1roV9Iq4/AUaG9ih5yLHa5FcXxH4cDrC0kqZWs72yl+2qp/C3xag/lRbQ/6GW6whf
542
+ GHdPAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRF
543
+ 66Kv9JLLgjEtUYunpyGd823IDzAfBgNVHSMEGDAWgBRF66Kv9JLLgjEtUYunpyGd823IDzANBgkq
544
+ hkiG9w0BAQUFAAOCAQEAog683+Lt8ONyc3pklL/3cmbYMuRCdWKuh+vy1dneVrOfzM4UKLkNl2Bc
545
+ EkxY5NM9g0lFWJc1aRqoR+pWxnmrEthngYTffwk8lOa4JiwgvT2zKIn3X/8i4peEH+ll74fg38Fn
546
+ SbNd67IJKusm7Xi+fT8r87cmNW1fiQG2SVufAQWbqz0lwcy2f8Lxb4bG+mRo64EtlOtCt/qMHt1i
547
+ 8b5QZ7dsvfPxH2sMNgcWfzd8qVttevESRmCD1ycEvkvOl77DZypoEd+A5wwzZr8TDRRu838fYxAe
548
+ +o0bJW1sj6W3YQGx0qMmoRBxna3iw/nDmVG3KwcIzi7mULKn+gpFL6Lw8g==
549
+ -----END CERTIFICATE-----
550
+
551
+ DigiCert Global Root CA
552
+ =======================
553
+ -----BEGIN CERTIFICATE-----
554
+ MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBhMQswCQYDVQQG
555
+ EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAw
556
+ HgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBDQTAeFw0wNjExMTAwMDAwMDBaFw0zMTExMTAw
557
+ MDAwMDBaMGExCzAJBgNVB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Mbp1ZWVbd4=
571
+ -----END CERTIFICATE-----
572
+
573
+ DigiCert High Assurance EV Root CA
574
+ ==================================
575
+ -----BEGIN CERTIFICATE-----
576
+ MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBsMQswCQYDVQQG
577
+ EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSsw
578
+ KQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5jZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAw
579
+ MFoXDTMxMTExMDAwMDAwMFowbDELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZ
580
+ MBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFu
581
+ Y2UgRVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm+9S75S0t
582
+ Mqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTWPNt0OKRKzE0lgvdKpVMS
583
+ OO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEMxChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3
584
+ MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFBIk5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQ
585
+ NAQTXKFx01p8VdteZOE3hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUe
586
+ h10aUAsgEsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMB
587
+ Af8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaAFLE+w2kD+L9HAdSY
588
+ JhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3NecnzyIZgYIVyHbIUf4KmeqvxgydkAQ
589
+ V8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6zeM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFp
590
+ myPInngiK3BD41VHMWEZ71jFhS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkK
591
+ mNEVX58Svnw2Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe
592
+ vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep+OkuE6N36B9K
593
+ -----END CERTIFICATE-----
594
+
595
+ Certplus Class 2 Primary CA
596
+ ===========================
597
+ -----BEGIN CERTIFICATE-----
598
+ MIIDkjCCAnqgAwIBAgIRAIW9S/PY2uNp9pTXX8OlRCMwDQYJKoZIhvcNAQEFBQAwPTELMAkGA1UE
599
+ BhMCRlIxETAPBgNVBAoTCENlcnRwbHVzMRswGQYDVQQDExJDbGFzcyAyIFByaW1hcnkgQ0EwHhcN
600
+ OTkwNzA3MTcwNTAwWhcNMTkwNzA2MjM1OTU5WjA9MQswCQYDVQQGEwJGUjERMA8GA1UEChMIQ2Vy
601
+ dHBsdXMxGzAZBgNVBAMTEkNsYXNzIDIgUHJpbWFyeSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP
602
+ ADCCAQoCggEBANxQltAS+DXSCHh6tlJw/W/uz7kRy1134ezpfgSN1sxvc0NXYKwzCkTsA18cgCSR
603
+ 5aiRVhKC9+Ar9NuuYS6JEI1rbLqzAr3VNsVINyPi8Fo3UjMXEuLRYE2+L0ER4/YXJQyLkcAbmXuZ
604
+ Vg2v7tK8R1fjeUl7NIknJITesezpWE7+Tt9avkGtrAjFGA7v0lPubNCdEgETjdyAYveVqUSISnFO
605
+ YFWe2yMZeVYHDD9jC1yw4r5+FfyUM1hBOHTE4Y+L3yasH7WLO7dDWWuwJKZtkIvEcupdM5i3y95e
606
+ e++U8Rs+yskhwcWYAqqi9lt3m/V+llU0HGdpwPFC40es/CgcZlUCAwEAAaOBjDCBiTAPBgNVHRME
607
+ CDAGAQH/AgEKMAsGA1UdDwQEAwIBBjAdBgNVHQ4EFgQU43Mt38sOKAze3bOkynm4jrvoMIkwEQYJ
608
+ YIZIAYb4QgEBBAQDAgEGMDcGA1UdHwQwMC4wLKAqoCiGJmh0dHA6Ly93d3cuY2VydHBsdXMuY29t
609
+ L0NSTC9jbGFzczIuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQCnVM+IRBnL39R/AN9WM2K191EBkOvD
610
+ P9GIROkkXe/nFL0gt5o8AP5tn9uQ3Nf0YtaLcF3n5QRIqWh8yfFC82x/xXp8HVGIutIKPidd3i1R
611
+ TtMTZGnkLuPT55sJmabglZvOGtd/vjzOUrMRFcEPF80Du5wlFbqidon8BvEY0JNLDnyCt6X09l/+
612
+ 7UCmnYR0ObncHoUW2ikbhiMAybuJfm6AiB4vFLQDJKgybwOaRywwvlbGp0ICcBvqQNi6BQNwB6SW
613
+ //1IMwrh3KWBkJtN3X3n57LNXMhqlfil9o3EXXgIvnsG1knPGTZQIy4I5p4FTUcY1Rbpsda2ENW7
614
+ l7+ijrRU
615
+ -----END CERTIFICATE-----
616
+
617
+ DST Root CA X3
618
+ ==============
619
+ -----BEGIN CERTIFICATE-----
620
+ MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/MSQwIgYDVQQK
621
+ ExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMTDkRTVCBSb290IENBIFgzMB4X
622
+ DTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVowPzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1
623
+ cmUgVHJ1c3QgQ28uMRcwFQYDVQQDEw5EU1QgUm9vdCBDQSBYMzCCASIwDQYJKoZIhvcNAQEBBQAD
624
+ ggEPADCCAQoCggEBAN+v6ZdQCINXtMxiZfaQguzH0yxrMMpb7NnDfcdAwRgUi+DoM3ZJKuM/IUmT
625
+ rE4Orz5Iy2Xu/NMhD2XSKtkyj4zl93ewEnu1lcCJo6m67XMuegwGMoOifooUMM0RoOEqOLl5CjH9
626
+ UL2AZd+3UWODyOKIYepLYYHsUmu5ouJLGiifSKOeDNoJjj4XLh7dIN9bxiqKqy69cK3FCxolkHRy
627
+ xXtqqzTWMIn/5WgTe1QLyNau7Fqckh49ZLOMxt+/yUFw7BZy1SbsOFU5Q9D8/RhcQPGX69Wam40d
628
+ utolucbY38EVAjqr2m7xPi71XAicPNaDaeQQmxkqtilX4+U9m5/wAl0CAwEAAaNCMEAwDwYDVR0T
629
+ AQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMSnsaR7LHH62+FLkHX/xBVghYkQ
630
+ MA0GCSqGSIb3DQEBBQUAA4IBAQCjGiybFwBcqR7uKGY3Or+Dxz9LwwmglSBd49lZRNI+DT69ikug
631
+ dB/OEIKcdBodfpga3csTS7MgROSR6cz8faXbauX+5v3gTt23ADq1cEmv8uXrAvHRAosZy5Q6XkjE
632
+ GB5YGV8eAlrwDPGxrancWYaLbumR9YbK+rlmM6pZW87ipxZzR8srzJmwN0jP41ZL9c8PDHIyh8bw
633
+ RLtTcm1D9SZImlJnt1ir/md2cXjbDaJWFBM5JDGFoqgCWjBH4d1QB7wCCZAA62RjYJsWvIjJEubS
634
+ fZGL+T0yjWW06XyxV3bqxbYoOb8VZRzI9neWagqNdwvYkQsEjgfbKbYK7p2CNTUQ
635
+ -----END CERTIFICATE-----
636
+
637
+ SwissSign Gold CA - G2
638
+ ======================
639
+ -----BEGIN CERTIFICATE-----
640
+ MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCz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BAUw
654
+ AwEB/zAdBgNVHQ4EFgQUWyV7lqRlUX64OfPAeGZe6Drn8O4wHwYDVR0jBBgwFoAUWyV7lqRlUX64
655
+ OfPAeGZe6Drn8O4wRgYDVR0gBD8wPTA7BglghXQBWQECAQEwLjAsBggrBgEFBQcCARYgaHR0cDov
656
+ L3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBACe645R88a7A3hfm
657
+ 5djV9VSwg/S7zV4Fe0+fdWavPOhWfvxyeDgD2StiGwC5+OlgzczOUYrHUDFu4Up+GC9pWbY9ZIEr
658
+ 44OE5iKHjn3g7gKZYbge9LgriBIWhMIxkziWMaa5O1M/wySTVltpkuzFwbs4AOPsF6m43Md8AYOf
659
+ Mke6UiI0HTJ6CVanfCU2qT1L2sCCbwq7EsiHSycR+R4tx5M/nttfJmtS2S6K8RTGRI0Vqbe/vd6m
660
+ Gu6uLftIdxf+u+yvGPUqUfA5hJeVbG4bwyvEdGB5JbAKJ9/fXtI5z0V9QkvfsywexcZdylU6oJxp
661
+ mo/a77KwPJ+HbBIrZXAVUjEaJM9vMSNQH4xPjyPDdEFjHFWoFN0+4FFQz/EbMFYOkrCChdiDyyJk
662
+ vC24JdVUorgG6q2SpCSgwYa1ShNqR88uC1aVVMvOmttqtKay20EIhid392qgQmwLOM7XdVAyksLf
663
+ KzAiSNDVQTglXaTpXZ/GlHXQRf0wl0OPkKsKx4ZzYEppLd6leNcG2mqeSz53OiATIgHQv2ieY2Br
664
+ NU0LbbqhPcCT4H8js1WtciVORvnSFu+wZMEBnunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6Lqj
665
+ viOvrv1vA+ACOzB2+httQc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ
666
+ -----END CERTIFICATE-----
667
+
668
+ SwissSign Silver CA - G2
669
+ ========================
670
+ -----BEGIN CERTIFICATE-----
671
+ MIIFvTCCA6WgAwIBAgIITxvUL1S7L0swDQYJKo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EBAMCAQYwDwYDVR0TAQH/
685
+ BAUwAwEB/zAdBgNVHQ4EFgQUF6DNweRBtjpbO8tFnb0cwpj6hlgwHwYDVR0jBBgwFoAUF6DNweRB
686
+ tjpbO8tFnb0cwpj6hlgwRgYDVR0gBD8wPTA7BglghXQBWQEDAQEwLjAsBggrBgEFBQcCARYgaHR0
687
+ cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBAHPGgeAn0i0P
688
+ 4JUw4ppBf1AsX19iYamGamkYDHRJ1l2E6kFSGG9YrVBWIGrGvShpWJHckRE1qTodvBqlYJ7YH39F
689
+ kWnZfrt4csEGDyrOj4VwYaygzQu4OSlWhDJOhrs9xCrZ1x9y7v5RoSJBsXECYxqCsGKrXlcSH9/L
690
+ 3XWgwF15kIwb4FDm3jH+mHtwX6WQ2K34ArZv02DdQEsixT2tOnqfGhpHkXkzuoLcMmkDlm4fS/Bx
691
+ /uNncqCxv1yL5PqZIseEuRuNI5c/7SXgz2W79WEE790eslpBIlqhn10s6FvJbakMDHiqYMZWjwFa
692
+ DGi8aRl5xB9+lwW/xekkUV7U1UtT7dkjWjYDZaPBA61BMPNGG4WQr2W11bHkFlt4dR2Xem1ZqSqP
693
+ e97Dh4kQmUlzeMg9vVE1dCrV8X5pGyq7O70luJpaPXJhkGaH7gzWTdQRdAtq/gsD/KNVV4n+Ssuu
694
+ WxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/OMpXEA29MC/HpeZBoNquBYeaoKRlbEwJ
695
+ DIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+hAhm0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ub
696
+ DgEj8Z+7fNzcbBGXJbLytGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u
697
+ -----END CERTIFICATE-----
698
+
699
+ GeoTrust Primary Certification Authority
700
+ ========================================
701
+ -----BEGIN CERTIFICATE-----
702
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UnWm07Kx+dOCQD32sfvmWKZd7aVIl6KoKv0uHiYyjgZmclynnjNS6yvGaBzEi38wkG6gZHa
716
+ Floxt/m0cYASSJlyc1pZU8FjUjPtp8nSOQJw+uCxQmYpqptR7TBUIhRf2asdweSU8Pj1K/fqynhG
717
+ 1riR/aYNKxoUAT6A8EKglQdebc3MS6RFjasS6LPeWuWgfOgPIh1a6Vk=
718
+ -----END CERTIFICATE-----
719
+
720
+ thawte Primary Root CA
721
+ ======================
722
+ -----BEGIN CERTIFICATE-----
723
+ MIIEIDCCAwigAwIBAgIQNE7VVyDV7exJ9C/ON9srbTANBgkqhkiG9w0BAQUFADCBqTELMAkGA1UE
724
+ BhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
725
+ aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhv
726
+ cml6ZWQgdXNlIG9ubHkxHzAdBgNVBAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwHhcNMDYxMTE3
727
+ MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCBqTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwg
728
+ SW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMv
729
+ KGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxHzAdBgNVBAMT
730
+ FnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCs
731
+ oPD7gFnUnMekz52hWXMJEEUMDSxuaPFsW0hoSVk3/AszGcJ3f8wQLZU0HObrTQmnHNK4yZc2AreJ
732
+ 1CRfBsDMRJSUjQJib+ta3RGNKJpchJAQeg29dGYvajig4tVUROsdB58Hum/u6f1OCyn1PoSgAfGc
733
+ q/gcfomk6KHYcWUNo1F77rzSImANuVud37r8UVsLr5iy6S7pBOhih94ryNdOwUxkHt3Ph1i6Sk/K
734
+ aAcdHJ1KxtUvkcx8cXIcxcBn6zL9yZJclNqFwJu/U30rCfSMnZEfl2pSy94JNqR32HuHUETVPm4p
735
+ afs5SSYeCaWAe0At6+gnhcn+Yf1+5nyXHdWdAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD
736
+ VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBR7W0XPr87Lev0xkhpqtvNG61dIUDANBgkqhkiG9w0BAQUF
737
+ AAOCAQEAeRHAS7ORtvzw6WfUDW5FvlXok9LOAz/t2iWwHVfLHjp2oEzsUHboZHIMpKnxuIvW1oeE
738
+ uzLlQRHAd9mzYJ3rG9XRbkREqaYB7FViHXe4XI5ISXycO1cRrK1zN44veFyQaEfZYGDm/Ac9IiAX
739
+ xPcW6cTYcvnIc3zfFi8VqT79aie2oetaupgf1eNNZAqdE8hhuvU5HIe6uL17In/2/qxAeeWsEG89
740
+ jxt5dovEN7MhGITlNgDrYyCZuen+MwS7QcjBAvlEYyCegc5C09Y/LHbTY5xZ3Y+m4Q6gLkH3LpVH
741
+ z7z9M/P2C2F+fpErgUfCJzDupxBdN49cOSvkBPB7jVaMaA==
742
+ -----END CERTIFICATE-----
743
+
744
+ VeriSign Class 3 Public Primary Certification Authority - G5
745
+ ============================================================
746
+ -----BEGIN CERTIFICATE-----
747
+ MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCByjELMAkGA1UE
748
+ BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
749
+ ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemV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udmVy
763
+ aXNpZ24uY29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFH/TZafC3ey78DAJ80M5+gKvMzEzMA0GCSqG
764
+ SIb3DQEBBQUAA4IBAQCTJEowX2LP2BqYLz3q3JktvXf2pXkiOOzEp6B4Eq1iDkVwZMXnl2YtmAl+
765
+ X6/WzChl8gGqCBpH3vn5fJJaCGkgDdk+bW48DW7Y5gaRQBi5+MHt39tBquCWIMnNZBU4gcmU7qKE
766
+ KQsTb47bDN0lAtukixlE0kF6BWlKWE9gyn6CagsCqiUXObXbf+eEZSqVir2G3l6BFoMtEMze/aiC
767
+ Km0oHw0LxOXnGiYZ4fQRbxC1lfznQgUy286dUV4otp6F01vvpX1FQHKOtw5rDgb7MzVIcbidJ4vE
768
+ ZV8NhnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq
769
+ -----END CERTIFICATE-----
770
+
771
+ SecureTrust CA
772
+ ==============
773
+ -----BEGIN CERTIFICATE-----
774
+ MIIDuDCCAqCgAwIBAgIQDPCOXAgWpa1Cf/DrJxhZ0DANBgkqhkiG9w0BAQUFADBIMQswCQYDVQQG
775
+ EwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xFzAVBgNVBAMTDlNlY3VyZVRy
776
+ dXN0IENBMB4XDTA2MTEwNzE5MzExOFoXDTI5MTIzMTE5NDA1NVowSDELMAkGA1UEBhMCVVMxIDAe
777
+ BgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9uMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTCC
778
+ ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKukgeWVzfX2FI7CT8rU4niVWJxB4Q2ZQCQX
779
+ OZEzZum+4YOvYlyJ0fwkW2Gz4BERQRwdbvC4u/jep4G6pkjGnx29vo6pQT64lO0pGtSO0gMdA+9t
780
+ DWccV9cGrcrI9f4Or2YlSASWC12juhbDCE/RRvgUXPLIXgGZbf2IzIaowW8xQmxSPmjL8xk037uH
781
+ GFaAJsTQ3MBv396gwpEWoGQRS0S8Hvbn+mPeZqx2pHGj7DaUaHp3pLHnDi+BeuK1cobvomuL8A/b
782
+ 01k/unK8RCSc43Oz969XL0Imnal0ugBS8kvNU3xHCzaFDmapCJcWNFfBZveA4+1wVMeT4C4oFVmH
783
+ ursCAwEAAaOBnTCBmjATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/
784
+ BAUwAwEB/zAdBgNVHQ4EFgQUQjK2FvoE/f5dS3rD/fdMQB1aQ68wNAYDVR0fBC0wKzApoCegJYYj
785
+ aHR0cDovL2NybC5zZWN1cmV0cnVzdC5jb20vU1RDQS5jcmwwEAYJKwYBBAGCNxUBBAMCAQAwDQYJ
786
+ KoZIhvcNAQEFBQADggEBADDtT0rhWDpSclu1pqNlGKa7UTt36Z3q059c4EVlew3KW+JwULKUBRSu
787
+ SceNQQcSc5R+DCMh/bwQf2AQWnL1mA6s7Ll/3XpvXdMc9P+IBWlCqQVxyLesJugutIxq/3HcuLHf
788
+ mbx8IVQr5Fiiu1cprp6poxkmD5kuCLDv/WnPmRoJjeOnnyvJNjR7JLN4TJUXpAYmHrZkUjZfYGfZ
789
+ nMUFdAvnZyPSCPyI6a6Lf+Ew9Dd+/cYy2i2eRDAwbO4H3tI0/NL/QPZL9GZGBlSm8jIKYyYwa5vR
790
+ 3ItHuuG51WLQoqD0ZwV4KWMabwTW+MZMo5qxN7SN5ShLHZ4swrhovO0C7jE=
791
+ -----END CERTIFICATE-----
792
+
793
+ Secure Global CA
794
+ ================
795
+ -----BEGIN CERTIFICATE-----
796
+ MIIDvDCCAqSgAwIBAgIQB1YipOjUiolN9BPI8PjqpTANBgkqhkiG9w0BAQUFADBKMQswCQYDVQQG
797
+ EwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xGTAXBgNVBAMTEFNlY3VyZS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FJ/5
811
+ 3CYNv6ZHdAbYiNE6KTCEztI5gGIbqMdXSbxqVVFnFUq+NQfk1XWYN3kwFNspnWzFacxHVaIw98xc
812
+ f8LDmBxrThaA63p4ZUWiABqvDA1VZDRIuJK58bRQKfJPIx/abKwfROHdI3hRW8cW
813
+ -----END CERTIFICATE-----
814
+
815
+ COMODO Certification Authority
816
+ ==============================
817
+ -----BEGIN CERTIFICATE-----
818
+ MIIEHTCCAwWgAwIBAgIQToEtioJl4AsC7j41AkblPTANBgkqhkiG9w0BAQUFADCBgTELMAkGA1UE
819
+ BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
820
+ A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxJzAlBgNVBAMTHkNPTU9ETyBDZXJ0aWZpY2F0aW9uIEF1
821
+ dGhvcml0eTAeFw0wNjEyMDEwMDAwMDBaFw0yOTEyMzEyMzU5NTlaMIGBMQswCQYDVQQGEwJHQjEb
822
+ MBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFD
823
+ T01PRE8gQ0EgTGltaXRlZDEnMCUGA1UEAxMeQ09NT0RPIENlcnRpZmljYXRpb24gQXV0aG9yaXR5
824
+ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3UcEbVASY06m/weaKXTuH
825
+ +7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI2GqGd0S7WWaXUF601CxwRM/aN5VCaTww
826
+ xHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8Q5sVW7euNJH+1GImGEaaP+vB+fGQV+useg2L23IwambV
827
+ 4EajcNxo2f8ESIl33rXp+2dtQem8Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA
828
+ 1KGzqSX+DT+nHbrTUcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5OnKVI
829
+ rLsm9wIDAQABo4GOMIGLMB0GA1UdDgQWBBQLWOWLxkwVN6RAqTCpIb5HNlpW/zAOBgNVHQ8BAf8E
830
+ BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zBJBgNVHR8EQjBAMD6gPKA6hjhodHRwOi8vY3JsLmNvbW9k
831
+ b2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9uQXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOC
832
+ AQEAPpiem/Yb6dc5t3iuHXIYSdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CP
833
+ OGEIqB6BCsAvIC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/
834
+ RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4zJVSk/BwJVmc
835
+ IGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5ddBA6+C4OmF4O5MBKgxTMVBbkN
836
+ +8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IBZQ==
837
+ -----END CERTIFICATE-----
838
+
839
+ Network Solutions Certificate Authority
840
+ =======================================
841
+ -----BEGIN CERTIFICATE-----
842
+ MIID5jCCAs6gAwIBAgIQV8szb8JcFuZHFhfjkDFo4DANBgkqhkiG9w0BAQUFADBiMQswCQYDVQQG
843
+ EwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMuMTAwLgYDVQQDEydOZXR3b3Jr
844
+ IFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDYxMjAxMDAwMDAwWhcNMjkxMjMx
845
+ MjM1OTU5WjBiMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMg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KFJdlxD
859
+ ydi8NmdspZS11My5vWo1ViHe2MPr+8ukYEywVaCge1ey
860
+ -----END CERTIFICATE-----
861
+
862
+ COMODO ECC Certification Authority
863
+ ==================================
864
+ -----BEGIN CERTIFICATE-----
865
+ MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTELMAkGA1UEBhMC
866
+ R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE
867
+ ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBB
868
+ dXRob3JpdHkwHhcNMDgwMzA2MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0Ix
869
+ GzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR
870
+ Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRo
871
+ b3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSRFtSrYpn1PlILBs5BAH+X
872
+ 4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0JcfRK9ChQtP6IHG4/bC8vCVlbpVsLM5ni
873
+ wz2J+Wos77LTBumjQjBAMB0GA1UdDgQWBBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8E
874
+ BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjEA7wNbeqy3eApyt4jf/7VG
875
+ FAkK+qDmfQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdvGDeA
876
+ U/7dIOA1mjbRxwG55tzd8/8dLDoWV9mSOdY=
877
+ -----END CERTIFICATE-----
878
+
879
+ OISTE WISeKey Global Root GA CA
880
+ ===============================
881
+ -----BEGIN CERTIFICATE-----
882
+ MIID8TCCAtmgAwIBAgIQQT1yx/RrH4FDffHSKFTfmjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UE
883
+ BhMCQ0gxEDAOBgNVBAoTB1dJU2VLZXkxGzAZBgNVBAsTEkNvcHlyaWdodCAoYykgMjAwNTEiMCAG
884
+ A1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBH
885
+ bG9iYWwgUm9vdCBHQSBDQTAeFw0wNTEyMTExNjAzNDRaFw0zNzEyMTExNjA5NTFaMIGKMQswCQYD
886
+ VQQGEwJDSDEQMA4GA1UEChMHV0lTZUtleTEbMBkGA1UECxMSQ29weXJpZ2h0IChjKSAyMDA1MSIw
887
+ IAYDVQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5
888
+ IEdsb2JhbCBSb290IEdBIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy0+zAJs9
889
+ Nt350UlqaxBJH+zYK7LG+DKBKUOVTJoZIyEVRd7jyBxRVVuuk+g3/ytr6dTqvirdqFEr12bDYVxg
890
+ Asj1znJ7O7jyTmUIms2kahnBAbtzptf2w93NvKSLtZlhuAGio9RN1AU9ka34tAhxZK9w8RxrfvbD
891
+ d50kc3vkDIzh2TbhmYsFmQvtRTEJysIA2/dyoJaqlYfQjse2YXMNdmaM3Bu0Y6Kff5MTMPGhJ9vZ
892
+ /yxViJGg4E8HsChWjBgbl0SOid3gF27nKu+POQoxhILYQBRJLnpB5Kf+42TMwVlxSywhp1t94B3R
893
+ LoGbw9ho972WG6xwsRYUC9tguSYBBQIDAQABo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUw
894
+ AwEB/zAdBgNVHQ4EFgQUswN+rja8sHnR3JQmthG+IbJphpQwEAYJKwYBBAGCNxUBBAMCAQAwDQYJ
895
+ KoZIhvcNAQEFBQADggEBAEuh/wuHbrP5wUOxSPMowB0uyQlB+pQAHKSkq0lPjz0e701vvbyk9vIm
896
+ MMkQyh2I+3QZH4VFvbBsUfk2ftv1TDI6QU9bR8/oCy22xBmddMVHxjtqD6wU2zz0c5ypBd8A3HR4
897
+ +vg1YFkCExh8vPtNsCBtQ7tgMHpnM1zFmdH4LTlSc/uMqpclXHLZCB6rTjzjgTGfA6b7wP4piFXa
898
+ hNVQA7bihKOmNqoROgHhGEvWRGizPflTdISzRpFGlgC3gCy24eMQ4tui5yiPAZZiFj4A4xylNoEY
899
+ okxSdsARo27mHbrjWr42U8U+dY+GaSlYU7Wcu2+fXMUY7N0v4ZjJ/L7fCg0=
900
+ -----END CERTIFICATE-----
901
+
902
+ Certigna
903
+ ========
904
+ -----BEGIN CERTIFICATE-----
905
+ MIIDqDCCApCgAwIBAgIJAP7c4wEPyUj/MA0GCSqGSIb3DQEBBQUAMDQxCzAJBgNVBAYTAkZSMRIw
906
+ EAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hMB4XDTA3MDYyOTE1MTMwNVoXDTI3
907
+ MDYyOTE1MTMwNVowNDELMAkGA1UEBhMCRlIxEjAQBgNVBAoMCURoaW15b3RpczERMA8GA1UEAwwI
908
+ Q2VydGlnbmEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDIaPHJ1tazNHUmgh7stL7q
909
+ XOEm7RFHYeGifBZ4QCHkYJ5ayGPhxLGWkv8YbWkj4Sti993iNi+RB7lIzw7sebYs5zRLcAglozyH
910
+ GxnygQcPOJAZ0xH+hrTy0V4eHpbNgGzOOzGTtvKg0KmVEn2lmsxryIRWijOp5yIVUxbwzBfsV1/p
911
+ ogqYCd7jX5xv3EjjhQsVWqa6n6xI4wmy9/Qy3l40vhx4XUJbzg4ij02Q130yGLMLLGq/jj8UEYkg
912
+ DncUtT2UCIf3JR7VsmAA7G8qKCVuKj4YYxclPz5EIBb2JsglrgVKtOdjLPOMFlN+XPsRGgjBRmKf
913
+ Irjxwo1p3Po6WAbfAgMBAAGjgbwwgbkwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUGu3+QTmQ
914
+ tCRZvgHyUtVF9lo53BEwZAYDVR0jBF0wW4AUGu3+QTmQtCRZvgHyUtVF9lo53BGhOKQ2MDQxCzAJ
915
+ BgNVBAYTAkZSMRIwEAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hggkA/tzjAQ/J
916
+ SP8wDgYDVR0PAQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIABzANBgkqhkiG9w0BAQUFAAOCAQEA
917
+ hQMeknH2Qq/ho2Ge6/PAD/Kl1NqV5ta+aDY9fm4fTIrv0Q8hbV6lUmPOEvjvKtpv6zf+EwLHyzs+
918
+ ImvaYS5/1HI93TDhHkxAGYwP15zRgzB7mFncfca5DClMoTOi62c6ZYTTluLtdkVwj7Ur3vkj1klu
919
+ PBS1xp81HlDQwY9qcEQCYsuuHWhBp6pX6FOqB9IG9tUUBguRA3UsbHK1YZWaDYu5Def131TN3ubY
920
+ 1gkIl2PlwS6wt0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw
921
+ WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg==
922
+ -----END CERTIFICATE-----
923
+
924
+ Deutsche Telekom Root CA 2
925
+ ==========================
926
+ -----BEGIN CERTIFICATE-----
927
+ MIIDnzCCAoegAwIBAgIBJjANBgkqhkiG9w0BAQUFADBxMQswCQYDVQQGEwJERTEcMBoGA1UEChMT
928
+ RGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxlU2VjIFRydXN0IENlbnRlcjEjMCEG
929
+ A1UEAxMaRGV1dHNja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N9RBjNYj1h7P9WgbRGOiWrqnNVmh5XAFmw4jV5mU
943
+ Cm26OWMohpLzGITY+9HPBVZkVw==
944
+ -----END CERTIFICATE-----
945
+
946
+ Cybertrust Global Root
947
+ ======================
948
+ -----BEGIN CERTIFICATE-----
949
+ MIIDoTCCAomgAwIBAgILBAAAAAABD4WqLUgwDQYJKoZIhvcNAQEFBQAwOzEYMBYGA1UEChMPQ3li
950
+ ZXJ0cnVzdCwgSW5jMR8wHQYDVQQDExZDeWJlcnRydXN0IEdsb2JhbCBSb290MB4XDTA2MTIxNTA4
951
+ MDAwMFoXDTIxMTIxNTA4MDAwMFowOzEYMBYGA1UEChMPQ3liZXJ0cnVzdCwgSW5jMR8wHQYDVQQD
952
+ ExZDeWJlcnRydXN0IEdsb2JhbCBSb290MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
953
+ +Mi8vRRQZhP/8NN57CPytxrHjoXxEnOmGaoQ25yiZXRadz5RfVb23CO21O1fWLE3TdVJDm71aofW
954
+ 0ozSJ8bi/zafmGWgE07GKmSb1ZASzxQG9Dvj1Ci+6A74q05IlG2OlTEQXO2iLb3VOm2yHLtgwEZL
955
+ AfVJrn5GitB0jaEMAs7u/OePuGtm839EAL9mJRQr3RAwHQeWP032a7iPt3sMpTjr3kfb1V05/Iin
956
+ 89cqdPHoWqI7n1C6poxFNcJQZZXcY4Lv3b93TZxiyWNzFtApD0mpSPCzqrdsxacwOUBdrsTiXSZT
957
+ 8M4cIwhhqJQZugRiQOwfOHB3EgZxpzAYXSUnpQIDAQABo4GlMIGiMA4GA1UdDwEB/wQEAwIBBjAP
958
+ BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBS2CHsNesysIEyGVjJez6tuhS1wVzA/BgNVHR8EODA2
959
+ MDSgMqAwhi5odHRwOi8vd3d3Mi5wdWJsaWMtdHJ1c3QuY29tL2NybC9jdC9jdHJvb3QuY3JsMB8G
960
+ A1UdIwQYMBaAFLYIew16zKwgTIZWMl7Pq26FLXBXMA0GCSqGSIb3DQEBBQUAA4IBAQBW7wojoFRO
961
+ lZfJ+InaRcHUowAl9B8Tq7ejhVhpwjCt2BWKLePJzYFa+HMjWqd8BfP9IjsO0QbE2zZMcwSO5bAi
962
+ 5MXzLqXZI+O4Tkogp24CJJ8iYGd7ix1yCcUxXOl5n4BHPa2hCwcUPUf/A2kaDAtE52Mlp3+yybh2
963
+ hO0j9n0Hq0V+09+zv+mKts2oomcrUtW3ZfA5TGOgkXmTUg9U3YO7n9GPp1Nzw8v/MOx8BLjYRB+T
964
+ X3EJIrduPuocA06dGiBh+4E37F78CkWr1+cXVdCg6mCbpvbjjFspwgZgFJ0tl0ypkxWdYcQBX0jW
965
+ WL1WMRJOEcgh4LMRkWXbtKaIOM5V
966
+ -----END CERTIFICATE-----
967
+
968
+ ePKI Root Certification Authority
969
+ =================================
970
+ -----BEGIN CERTIFICATE-----
971
+ MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBeMQswCQYDVQQG
972
+ EwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0ZC4xKjAoBgNVBAsMIWVQS0kg
973
+ Um9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNDEyMjAwMjMxMjdaFw0zNDEyMjAwMjMx
974
+ MjdaMF4xCzAJBgNVBAYTAlRXMSMwIQYDVQQKDBpDaHVuZ2h3YSBUZWxlY29tIENvLiwgTHRkLjEq
975
+ MCgGA1UECwwhZVBLSSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0B
976
+ AQEFAAOCAg8AMIICCgKCAgEA4SUP7o3biDN1Z82tH306Tm2d0y8U82N0ywEhajfqhFAHSyZbCUNs
977
+ IZ5qyNUD9WBpj8zwIuQf5/dqIjG3LBXy4P4AakP/h2XGtRrBp0xtInAhijHyl3SJCRImHJ7K2RKi
978
+ lTza6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JgQCA2j6/7Nu4tCEoduL+bXPjqpRugc6bY+G7gMwRfaKonh+3ZwZCc7b3jajWvY9+r
992
+ GNm65ulK6lCKD2GTHuItGeIwlDWSXQ62B68ZgI9HkFFLLk3dheLSClIKF5r8GrBQAuUBo2M3IUxE
993
+ xJtRmREOc5wGj1QupyheRDmHVi03vYVElOEMSyycw5KFNGHLD7ibSkNS/jQ6fbjpKdx2qcgw+BRx
994
+ gMYeNkh0IkFch4LoGHGLQYlE535YW6i4jRPpp2zDR+2zGp1iro2C6pSe3VkQw63d4k3jMdXH7Ojy
995
+ sP6SHhYKGvzZ8/gntsm+HbRsZJB/9OTEW9c3rkIO3aQab3yIVMUWbuF6aC74Or8NpDyJO3inTmOD
996
+ BCEIZ43ygknQW/2xzQ+DhNQ+IIX3Sj0rnP0qCglN6oH4EZw=
997
+ -----END CERTIFICATE-----
998
+
999
+ certSIGN ROOT CA
1000
+ ================
1001
+ -----BEGIN CERTIFICATE-----
1002
+ MIIDODCCAiCgAwIBAgIGIAYFFnACMA0GCSqGSIb3DQEBBQUAMDsxCzAJBgNVBAYTAlJPMREwDwYD
1003
+ VQQKEwhjZXJ0U0lHTjEZMBcGA1UECxMQY2VydFNJR04gUk9PVCBDQTAeFw0wNjA3MDQxNzIwMDRa
1004
+ Fw0zMTA3MDQxNzIwMDRaMDsxCzAJBgNVBAYTAlJPMREwDwYDVQQKEwhjZXJ0U0lHTjEZMBcGA1UE
1005
+ CxMQY2VydFNJR04gUk9PVCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALczuX7I
1006
+ JUqOtdu0KBuqV5Do0SLTZLrTk+jUrIZhQGpgV2hUhE28alQCBf/fm5oqrl0Hj0rDKH/v+yv6efHH
1007
+ rfAQUySQi2bJqIirr1qjAOm+ukbuW3N7LBeCgV5iLKECZbO9xSsAfsT8AzNXDe3i+s5dRdY4zTW2
1008
+ ssHQnIFKquSyAVwdj1+ZxLGt24gh65AIgoDzMKND5pCCrlUoSe1b16kQOA7+j0xbm0bqQfWwCHTD
1009
+ 0IgztnzXdN/chNFDDnU5oSVAKOp4yw4sLjmdjItuFhwvJoIQ4uNllAoEwF73XVv4EOLQunpL+943
1010
+ AAAaWyjj0pxzPjKHmKHJUS/X3qwzs08CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8B
1011
+ Af8EBAMCAcYwHQYDVR0OBBYEFOCMm9slSbPxfIbWskKHC9BroNnkMA0GCSqGSIb3DQEBBQUAA4IB
1012
+ AQA+0hyJLjX8+HXd5n9liPRyTMks1zJO890ZeUe9jjtbkw9QSSQTaxQGcu8J06Gh40CEyecYMnQ8
1013
+ SG4Pn0vU9x7Tk4ZkVJdjclDVVc/6IJMCopvDI5NOFlV2oHB5bc0hH88vLbwZ44gx+FkagQnIl6Z0
1014
+ x2DEW8xXjrJ1/RsCCdtZb3KTafcxQdaIOL+Hsr0Wefmq5L6IJd1hJyMctTEHBDa0GpC9oHRxUIlt
1015
+ vBTjD4au8as+x6AJzKNI0eDbZOeStc+vckNwi/nDhDwTqn6Sm1dTk/pwwpEOMfmbZ13pljheX7Nz
1016
+ TogVZ96edhBiIL5VaZVDADlN9u6wWk5JRFRYX0KD
1017
+ -----END CERTIFICATE-----
1018
+
1019
+ GeoTrust Primary Certification Authority - G3
1020
+ =============================================
1021
+ -----BEGIN CERTIFICATE-----
1022
+ MIID/jCCAuagAwIBAgIQFaxulBmyeUtB9iepwxgPHzANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UE
1023
+ BhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA4IEdlb1RydXN0
1024
+ IEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFy
1025
+ eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEczMB4XDTA4MDQwMjAwMDAwMFoXDTM3MTIwMTIz
1026
+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vtux6jAAgIFyqCXDFdRootD4abdNlF+9RAsXqqaC2Gspki4cErx5z481+oghLrGREt
1040
+ -----END CERTIFICATE-----
1041
+
1042
+ thawte Primary Root CA - G2
1043
+ ===========================
1044
+ -----BEGIN CERTIFICATE-----
1045
+ MIICiDCCAg2gAwIBAgIQNfwmXNmET8k9Jj1Xm67XVjAKBggqhkjOPQQDAzCBhDELMAkGA1UEBhMC
1046
+ VVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjE4MDYGA1UECxMvKGMpIDIwMDcgdGhhd3RlLCBJbmMu
1047
+ IC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJDAiBgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3Qg
1048
+ Q0EgLSBHMjAeFw0wNzExMDUwMDAwMDBaFw0zODAxMTgyMzU5NTlaMIGEMQswCQYDVQQGEwJVUzEV
1049
+ MBMGA1UEChMMdGhhd3RlLCBJbmMuMTgwNgYDVQQLEy8oYykgMjAwNyB0aGF3dGUsIEluYy4gLSBG
1050
+ b3IgYXV0aG9yaXplZCB1c2Ugb25seTEkMCIGA1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAt
1051
+ IEcyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEotWcgnuVnfFSeIf+iha/BebfowJPDQfGAFG6DAJS
1052
+ LSKkQjnE/o/qycG+1E3/n3qe4rF8mq2nhglzh9HnmuN6papu+7qzcMBniKI11KOasf2twu8x+qi5
1053
+ 8/sIxpHR+ymVo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU
1054
+ mtgAMADna3+FGO6Lts6KDPgR4bswCgYIKoZIzj0EAwMDaQAwZgIxAN344FdHW6fmCsO99YCKlzUN
1055
+ G4k8VIZ3KMqh9HneteY4sPBlcIx/AlTCv//YoT7ZzwIxAMSNlPzcU9LcnXgWHxUzI1NS41oxXZ3K
1056
+ rr0TKUQNJ1uo52icEvdYPy5yAlejj6EULg==
1057
+ -----END CERTIFICATE-----
1058
+
1059
+ thawte Primary Root CA - G3
1060
+ ===========================
1061
+ -----BEGIN CERTIFICATE-----
1062
+ MIIEKjCCAxKgAwIBAgIQYAGXt0an6rS0mtZLL/eQ+zANBgkqhkiG9w0BAQsFADCBrjELMAkGA1UE
1063
+ BhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
1064
+ aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIwMDggdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhv
1065
+ cml6ZWQgdXNlIG9ubHkxJDAiBgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EgLSBHMzAeFw0w
1066
+ ODA0MDIwMDAwMDBaFw0zNzEyMDEyMzU5NTlaMIGuMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMdGhh
1067
+ d3RlLCBJbmMuMSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMTgwNgYD
1068
+ VQQLEy8oYykgMjAwOCB0aGF3dGUsIEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTEkMCIG
1069
+ A1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAtIEczMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
1070
+ MIIBCgKCAQEAsr8nLPvb2FvdeHsbnndmgcs+vHyu86YnmjSjaDFxODNi5PNxZnmxqWWjpYvVj2At
1071
+ P0LMqmsywCPLLEHd5N/8YZzic7IilRFDGF/Eth9XbAoFWCLINkw6fKXRz4aviKdEAhN0cXMKQlkC
1072
+ +BsUa0Lfb1+6a4KinVvnSr0eAXLbS3ToO39/fR8EtCab4LRarEc9VbjXsCZSKAExQGbY2SS99irY
1073
+ 7CFJXJv2eul/VTV+lmuNk5Mny5K76qxAwJ/C+IDPXfRa3M50hqY+bAtTyr2SzhkGcuYMXDhpxwTW
1074
+ vGzOW/b3aJzcJRVIiKHpqfiYnODz1TEoYRFsZ5aNOZnLwkUkOQIDAQABo0IwQDAPBgNVHRMBAf8E
1075
+ BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUrWyqlGCc7eT/+j4KdCtjA/e2Wb8wDQYJ
1076
+ KoZIhvcNAQELBQADggEBABpA2JVlrAmSicY59BDlqQ5mU1143vokkbvnRFHfxhY0Cu9qRFHqKweK
1077
+ A3rD6z8KLFIWoCtDuSWQP3CpMyVtRRooOyfPqsMpQhvfO0zAMzRbQYi/aytlryjvsvXDqmbOe1bu
1078
+ t8jLZ8HJnBoYuMTDSQPxYA5QzUbF83d597YV4Djbxy8ooAw/dyZ02SUS2jHaGh7cKUGRIjxpp7sC
1079
+ 8rZcJwOJ9Abqm+RyguOhCcHpABnTPtRwa7pxpqpYrvS76Wy274fMm7v/OeZWYdMKp8RcTGB7BXcm
1080
+ er/YB1IsYvdwY9k5vG8cwnncdimvzsUsZAReiDZuMdRAGmI0Nj81Aa6sY6A=
1081
+ -----END CERTIFICATE-----
1082
+
1083
+ GeoTrust Primary Certification Authority - G2
1084
+ =============================================
1085
+ -----BEGIN CERTIFICATE-----
1086
+ MIICrjCCAjWgAwIBAgIQPLL0SAoA4v7rJDteYD7DazAKBggqhkjOPQQDAzCBmDELMAkGA1UEBhMC
1087
+ VVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA3IEdlb1RydXN0IElu
1088
+ Yy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFyeSBD
1089
+ ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMB4XDTA3MTEwNTAwMDAwMFoXDTM4MDExODIzNTk1
1090
+ OVowgZgxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAoYykg
1091
+ MjAwNyBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNVBAMTLUdl
1092
+ b1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMjB2MBAGByqGSM49AgEG
1093
+ BSuBBAAiA2IABBWx6P0DFUPlrOuHNxFi79KDNlJ9RVcLSo17VDs6bl8VAsBQps8lL33KSLjHUGMc
1094
+ KiEIfJo22Av+0SbFWDEwKCXzXV2juLaltJLtbCyf691DiaI8S0iRHVDsJt/WYC69IaNCMEAwDwYD
1095
+ VR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBVfNVdRVfslsq0DafwBo/q+
1096
+ EVXVMAoGCCqGSM49BAMDA2cAMGQCMGSWWaboCd6LuvpaiIjwH5HTRqjySkwCY/tsXzjbLkGTqQ7m
1097
+ ndwxHLKgpxgceeHHNgIwOlavmnRs9vuD4DPTCF+hnMJbn0bWtsuRBmOiBuczrD6ogRLQy7rQkgu2
1098
+ npaqBA+K
1099
+ -----END CERTIFICATE-----
1100
+
1101
+ VeriSign Universal Root Certification Authority
1102
+ ===============================================
1103
+ -----BEGIN CERTIFICATE-----
1104
+ MIIEuTCCA6GgAwIBAgIQQBrEZCGzEyEDDrvkEhrFHTANBgkqhkiG9w0BAQsFADCBvTELMAkGA1UE
1105
+ BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
1106
+ ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwOCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVk
1107
+ IHVzZSBvbmx5MTgwNgYDVQQDEy9WZXJpU2lnbiBVbml2ZXJzYWwgUm9vdCBDZXJ0aWZpY2F0aW9u
1108
+ IEF1dGhvcml0eTAeFw0wODA0MDIwMDA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Y/ok+myDjEedO2Pzmvl2MpWRsXe8rJq+seQxIcaBlVZaDrHC1LGmWazx
1122
+ Y8u4TB1ZkErvkBYoH1quEPuBUDgMbMzxPcP1Y+Oz4yHJJDnp/RVmRvQbEdBNc6N9Rvk97ahfYtTx
1123
+ P/jgdFcrGJ2BtMQo2pSXpXDrrB2+BxHw1dvd5Yzw1TKwg+ZX4o+/vqGqvz0dtdQ46tewXDpPaj+P
1124
+ wGZsY6rp2aQW9IHRlRQOfc2VNNnSj3BzgXucfr2YYdhFh5iQxeuGMMY1v/D/w1WIg0vvBZIGcfK4
1125
+ mJO37M2CYfE45k+XmCpajQ==
1126
+ -----END CERTIFICATE-----
1127
+
1128
+ VeriSign Class 3 Public Primary Certification Authority - G4
1129
+ ============================================================
1130
+ -----BEGIN CERTIFICATE-----
1131
+ MIIDhDCCAwqgAwIBAgIQL4D+I4wOIg9IZxIokYesszAKBggqhkjOPQQDAzCByjELMAkGA1UEBhMC
1132
+ VVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3
1133
+ b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVz
1134
+ ZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmlj
1135
+ YXRpb24gQXV0aG9yaXR5IC0gRzQwHhcNMDcxMTA1MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCByjEL
1136
+ MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBU
1137
+ cnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRo
1138
+ b3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5
1139
+ IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASnVnp8
1140
+ Utpkmw4tXNherJI9/gHmGUo9FANL+mAnINmDiWn6VMaaGF5VKmTeBvaNSjutEDxlPZCIBIngMGGz
1141
+ rl0Bp3vefLK+ymVhAIau2o970ImtTR1ZmkGxvEeA3J5iw/mjgbIwga8wDwYDVR0TAQH/BAUwAwEB
1142
+ /zAOBgNVHQ8BAf8EBAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2UvZ2lmMCEw
1143
+ HzAHBgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cDovL2xvZ28udmVyaXNpZ24u
1144
+ Y29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFLMWkf3upm7ktS5Jj4d4gYDs5bG1MAoGCCqGSM49BAMD
1145
+ A2gAMGUCMGYhDBgmYFo4e1ZC4Kf8NoRRkSAsdk1DPcQdhCPQrNZ8NQbOzWm9kA3bbEhCHQ6qQgIx
1146
+ AJw9SDkjOVgaFRJZap7v1VmyHVIsmXHNxynfGyphe3HR3vPA5Q06Sqotp9iGKt0uEA==
1147
+ -----END CERTIFICATE-----
1148
+
1149
+ NetLock Arany (Class Gold) Főtanúsítvány
1150
+ ========================================
1151
+ -----BEGIN CERTIFICATE-----
1152
+ MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQGEwJIVTERMA8G
1153
+ A1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3MDUGA1UECwwuVGFuw7pzw610
1154
+ dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBB
1155
+ cmFueSAoQ2xhc3MgR29sZCkgRsWRdGFuw7p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Pv31/zvGdg73JRm4gpvlhUbohL3u+pRVjodSVh/GeufOJ8z2FuLjbvrW5Kfna
1169
+ NwUASZQDhETnv0Mxz3WLJdH0pmT1kvarBes96aULNmLazAZfNou2XjG4Kvte9nHfRCaexOYNkbQu
1170
+ dZWAUWpLMKawYqGT8ZvYzsRjdT9ZR7E=
1171
+ -----END CERTIFICATE-----
1172
+
1173
+ Staat der Nederlanden Root CA - G2
1174
+ ==================================
1175
+ -----BEGIN CERTIFICATE-----
1176
+ MIIFyjCCA7KgAwIBAgIEAJiWjDANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJOTDEeMBwGA1UE
1177
+ CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
1178
+ Um9vdCBDQSAtIEcyMB4XDTA4MDMyNjExMTgxN1oXDTIwMDMyNTExMDMxMFowWjELMAkGA1UEBhMC
1179
+ TkwxHjAcBgNVBAoMFVN0YWF0IGRlciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5l
1180
+ ZGVybGFuZGVuIFJvb3QgQ0EgLSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMVZ
1181
+ 5291qj5LnLW4rJ4L5PnZyqtdj7U5EILXr1HgO+EASGrP2uEGQxGZqhQlEq0i6ABtQ8SpuOUfiUtn
1182
+ vWFI7/3S4GCI5bkYYCjDdyutsDeqN95kWSpGV+RLufg3fNU254DBtvPUZ5uW6M7XxgpT0GtJlvOj
1183
+ CwV3SPcl5XCsMBQgJeN/dVrlSPhOewMHBPqCYYdu8DvEpMfQ9XQ+pV0aCPKbJdL2rAQmPlU6Yiil
1184
+ e7Iwr/g3wtG61jj99O9JMDeZJiFIhQGp5Rbn3JBV3w/oOM2ZNyFPXfUib2rFEhZgF1XyZWampzCR
1185
+ OME4HYYEhLoaJXhena/MUGDWE4dS7WMfbWV9whUYdMrhfmQpjHLYF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bEgeqmiSBeGCc1qb3Adb
1199
+ CG19ndeNIdn8FCCqwkXfP+cAslHkwvgFuXkajDTznlvkN1trSt8sV4pAWja63XVECDdCcAz+3F4h
1200
+ oKOKwJCcaNpQ5kUQR3i2TtJlycM33+FCY7BXN0Ute4qcvwXqZVUz9zkQxSgqIXobisQk+T8VyJoV
1201
+ IPVVYpbtbZNQvOSqeK3Zywplh6ZmwcSBo3c6WB4L7oOLnR7SUqTMHW+wmG2UMbX4cQrcufx9MmDm
1202
+ 66+KAQ==
1203
+ -----END CERTIFICATE-----
1204
+
1205
+ Hongkong Post Root CA 1
1206
+ =======================
1207
+ -----BEGIN CERTIFICATE-----
1208
+ MIIDMDCCAhigAwIBAgICA+gwDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoT
1209
+ DUhvbmdrb25nIFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMB4XDTAzMDUx
1210
+ NTA1MTMxNFoXDTIzMDUxNTA0NTIyOVowRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoTDUhvbmdrb25n
1211
+ IFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMIIBIjANBgkqhkiG9w0BAQEF
1212
+ AAOCAQ8AMIIBCgKCAQEArP84tulmAknjorThkPlAj3n54r15/gK97iSSHSL22oVyaf7XPwnU3ZG1
1213
+ ApzQjVrhVcNQhrkpJsLj2aDxaQMoIIBFIi1WpztUlVYiWR8o3x8gPW2iNr4joLFutbEnPzlTCeqr
1214
+ auh0ssJlXI6/fMN4hM2eFvz1Lk8gKgifd/PFHsSaUmYeSF7jEAaPIpjhZY4bXSNmO7ilMlHIhqqh
1215
+ qZ5/dpTCpmy3QfDVyAY45tQM4vM7TG1QjMSDJ8EThFk9nnV0ttgCXjqQesBCNnLsak3c78QA3xMY
1216
+ V18meMjWCnl3v/evt3a5pQuEF10Q6m/hq5URX208o1xNg1vysxmKgIsLhwIDAQABoyYwJDASBgNV
1217
+ HRMBAf8ECDAGAQH/AgEDMA4GA1UdDwEB/wQEAwIBxjANBgkqhkiG9w0BAQUFAAOCAQEADkbVPK7i
1218
+ h9legYsCmEEIjEy82tvuJxuC52pF7BaLT4Wg87JwvVqWuspube5Gi27nKi6Wsxkz67SfqLI37pio
1219
+ l7Yutmcn1KZJ/RyTZXaeQi/cImyaT/JaFTmxcdcrUehtHJjA2Sr0oYJ71clBoiMBdDhViw+5Lmei
1220
+ IAQ32pwL0xch4I+XeTRvhEgCIDMb5jREn5Fw9IBehEPCKdJsEhTkYY2sEJCehFC78JZvRZ+K88ps
1221
+ T/oROhUVRsPNH4NbLUES7VBnQRM9IauUiqpOfMGx+6fWtScvl6tu4B3i0RwsH0Ti/L6RoZz71ilT
1222
+ c4afU9hDDl3WY4JxHYB0yvbiAmvZWg==
1223
+ -----END CERTIFICATE-----
1224
+
1225
+ SecureSign RootCA11
1226
+ ===================
1227
+ -----BEGIN CERTIFICATE-----
1228
+ MIIDbTCCAlWgAwIBAgIBATANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQGEwJKUDErMCkGA1UEChMi
1229
+ SmFwYW4gQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcywgSW5jLjEcMBoGA1UEAxMTU2VjdXJlU2lnbiBS
1230
+ b290Q0ExMTAeFw0wOTA0MDgwNDU2NDdaFw0yOTA0MDgwNDU2NDdaMFgxCzAJBgNVBAYTAkpQMSsw
1231
+ KQYDVQQKEyJKYXBhbiBDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzLCBJbmMuMRwwGgYDVQQDExNTZWN1
1232
+ cmVTaWduIFJvb3RDQTExMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA/XeqpRyQBTvL
1233
+ TJszi1oURaTnkBbR31fSIRCkF/3frNYfp+TbfPfs37gD2pRY/V1yfIw/XwFndBWW4wI8h9uuywGO
1234
+ wvNmxoVF9ALGOrVisq/6nL+k5tSAMJjzDbaTj6nU2DbysPyKyiyhFTOVMdrAG/LuYpmGYz+/3ZMq
1235
+ g6h2uRMft85OQoWPIucuGvKVCbIFtUROd6EgvanyTgp9UK31BQ1FT0Zx/Sg+U/sE2C3XZR1KG/rP
1236
+ O7AxmjVuyIsG0wCR8pQIZUyxNAYAeoni8McDWc/V1uinMrPmmECGxc0nEovMe863ETxiYAcjPitA
1237
+ bpSACW22s293bzUIUPsCh8U+iQIDAQABo0IwQDAdBgNVHQ4EFgQUW/hNT7KlhtQ60vFjmqC+CfZX
1238
+ t94wDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAKCh
1239
+ OBZmLqdWHyGcBvod7bkixTgm2E5P7KN/ed5GIaGHd48HCJqypMWvDzKYC3xmKbabfSVSSUOrTC4r
1240
+ bnpwrxYO4wJs+0LmGJ1F2FXI6Dvd5+H0LgscNFxsWEr7jIhQX5Ucv+2rIrVls4W6ng+4reV6G4pQ
1241
+ Oh29Dbx7VFALuUKvVaAYga1lme++5Jy/xIWrQbJUb9wlze144o4MjQlJ3WN7WmmWAiGovVJZ6X01
1242
+ y8hSyn+B/tlr0/cR7SXf+Of5pPpyl4RTDaXQMhhRdlkUbA/r7F+AjHVDg8OFmP9Mni0N5HeDk061
1243
+ lgeLKBObjBmNQSdJQO7e5iNEOdyhIta6A/I=
1244
+ -----END CERTIFICATE-----
1245
+
1246
+ Microsec e-Szigno Root CA 2009
1247
+ ==============================
1248
+ -----BEGIN CERTIFICATE-----
1249
+ MIIECjCCAvKgAwIBAgIJAMJ+QwRORz8ZMA0GCSqGSIb3DQEBCwUAMIGCMQswCQYDVQQGEwJIVTER
1250
+ MA8GA1UEBwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xJzAlBgNVBAMMHk1pY3Jv
1251
+ c2VjIGUtU3ppZ25vIFJvb3QgQ0EgMjAwOTEfMB0GCSqGSIb3DQEJ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yED/t+AFdlfBHFny+L/k7SViXITwfn4fs775
1265
+ tyERzAMBVnCnEJIeGzSBHq2cGsMEPO0CYdYeBvNfOofyK/FFh+U9rNHHV4S9a67c2Pm2G2JwCz02
1266
+ yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5tHMN1Rq41Bab2XD0h7lbwyYIi
1267
+ LXpUq3DDfSJlgnCW
1268
+ -----END CERTIFICATE-----
1269
+
1270
+ GlobalSign Root CA - R3
1271
+ =======================
1272
+ -----BEGIN CERTIFICATE-----
1273
+ MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UECxMXR2xv
1274
+ YmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh
1275
+ bFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT
1276
+ aWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln
1277
+ bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWt
1278
+ iHL8RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsTgHeMCOFJ
1279
+ 0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmmKPZpO/bLyCiR5Z2KYVc3
1280
+ rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zdQQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjl
1281
+ OCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZXriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2
1282
+ xmmFghcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
1283
+ FI/wS3+oLkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZURUm7
1284
+ lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMpjjM5RcOO5LlXbKr8
1285
+ EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK6fBdRoyV3XpYKBovHd7NADdBj+1E
1286
+ bddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQXmcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18
1287
+ YIvDQVETI53O9zJrlAGomecsMx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7r
1288
+ kpeDMdmztcpHWD9f
1289
+ -----END CERTIFICATE-----
1290
+
1291
+ Autoridad de Certificacion Firmaprofesional CIF A62634068
1292
+ =========================================================
1293
+ -----BEGIN CERTIFICATE-----
1294
+ MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UEBhMCRVMxQjBA
1295
+ BgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2
1296
+ MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVaFw0zMDEyMzEwODM4MTVaMFExCzAJBgNVBAYTAkVTMUIw
1297
+ QAYDVQQDDDlBdXRvcmlkYWQgZGUgQ2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBB
1298
+ NjI2MzQwNjgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDD
1299
+ Utd9thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQMcas9UX4P
1300
+ B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GOylMnfX40S2wBEqgLk9am58m9Ot/MPWo+ZkKXzR4Tgegiv/J2Wv+xYVxC5xhOW1//qk
1314
+ R71kMrv2JYSiJ0L1ILDCExARzRAVukKQKtJE4ZYm6zFIEv0q2skGz3QeqUvVhyj5eTSSPi5E6PaP
1315
+ T481PyWzOdxjKpBrIF/EUhJOlywqrJ2X3kjyo2bbwtKDlaZmp54lD+kLM5FlClrD2VQS3a/DTg4f
1316
+ Jl4N3LON7NWBcN7STyQF82xO9UxJZo3R/9ILJUFI/lGExkKvgATP0H5kSeTy36LssUzAKh3ntLFl
1317
+ osS88Zj0qnAHY7S42jtM+kAiMFsRpvAFDsYCA0irhpuF3dvd6qJ2gHN99ZwExEWN57kci57q13XR
1318
+ crHedUTnQn3iV2t93Jm8PYMo6oCTjcVMZcFwgbg4/EMxsvYDNEeyrPsiBsse3RdHHF9mudMaotoR
1319
+ saS8I8nkvof/uZS2+F0gStRf571oe2XyFR7SOqkt6dhrJKyXWERHrVkY8SFlcN7ONGCoQPHzPKTD
1320
+ KCOM/iczQ0CgFzzr6juwcqajuUpLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQBjLMi
1321
+ 6Et8Vcad+qMUu2WFbm5PEn4KPJ2V
1322
+ -----END CERTIFICATE-----
1323
+
1324
+ Izenpe.com
1325
+ ==========
1326
+ -----BEGIN CERTIFICATE-----
1327
+ MIIF8TCCA9mgAwIBAgIQALC3WhZIX7/hy/WL1xnmfTANBgkqhkiG9w0BAQsFADA4MQswCQYDVQQG
1328
+ EwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wHhcNMDcxMjEz
1329
+ MTMwODI4WhcNMzcxMjEzMDgyNzI1WjA4MQswCQYDVQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMu
1330
+ QS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJ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344
+ BBYEFB0cZQ6o8iV7tJHP5LGx5r1VdGwFMA0GCSqGSIb3DQEBCwUAA4ICAQB4pgwWSp9MiDrAyw6l
1345
+ Fn2fuUhfGI8NYjb2zRlrrKvV9pF9rnHzP7MOeIWblaQnIUdCSnxIOvVFfLMMjlF4rJUT3sb9fbga
1346
+ kEyrkgPH7UIBzg/YsfqikuFgba56awmqxinuaElnMIAkejEWOVt+8Rwu3WwJrfIxwYJOubv5vr8q
1347
+ hT/AQKM6WfxZSzwoJNu0FXWuDYi6LnPAvViH5ULy617uHjAimcs30cQhbIHsvm0m5hzkQiCeR7Cs
1348
+ g1lwLDXWrzY0tM07+DKo7+N4ifuNRSzanLh+QBxh5z6ikixL8s36mLYp//Pye6kfLqCTVyvehQP5
1349
+ aTfLnnhqBbTFMXiJ7HqnheG5ezzevh55hM6fcA5ZwjUukCox2eRFekGkLhObNA5me0mrZJfQRsN5
1350
+ nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJbUjWumDqtujWTI6cfSN01RpiyEGjkpTHC
1351
+ ClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZo
1352
+ Q0iy2+tzJOeRf1SktoA+naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1Z
1353
+ WrOZyGlsQyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw==
1354
+ -----END CERTIFICATE-----
1355
+
1356
+ Chambers of Commerce Root - 2008
1357
+ ================================
1358
+ -----BEGIN CERTIFICATE-----
1359
+ MIIHTzCCBTegAwIBAgIJAKPaQn6ksa7aMA0GCSqGSIb3DQEBBQUAMIGuMQswCQYDVQQGEwJFVTFD
1360
+ MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
1361
+ bS9hZGRyZXNzKT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 YJeSDW4+TTdDDZIVnBgizVGZoCkaPF+KMjNbMMeJL0eYD6MDxvbxrN8y8NmBGuScvfaAFPDRLLmF
1388
+ 9dijscilIeUcE5fuDr3fKanvNFNb0+RqE4QGtjICxFKuItLcsiFCGtpA8CnJ7AoMXOLQusxI0zcK
1389
+ zBIKinmwPQN/aUv0NCB9szTqjktk9T79syNnFQ0EuPAtwQlRPLJsFfClI9eDdOTlLsn+mCdCxqvG
1390
+ nrDQWzilm1DefhiYtUU79nm06PcaewaD+9CL2rvHvRirCG88gGtAPxkZumWK5r7VXNM21+9AUiRg
1391
+ OGcEMeyP84LG3rlV8zsxkVrctQgVrXYlCg17LofiDKYGvCYQbTed7N14jHyAxfDZd0jQ
1392
+ -----END CERTIFICATE-----
1393
+
1394
+ Global Chambersign Root - 2008
1395
+ ==============================
1396
+ -----BEGIN CERTIFICATE-----
1397
+ MIIHSTCCBTGgAwIBAgIJAMnN0+nVfSPOMA0GCSqGSIb3DQEBBQUAMIGsMQswCQYDVQQGEwJFVTFD
1398
+ MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
1399
+ bS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMu
1400
+ QS4xJzAlBgNVBAMTHkdsb2JhbCBDaGFtYmVyc2lnbiBSb290IC0gMjAwODAeFw0wODA4MDExMjMx
1401
+ NDBaFw0zODA3MzExMjMxNDBaMIGsMQswCQYDVQQGEwJFVTFDMEEGA1UEBxM6TWFkcmlkIChzZWUg
1402
+ Y3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNvbS9hZGRyZXNzKTESMBAGA1UEBRMJ
1403
+ QTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMuQS4xJzAlBgNVBAMTHkdsb2JhbCBD
1404
+ aGFtYmVyc2lnbiBS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ykxEjAQBgNVBAUTCUE4Mjc0MzI4NzEbMBkGA1UEChMSQUMgQ2FtZXJm
1418
+ aXJtYSBTLkEuMScwJQYDVQQDEx5HbG9iYWwgQ2hhbWJlcnNpZ24gUm9vdCAtIDIwMDiCCQDJzdPp
1419
+ 1X0jzjAOBgNVHQ8BAf8EBAMCAQYwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYBBQUHAgEWHGh0
1420
+ dHA6Ly9wb2xpY3kuY2FtZXJmaXJtYS5jb20wDQYJKoZIhvcNAQEFBQADggIBAICIf3DekijZBZRG
1421
+ /5BXqfEv3xoNa/p8DhxJJHkn2EaqbylZUohwEurdPfWbU1Rv4WCiqAm57OtZfMY18dwY6fFn5a+6
1422
+ ReAJ3spED8IXDneRRXozX1+WLGiLwUePmJs9wOzL9dWCkoQ10b42OFZyMVtHLaoXpGNR6woBrX/s
1423
+ dZ7LoR/xfxKxueRkf2fWIyr0uDldmOghp+G9PUIadJpwr2hsUF1Jz//7Dl3mLEfXgTpZALVza2Mg
1424
+ 9jFFCDkO9HB+QHBaP9BrQql0PSgvAm11cpUJjUhjxsYjV5KTXjXBjfkK9yydYhz2rXzdpjEetrHH
1425
+ foUm+qRqtdpjMNHvkzeyZi99Bffnt0uYlDXA2TopwZ2yUDMdSqlapskD7+3056huirRXhOukP9Du
1426
+ qqqHW2Pok+JrqNS4cnhrG+055F3Lm6qH1U9OAP7Zap88MQ8oAgF9mOinsKJknnn4SPIVqczmyETr
1427
+ P3iZ8ntxPjzxmKfFGBI/5rsoM0LpRQp8bfKGeS/Fghl9CYl8slR2iK7ewfPM4W7bMdaTrpmg7yVq
1428
+ c5iJWzouE4gev8CSlDQb4ye3ix5vQv/n6TebUB0tovkC7stYWDpxvGjjqsGvHCgfotwjZT+B6q6Z
1429
+ 09gwzxMNTxXJhLynSC34MCN32EZLeW32jO06f2ARePTpm67VVMB0gNELQp/B
1430
+ -----END CERTIFICATE-----
1431
+
1432
+ Go Daddy Root Certificate Authority - G2
1433
+ ========================================
1434
+ -----BEGIN CERTIFICATE-----
1435
+ MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
1436
+ B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoTEUdvRGFkZHkuY29tLCBJbmMu
1437
+ MTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5
1438
+ MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6
1439
+ b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjExMC8G
1440
+ A1UEAxMoR28gRGFkZHkgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZI
1441
+ hvcNAQEBBQADggEPADCCAQoCggEBAL9xYgjx+lk09xvJGKP3gElY6SKDE6bFIEMBO4Tx5oVJnyfq
1442
+ 9oQbTqC023CYxzIBsQU+B07u9PpPL1kwIuerGVZr4oAH/PMWdYA5UXvl+TW2dE6pjYIT5LY/qQOD
1443
+ +qK+ihVqf94Lw7YZFAXK6sOoBJQ7RnwyDfMAZiLIjWltNowRGLfTshxgtDj6AozO091GB94KPutd
1444
+ fMh8+7ArU6SSYmlRJQVhGkSBjCypQ5Yj36w6gZoOKcUcqeldHraenjAKOc7xiID7S13MMuyFYkMl
1445
+ NAJWJwGRtDtwKj9useiciAF9n9T521NtYJ2/LOdYq7hfRvzOxBsDPAnrSTFcaUaz4EcCAwEAAaNC
1446
+ MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFDqahQcQZyi27/a9
1447
+ BUFuIMGU2g/eMA0GCSqGSIb3DQEBCwUAA4IBAQCZ21151fmXWWcDYfF+OwYxdS2hII5PZYe096ac
1448
+ vNjpL9DbWu7PdIxztDhC2gV7+AJ1uP2lsdeu9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r
1449
+ 5N9ss4UXnT3ZJE95kTXWXwTrgIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYV
1450
+ N8Gb5DKj7Tjo2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO
1451
+ LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI4uJEvlz36hz1
1452
+ -----END CERTIFICATE-----
1453
+
1454
+ Starfield Root Certificate Authority - G2
1455
+ =========================================
1456
+ -----BEGIN CERTIFICATE-----
1457
+ MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
1458
+ B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
1459
+ b2dpZXMsIEluYy4xMjAwBgNVBAMTKVN0YXJmaWVsZCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0
1460
+ eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgY8xCzAJBgNVBAYTAlVTMRAw
1461
+ DgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFyZmllbGQg
1462
+ VGVjaG5vbG9naWVzLCBJbmMuMTIwMAYDVQQDEylTdGFyZmllbGQgUm9vdCBDZXJ0aWZpY2F0ZSBB
1463
+ dXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3twQP89o/8ArFv
1464
+ W59I2Z154qK3A2FWGMNHttfKPTUuiUP3oWmb3ooa/RMgnLRJdzIpVv257IzdIvpy3Cdhl+72WoTs
1465
+ bhm5iSzchFvVdPtrX8WJpRBSiUZV9Lh1HOZ/5FSuS/hVclcCGfgXcVnrHigHdMWdSL5stPSksPNk
1466
+ N3mSwOxGXn/hbVNMYq/NHwtjuzqd+/x5AJhhdM8mgkBj87JyahkNmcrUDnXMN/uLicFZ8WJ/X7Nf
1467
+ ZTD4p7dNdloedl40wOiWVpmKs/B/pM293DIxfJHP4F8R+GuqSVzRmZTRouNjWwl2tVZi4Ut0HZbU
1468
+ JtQIBFnQmA4O5t78w+wfkPECAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
1469
+ AQYwHQYDVR0OBBYEFHwMMh+n2TB/xH1oo2Kooc6rB1snMA0GCSqGSIb3DQEBCwUAA4IBAQARWfol
1470
+ TwNvlJk7mh+ChTnUdgWUXuEok21iXQnCoKjUsHU48TRqneSfioYmUeYs0cYtbpUgSpIB7LiKZ3sx
1471
+ 4mcujJUDJi5DnUox9g61DLu34jd/IroAow57UvtruzvE03lRTs2Q9GcHGcg8RnoNAX3FWOdt5oUw
1472
+ F5okxBDgBPfg8n/Uqgr/Qh037ZTlZFkSIHc40zI+OIF1lnP6aI+xy84fxez6nH7PfrHxBy22/L/K
1473
+ pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1mMpYjn0q7pBZ
1474
+ c2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0
1475
+ -----END CERTIFICATE-----
1476
+
1477
+ Starfield Services Root Certificate Authority - G2
1478
+ ==================================================
1479
+ -----BEGIN CERTIFICATE-----
1480
+ MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
1481
+ B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
1482
+ b2dpZXMsIEluYy4xOzA5BgNVB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wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd
1496
+ iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn0q23KXB56jza
1497
+ YyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCNsSi6
1498
+ -----END CERTIFICATE-----
1499
+
1500
+ AffirmTrust Commercial
1501
+ ======================
1502
+ -----BEGIN CERTIFICATE-----
1503
+ MIIDTDCCAjSgAwIBAgIId3cGJyapsXwwDQYJKoZIhvcNAQELBQAwRDELMAkGA1UEBhMCVVMxFDAS
1504
+ BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMB4XDTEw
1505
+ MDEyOTE0MDYwNloXDTMwMTIzMTE0MDYwNlowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly
1506
+ bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMIIBIjANBgkqhkiG9w0BAQEF
1507
+ AAOCAQ8AMIIBCgKCAQEA9htPZwcroRX1BiLLHwGy43NFBkRJLLtJJRTWzsO3qyxPxkEylFf6Eqdb
1508
+ DuKPHx6GGaeqtS25Xw2Kwq+FNXkyLbscYjfysVtKPcrNcV/pQr6U6Mje+SJIZMblq8Yrba0F8PrV
1509
+ C8+a5fBQpIs7R6UjW3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPALMeIrJmqbTFeurCA+ukV6
1510
+ BfO9m2kVrn1OIGPENXY6BwLJN/3HR+7o8XYdcxXyl6S1yHp52UKqK39c/s4mT6NmgTWvRLpUHhww
1511
+ MmWd5jyTXlBOeuM61G7MGvv50jeuJCqrVwMiKA1JdX+3KNp1v47j3A55MQIDAQABo0IwQDAdBgNV
1512
+ HQ4EFgQUnZPGU4teyq8/nx4P5ZmVvCT2lI8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
1513
+ AQYwDQYJKoZIhvcNAQELBQADggEBAFis9AQOzcAN/wr91LoWXym9e2iZWEnStB03TX8nfUYGXUPG
1514
+ hi4+c7ImfU+TqbbEKpqrIZcUsd6M06uJFdhrJNTxFq7YpFzUf1GO7RgBsZNjvbz4YYCanrHOQnDi
1515
+ qX0GJX0nof5v7LMeJNrjS1UaADs1tDvZ110w/YETifLCBivtZ8SOyUOyXGsViQK8YvxO8rUzqrJv
1516
+ 0wqiUOP2O+guRMLbZjipM1ZI8W0bM40NjD9gN53Tym1+NH4Nn3J2ixufcv1SNUFFApYvHLKac0kh
1517
+ sUlHRUe072o0EclNmsxZt9YCnlpOZbWUrhvfKbAW8b8Angc6F2S1BLUjIZkKlTuXfO8=
1518
+ -----END CERTIFICATE-----
1519
+
1520
+ AffirmTrust Networking
1521
+ ======================
1522
+ -----BEGIN CERTIFICATE-----
1523
+ MIIDTDCCAjSgAwIBAgIIfE8EORzUmS0wDQYJKoZIhvcNAQEFBQAwRDELMAkGA1UEBhMCVVMxFDAS
1524
+ BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMB4XDTEw
1525
+ MDEyOTE0MDgyNFoXDTMwMTIzMTE0MDgyNFowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly
1526
+ bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMIIBIjANBgkqhkiG9w0BAQEF
1527
+ AAOCAQ8AMIIBCgKCAQEAtITMMxcua5Rsa2FSoOujz3mUTOWUgJnLVWREZY9nZOIG41w3SfYvm4SE
1528
+ Hi3yYJ0wTsyEheIszx6e/jarM3c1RNg1lho9Nuh6DtjVR6FqaYvZ/Ls6rnla1fTWcbuakCNrmreI
1529
+ dIcMHl+5ni36q1Mr3Lt2PpNMCAiMHqIjHNRqrSK6mQEubWXLviRmVSRLQESxG9fhwoXA3hA/Pe24
1530
+ /PHxI1Pcv2WXb9n5QHGNfb2V1M6+oF4nI979ptAmDgAp6zxG8D1gvz9Q0twmQVGeFDdCBKNwV6gb
1531
+ h+0t+nvujArjqWaJGctB+d1ENmHP4ndGyH329JKBNv3bNPFyfvMMFr20FQIDAQABo0IwQDAdBgNV
1532
+ HQ4EFgQUBx/S55zawm6iQLSwelAQUHTEyL0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
1533
+ AQYwDQYJKoZIhvcNAQEFBQADggEBAIlXshZ6qML91tmbmzTCnLQyFE2npN/svqe++EPbkTfOtDIu
1534
+ UFUaNU52Q3Eg75N3ThVwLofDwR1t3Mu1J9QsVtFSUzpE0nPIxBsFZVpikpzuQY0x2+c06lkh1QF6
1535
+ 12S4ZDnNye2v7UsDSKegmQGA3GWjNq5lWUhPgkvIZfFXHeVZLgo/bNjR9eUJtGxUAArgFU2HdW23
1536
+ WJZa3W3SAKD0m0i+wzekujbgfIeFlxoVot4uolu9rxj5kFDNcFn4J2dHy8egBzp90SxdbBk6ZrV9
1537
+ /ZFvgrG+CJPbFEfxojfHRZ48x3evZKiT3/Zpg4Jg8klCNO1aAFSFHBY2kgxc+qatv9s=
1538
+ -----END CERTIFICATE-----
1539
+
1540
+ AffirmTrust Premium
1541
+ ===================
1542
+ -----BEGIN CERTIFICATE-----
1543
+ MIIFRjCCAy6gAwIBAgIIbYwURrGmCu4wDQYJKoZIhvcNAQEMBQAwQTELMAkGA1UEBhMCVVMxFDAS
1544
+ BgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVzdCBQcmVtaXVtMB4XDTEwMDEy
1545
+ OTE0MTAzNloXDTQwMTIzMTE0MTAzNlowQTELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRy
1546
+ dXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVzdCBQcmVtaXVtMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
1547
+ MIICC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+ 6C1Y91aMYj+6QrCcDFx+LmUmXFNPALJ4fqENmS2NuB2OosSw/WDQMKSOyARiqcTtNd56l+0OOF6S
1561
+ L5Nwpamcb6d9Ex1+xghIsV5n61EIJenmJWtSKZGc0jlzCFfemQa0W50QBuHCAKi4HEoCChTQwUHK
1562
+ +4w1IX2COPKpVJEZNZOUbWo6xbLQu4mGk+ibyQ86p3q4ofB4Rvr8Ny/lioTz3/4E2aFooC8k4gmV
1563
+ BtWVyuEklut89pMFu+1z6S3RdTnX5yTb2E5fQ4+e0BQ5v1VwSJlXMbSc7kqYA5YwH2AG7hsj/oFg
1564
+ IxpHYoWlzBk0gG+zrBrjn/B7SK3VAdlntqlyk+otZrWyuOQ9PLLvTIzq6we/qzWaVYa8GKa1qF60
1565
+ g2xraUDTn9zxw2lrueFtCfTxqlB2Cnp9ehehVZZCmTEJ3WARjQUwfuaORtGdFNrHF+QFlozEJLUb
1566
+ zxQHskD4o55BhrwE0GuWyCqANP2/7waj3VjFhT0+j/6eKeC2uAloGRwYQw==
1567
+ -----END CERTIFICATE-----
1568
+
1569
+ AffirmTrust Premium ECC
1570
+ =======================
1571
+ -----BEGIN CERTIFICATE-----
1572
+ MIIB/jCCAYWgAwIBAgIIdJclisc/elQwCgYIKoZIzj0EAwMwRTELMAkGA1UEBhMCVVMxFDASBgNV
1573
+ BAoMC0FmZmlybVRydXN0MSAwHgYDVQQDDBdBZmZpcm1UcnVzdCBQcmVtaXVtIEVDQzAeFw0xMDAx
1574
+ MjkxNDIwMjRaFw00MDEyMzExNDIwMjRaMEUxCzAJBgNVBAYTAlVTMRQwEgYDVQQKDAtBZmZpcm1U
1575
+ cnVzdDEgMB4GA1UEAwwXQWZmaXJtVHJ1c3QgUHJlbWl1bSBFQ0MwdjAQBgcqhkjOPQIBBgUrgQQA
1576
+ IgNiAAQNMF4bFZ0D0KF5Nbc6PJJ6yhUczWLznCZcBz3lVPqj1swS6vQUX+iOGasvLkjmrBhDeKzQ
1577
+ N8O9ss0s5kfiGuZjuD0uL3jET9v0D6RoTFVya5UdThhClXjMNzyR4ptlKymjQjBAMB0GA1UdDgQW
1578
+ BBSaryl6wBE1NSZRMADDav5A1a7WPDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAK
1579
+ BggqhkjOPQQDAwNnADBkAjAXCfOHiFBar8jAQr9HX/VsaobgxCd05DhT1wV/GzTjxi+zygk8N53X
1580
+ 57hG8f2h4nECMEJZh0PUUd+60wkyWs6Iflc9nF9Ca/UHLbXwgpP5WW+uZPpY5Yse42O+tYHNbwKM
1581
+ eQ==
1582
+ -----END CERTIFICATE-----
1583
+
1584
+ Certum Trusted Network CA
1585
+ =========================
1586
+ -----BEGIN CERTIFICATE-----
1587
+ MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBMMSIwIAYDVQQK
1588
+ ExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlv
1589
+ biBBdXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBUcnVzdGVkIE5ldHdvcmsgQ0EwHhcNMDgxMDIy
1590
+ MTIwNzM3WhcNMjkxMjMxMTIwNzM3WjB+MQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBU
1591
+ ZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5
1592
+ MSIwIAYDVQQDExlDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC
1593
+ AQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO4W5AB7ptJ11/91sts1rHUV+rpDKmYYe2bg+G0jAC
1594
+ l/jXaVehGDldamR5xgFZrDwxSjh80gTSSyjoIF87B6LMTXPb865Px1bVWqeWifrzq2jUI4ZZJ88J
1595
+ J7ysbnKDHDBy3+Ci6dLhdHUZvSqeexVUBBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4
1596
+ fOQtf/WsX+sWn7Et0brMkUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv+XLTOcr+H9g0
1597
+ cvW0QM8xAcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5SQIDAQABo0IwQDAPBgNVHRMB
1598
+ Af8EBTADAQH/MB0GA1UdDgQWBBQIds3LB/8k9sXN7buQvOKEN0Z19zAOBgNVHQ8BAf8EBAMCAQYw
1599
+ DQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15ysHhE49wcrwn9I0j6vSrEuVUEtRCj
1600
+ jSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfLI9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1
1601
+ mS1FhIrlQgnXdAIv94nYmem8J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5aj
1602
+ Zt3hrvJBW8qYVoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI
1603
+ 03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw=
1604
+ -----END CERTIFICATE-----
1605
+
1606
+ TWCA Root Certification Authority
1607
+ =================================
1608
+ -----BEGIN CERTIFICATE-----
1609
+ MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJ
1610
+ VEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlmaWNh
1611
+ dGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMzWhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQG
1612
+ EwJUVzESMBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NB
1613
+ IFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
1614
+ AoIBAQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFEAcK0HMMx
1615
+ QhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HHK3XLfJ+utdGdIzdjp9xC
1616
+ oi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeXRfwZVzsrb+RH9JlF/h3x+JejiB03HFyP
1617
+ 4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/zrX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1r
1618
+ y+UPizgN7gr8/g+YnzAx3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIB
1619
+ BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkqhkiG
1620
+ 9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeCMErJk/9q56YAf4lC
1621
+ mtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdlsXebQ79NqZp4VKIV66IIArB6nCWlW
1622
+ QtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62Dlhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVY
1623
+ T0bf+215WfKEIlKuD8z7fDvnaspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocny
1624
+ Yh0igzyXxfkZYiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw==
1625
+ -----END CERTIFICATE-----
1626
+
1627
+ Security Communication RootCA2
1628
+ ==============================
1629
+ -----BEGIN CERTIFICATE-----
1630
+ MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDElMCMGA1UEChMc
1631
+ U0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UECxMeU2VjdXJpdHkgQ29tbXVuaWNh
1632
+ dGlvbiBSb290Q0EyMB4XDTA5MDUyOTA1MDAzOVoXDTI5MDUyOTA1MDAzOVowXTELMAkGA1UEBhMC
1633
+ SlAxJTAjBgNVBAoTHFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xJzAlBgNVBAsTHlNlY3Vy
1634
+ aXR5IENvbW11bmljYXRpb24gUm9vdENBMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
1635
+ ANAVOVKxUrO6xVmCxF1SrjpDZYBLx/KWvNs2l9amZIyoXvDjChz335c9S672XewhtUGrzbl+dp++
1636
+ +T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVMVAX3NuRFg3sUZdbcDE3R
1637
+ 3n4MqzvEFb46VqZab3ZpUql6ucjrappdUtAtCms1FgkQhNBqyjoGADdH5H5XTz+L62e4iKrFvlNV
1638
+ spHEfbmwhRkGeC7bYRr6hfVKkaHnFtWOojnflLhwHyg/i/xAXmODPIMqGplrz95Zajv8bxbXH/1K
1639
+ EOtOghY6rCcMU/Gt1SSwawNQwS08Ft1ENCcadfsCAwEAAaNCMEAwHQYDVR0OBBYEFAqFqXdlBZh8
1640
+ QIH4D5csOPEK7DzPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEB
1641
+ CwUAA4IBAQBMOqNErLlFsceTfsgLCkLfZOoc7llsCLqJX2rKSpWeeo8HxdpFcoJxDjrSzG+ntKEj
1642
+ u/Ykn8sX/oymzsLS28yN/HH8AynBbF0zX2S2ZTuJbxh2ePXcokgfGT+Ok+vx+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Ve
1673
+ l+axofjk70YllJyJ22k4vuxcDlbHZVHlUIiIv0LVKz3l+bqeLrPK9HOSAgu+TGbrIP65y7WZf+a2
1674
+ E/rKS03Z7lNGBjvGTq2TWoF+bCpLagVFjPIhpDGQh2xlnJ2lYJU6Un/10asIbvPuW/mIPX64b24D
1675
+ 5EI=
1676
+ -----END CERTIFICATE-----
1677
+
1678
+ Hellenic Academic and Research Institutions RootCA 2011
1679
+ =======================================================
1680
+ -----BEGIN CERTIFICATE-----
1681
+ MIIEMTCCAxmgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBlTELMAkGA1UEBhMCR1IxRDBCBgNVBAoT
1682
+ O0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9y
1683
+ aXR5MUAwPgYDVQQDEzdIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z
1684
+ IFJvb3RDQSAyMDExMB4XDTExMTIwNjEzNDk1MloXDTMxMTIwMTEzNDk1MlowgZUxCzAJBgNVBAYT
1685
+ AkdSMUQwQgYDVQQKEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z
1686
+ IENlcnQuIEF1dGhvcml0eTFAMD4GA1UEAxM3SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNo
1687
+ IEluc3RpdHV0aW9ucyBSb290Q0EgMjAxMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
1688
+ AKlTAOMupvaO+mDYLZU++CwqVE7NuYRhlFhPjz2L5EPzdYmNUeTDN9KKiE15HrcS3UN4SoqS5tdI
1689
+ 1Q+kOilENbgH9mgdVc04UfCMJDGFr4PJfel3r+0ae50X+bOdOFAPplp5kYCvN66m0zH7tSYJnTxa
1690
+ 71HFK9+WXesyHgLacEnsbgzImjeN9/E2YEsmLIKe0HjzDQ9jpFEw4fkrJxIH2Oq9GGKYsFk3fb7u
1691
+ 8yBRQlqD75O6aRXxYp2fmTmCobd0LovUxQt7L/DICto9eQqakxylKHJzkUOap9FNhYS5qXSPFEDH
1692
+ 3N6sQWRstBmbAmNtJGSPRLIl6s5ddAxjMlyNh+UCAwEAAaOBiTCBhjAPBgNVHRMBAf8EBTADAQH/
1693
+ MAsGA1UdDwQEAwIBBjAdBgNVHQ4EFgQUppFC/RNhSiOeCKQp5dgTBCPuQSUwRwYDVR0eBEAwPqA8
1694
+ MAWCAy5ncjAFggMuZXUwBoIELmVkdTAGggQub3JnMAWBAy5ncjAFgQMuZXUwBoEELmVkdTAGgQQu
1695
+ b3JnMA0GCSqGSIb3DQEBBQUAA4IBAQAf73lB4XtuP7KMhjdCSk4cNx6NZrokgclPEg8hwAOXhiVt
1696
+ XdMiKahsog2p6z0GW5k6x8zDmjR/qw7IThzh+uTczQ2+vyT+bOdrwg3IBp5OjWEopmr95fZi6hg8
1697
+ TqBTnbI6nOulnJEWtk2C4AwFSKls9cz4y51JtPACpf1wA+2KIaWuE4ZJwzNzvoc7dIsXRSZMFpGD
1698
+ /md9zU1jZ/rzAxKWeAaNsWftjj++n08C9bMJL/NMh98qy5V8AcysNnq/onN694/BtZqhFLKPM58N
1699
+ 7yLcZnuEvUUXBj08yrl3NI/K6s8/MT7jiOOASSXIl7WdmplNsDz4SgCbZN2fOUvRJ9e4
1700
+ -----END CERTIFICATE-----
1701
+
1702
+ Actalis Authentication Root CA
1703
+ ==============================
1704
+ -----BEGIN CERTIFICATE-----
1705
+ MIIFuzCCA6OgAwIBAgIIVwoRl0LE48wwDQYJKoZIhvcNAQELBQAwazELMAkGA1UEBhMCSVQxDjAM
1706
+ BgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UE
1707
+ AwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290IENBMB4XDTExMDkyMjExMjIwMloXDTMwMDky
1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ifN7OHCUyQICNtAwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQALe3KHwGCmSUyI
1722
+ WOYdiPcUZEim2FgKDk8TNd81HdTtBjHIgT5q1d07GjLukD0R0i70jsNjLiNmsGe+b7bAEzlgqqI0
1723
+ JZN1Ut6nna0Oh4lScWoWPBkdg/iaKWW+9D+a2fDzWochcYBNy+A4mz+7+uAwTc+G02UQGRjRlwKx
1724
+ K3JCaKygvU5a2hi/a5iB0P2avl4VSM0RFbnAKVy06Ij3Pjaut2L9HmLecHgQHEhb2rykOLpn7VU+
1725
+ Xlff1ANATIGk0k9jpwlCCRT8AKnCgHNPLsBA2RF7SOp6AsDT6ygBJlh0wcBzIm2Tlf05fbsq4/aC
1726
+ 4yyXX04fkZT6/iyj2HYauE2yOE+b+h1IYHkm4vP9qdCa6HCPSXrW5b0KDtst842/6+OkfcvHlXHo
1727
+ 2qN8xcL4dJIEG4aspCJTQLas/kx2z/uUMsA1n3Y/buWQbqCmJqK4LL7RK4X9p2jIugErsWx0Hbhz
1728
+ lefut8cl8ABMALJ+tguLHPPAUJ4lueAI3jZm/zel0btUZCzJJ7VLkn5l/9Mt4blOvH+kQSGQQXem
1729
+ OR/qnuOf0GZvBeyqdn6/axag67XH/JJULysRJyU3eExRarDzzFhdFPFqSBX/wge2sY0PjlxQRrM9
1730
+ vwGYT7JZVEc+NHt4bVaTLnPqZih4zR0Uv6CPLy64Lo7yFIrM6bV8+2ydDKXhlg==
1731
+ -----END CERTIFICATE-----
1732
+
1733
+ Trustis FPS Root CA
1734
+ ===================
1735
+ -----BEGIN CERTIFICATE-----
1736
+ MIIDZzCCAk+gAwIBAgIQGx+ttiD5JNM2a/fH8YygWTANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQG
1737
+ EwJHQjEYMBYGA1UEChMPVHJ1c3RpcyBMaW1pdGVkMRwwGgYDVQQLExNUcnVzdGlzIEZQUyBSb290
1738
+ IENBMB4XDTAzMTIyMzEyMTQ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NXlrtIzYE=
1752
+ -----END CERTIFICATE-----
1753
+
1754
+ Buypass Class 2 Root CA
1755
+ =======================
1756
+ -----BEGIN CERTIFICATE-----
1757
+ MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU
1758
+ QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMiBSb290IENBMB4X
1759
+ DTEwMTAyNjA4MzgwM1oXDTQwMTAyNjA4MzgwM1owTjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1
1760
+ eXBhc3MgQVMtOTgzMTYzMzI3MSAwHgYDVQQDDBdCdXlwYXNzIENsYXNzIDIgUm9vdCBDQTCCAiIw
1761
+ DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANfHXvfBB9R3+0Mh9PT1aeTuMgHbo4Yf5FkNuud1
1762
+ g1Lr6hxhFUi7HQfKjK6w3Jad6sNgkoaCKHOcVgb/S2TwDCo3SbXlzwx87vFKu3MwZfPVL4O2fuPn
1763
+ 9Z6rYPnT8Z2SdIrkHJasW4DptfQxh6NR/Md+oW+OU3fUl8FVM5I+GC911K2GScuVr1QGbNgGE41b
1764
+ /+EmGVnAJLqBcXmQRFBoJJRfuLMR8SlBYaNByyM21cHxMlAQTn/0hpPshNOOvEu/XAFOBz3cFIqU
1765
+ CqTqc/sLUegTBxj6DvEr0VQVfTzh97QZQmdiXnfgolXsttlpF9U6r0TtSsWe5HonfOV116rLJeff
1766
+ awrbD02TTqigzXsu8lkBarcNuAeBfos4GzjmCleZPe4h6KP1DBbdi+w0jpwqHAAVF41og9JwnxgI
1767
+ zRFo1clrUs3ERo/ctfPYV3Me6ZQ5BL/T3jjetFPsaRyifsSP5BtwrfKi+fv3FmRmaZ9JUaLiFRhn
1768
+ Bkp/1Wy1TbMz4GHrXb7pmA8y1x1LPC5aAVKRCfLf6o3YBkBjqhHk/sM3nhRSP/TizPJhk9H9Z2vX
1769
+ Uq6/aKtAQ6BXNVN48FP4YUIHZMbXb5tMOA1jrGKvNouicwoN9SG9dKpN6nIDSdvHXx1iY8f93ZHs
1770
+ M+71bbRuMGjeyNYmsHVee7QHIJihdjK4TWxPAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD
1771
+ VR0OBBYEFMmAd+BikoL1RpzzuvdMw964o605MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsF
1772
+ AAOCAgEAU18h9bqwOlI5LJKwbADJ784g7wbylp7ppHR/ehb8t/W2+xUbP6umwHJdELFx7rxP462s
1773
+ A20ucS6vxOOto70MEae0/0qyexAQH6dXQbLArvQsWdZHEIjzIVEpMMpghq9Gqx3tOluwlN5E40EI
1774
+ osHsHdb9T7bWR9AUC8rmyrV7d35BH16Dx7aMOZawP5aBQW9gkOLo+fsicdl9sz1Gv7SEr5AcD48S
1775
+ aq/v7h56rgJKihcrdv6sVIkkLE8/trKnToyokZf7KcZ7XC25y2a2t6hbElGFtQl+Ynhw/qlqYLYd
1776
+ DnkM/crqJIByw5c/8nerQyIKx+u2DISCLIBrQYoIwOula9+ZEsuK1V6ADJHgJgg2SMX6OBE1/yWD
1777
+ LfJ6v9r9jv6ly0UsH8SIU653DtmadsWOLB2jutXsMq7Aqqz30XpN69QH4kj3Io6wpJ9qzo6ysmD0
1778
+ oyLQI+uUWnpp3Q+/QFesa1lQ2aOZ4W7+jQF5JyMV3pKdewlNWudLSDBaGOYKbeaP4NK75t98biGC
1779
+ wWg5TbSYWGZizEqQXsP6JwSxeRV0mcy+rSDeJmAc61ZRpqPq5KM/p/9h3PFaTWwyI0PurKju7koS
1780
+ CTxdccK+efrCh2gdC/1cacwG0Jp9VJkqyTkaGa9LKkPzY11aWOIv4x3kqdbQCtCev9eBCfHJxyYN
1781
+ rJgWVqA=
1782
+ -----END CERTIFICATE-----
1783
+
1784
+ Buypass Class 3 Root CA
1785
+ =======================
1786
+ -----BEGIN CERT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BjYt1gD1iq
1800
+ j6G8BaVmos8bdrKEZLFMOVLAMLrwjEsCsLa3AgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD
1801
+ VR0OBBYEFEe4zf/lb+74suwvTg75JbCOPGvDMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsF
1802
+ AAOCAgEAACAjQTUEkMJAYmDv4jVM1z+s4jSQuKFvdvoWFqRINyzpkMLyPPgKn9iB5btb2iUspKdV
1803
+ cSQy9sgL8rxq+JOssgfCX5/bzMiKqr5qb+FJEMwx14C7u8jYog5kV+qi9cKpMRXSIGrs/CIBKM+G
1804
+ uIAeqcwRpTzyFrNHnfzSgCHEy9BHcEGhyoMZCCxt8l13nIoUE9Q2HJLw5QY33KbmkJs4j1xrG0aG
1805
+ Q0JfPgEHU1RdZX33inOhmlRaHylDFCfChQ+1iHsaO5S3HWCntZznKWlXWpuTekMwGwPXYshApqr8
1806
+ ZORK15FTAaggiG6cX0S5y2CBNOxv033aSF/rtJC8LakcC6wc1aJoIIAE1vyxjy+7SjENSoYc6+I2
1807
+ KSb12tjE8nVhz36udmNKekBlk4f4HoCMhuWG1o8O/FMsYOgWYRqiPkN7zTlgVGr18okmAWiDSKIz
1808
+ 6MkEkbIRNBE+6tBDGR8Dk5AM/1E9V/RBbuHLoL7ryWPNbczk+DaqaJ3tvV2XcEQNtg413OEMXbug
1809
+ UZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvDu79leNKGef9JOxqDDPDe
1810
+ eOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq4/g7u9xN12TyUb7mqqta6THuBrxzvxNi
1811
+ Cp/HuZc=
1812
+ -----END CERTIFICATE-----
1813
+
1814
+ T-TeleSec GlobalRoot Class 3
1815
+ ============================
1816
+ -----BEGIN CERTIFICATE-----
1817
+ MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhM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QQeyUapl96Cshtwn5z2r3Ex3XsFpSzT
1831
+ ucpH9sry9uetuUg/vBa3wW306gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7h
1832
+ P0HHRwA11fXT91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml
1833
+ e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4pTpPDpFQUWw==
1834
+ -----END CERTIFICATE-----
1835
+
1836
+ EE Certification Centre Root CA
1837
+ ===============================
1838
+ -----BEGIN CERTIFICATE-----
1839
+ MIIEAzCCAuugAwIBAgIQVID5oHPtPwBMyonY43HmSjANBgkqhkiG9w0BAQUFADB1MQswCQYDVQQG
1840
+ EwJFRTEiMCAGA1UECgwZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEoMCYGA1UEAwwfRUUgQ2Vy
1841
+ dGlmaWNhdGlvbiBDZW50cmUgUm9vdCBDQTEYMBYGCSqGSIb3DQEJARYJcGtpQHNrLmVlMCIYDzIw
1842
+ MTAxMDMwMTAxMDMwWhgPMjAzMDEyMTcyMzU5NTlaMHUxCzAJBgNVBAYTAkVFMSIwIAYDVQQKDBlB
1843
+ UyBTZXJ0aWZpdHNlZXJpbWlza2Vza3VzMSgwJgYDVQQDDB9FRSBDZXJ0aWZpY2F0aW9uIENlbnRy
1844
+ ZSBSb290IENBMRgwFgYJKoZIhvcNAQkBFglwa2lAc2suZWUwggEiMA0GCSqGSIb3DQEBAQUAA4IB
1845
+ DwAwggEKAoIBAQDIIMDs4MVLqwd4lfNE7vsLDP90jmG7sWLqI9iroWUyeuuOF0+W2Ap7kaJjbMeM
1846
+ TC55v6kF/GlclY1i+blw7cNRfdCT5mzrMEvhvH2/UpvObntl8jixwKIy72KyaOBhU8E2lf/slLo2
1847
+ rpwcpzIP5Xy0xm90/XsY6KxX7QYgSzIwWFv9zajmofxwvI6Sc9uXp3whrj3B9UiHbCe9nyV0gVWw
1848
+ 93X2PaRka9ZP585ArQ/dMtO8ihJTmMmJ+xAdTX7Nfh9WDSFwhfYggx/2uh8Ej+p3iDXE/+pOoYtN
1849
+ P2MbRMNE1CV2yreN1x5KZmTNXMWcg+HCCIia7E6j8T4cLNlsHaFLAgMBAAGjgYowgYcwDwYDVR0T
1850
+ AQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBLyWj7qVhy/zQas8fElyalL1BSZ
1851
+ MEUGA1UdJQQ+MDwGCCsGAQUFBwMCBggrBgEFBQcDAQYIKwYBBQUHAwMGCCsGAQUFBwMEBggrBgEF
1852
+ BQcDCAYIKwYBBQUHAwkwDQYJKoZIhvcNAQEFBQADggEBAHv25MANqhlHt01Xo/6tu7Fq1Q+e2+Rj
1853
+ xY6hUFaTlrg4wCQiZrxTFGGVv9DHKpY5P30osxBAIWrEr7BSdxjhlthWXePdNl4dp1BUoMUq5KqM
1854
+ lIpPnTX/dqQGE5Gion0ARD9V04I8GtVbvFZMIi5GQ4okQC3zErg7cBqklrkar4dBGmoYDQZPxz5u
1855
+ uSlNDUmJEYcyW+ZLBMjkXOZ0c5RdFpgTlf7727FE5TpwrDdr5rMzcijJs1eg9gIWiAYLtqZLICjU
1856
+ 3j2LrTcFU3T+bsy8QxdxXvnFzBqpYe73dgzzcvRyrc9yAjYHR8/vGVCJYMzpJJUPwssd8m92kMfM
1857
+ dcGWxZ0=
1858
+ -----END CERTIFICATE-----
1859
+
1860
+ D-TRUST Root Class 3 CA 2 2009
1861
+ ==============================
1862
+ -----BEGIN CERTIFICATE-----
1863
+ MIIEMzCCAxugAwIBAgIDCYPzMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQK
1864
+ DAxELVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTAe
1865
+ Fw0wOTExMDUwODM1NThaF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FYbQDfC+rAF1hM5+n02/t2A7nPPKHeJeaNijnZflQGDSNiH+0LS4F9p0
1879
+ o3/U37CYAqxva2ssJSRyoWXuJVrl5jLn8t+rSfrzkGkj2wTZ51xY/GXUl77M/C4KzCUqNQT4YJEV
1880
+ dT1B/yMfGchs64JTBKbkTCJNjYy6zltz7GRUUG3RnFX7acM2w4y8PIWmawomDeCTmGCufsYkl4ph
1881
+ X5GOZpIJhzbNi5stPvZR1FDUWSi9g/LMKHtThm3YJohw1+qRzT65ysCQblrGXnRl11z+o+I=
1882
+ -----END CERTIFICATE-----
1883
+
1884
+ D-TRUST Root Class 3 CA 2 EV 2009
1885
+ =================================
1886
+ -----BEGIN CERTIFICATE-----
1887
+ MIIEQzCCAyugAwIBAgIDCYP0MA0GCSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK
1888
+ DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw
1889
+ OTAeFw0wOTExMDUwODUwNDZaFw0yOTExMDUwODUwNDZaMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK
1890
+ DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw
1891
+ OTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJnxhDRwui+3MKCOvXwEz75ivJn9gpfS
1892
+ egpnljgJ9hBOlSJzmY3aFS3nBfwZcyK3jpgAvDw9rKFs+9Z5JUut8Mxk2og+KbgPCdM03TP1YtHh
1893
+ zRnp7hhPTFiu4h7WDFsVWtg6uMQYZB7jM7K1iXdODL/ZlGsTl28So/6ZqQTMFexgaDbtCHu39b+T
1894
+ 7WYxg4zGcTSHThfqr4uRjRxWQa4iN1438h3Z0S0NL2lRp75mpoo6Kr3HGrHhFPC+Oh25z1uxav60
1895
+ sUYgovseO3Dvk5h9jHOW8sXvhXCtKSb8HgQ+HKDYD8tSg2J87otTlZCpV6LqYQXY+U3EJ/pure35
1896
+ 11H3a6UCAwEAAaOCASQwggEgMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFNOUikxiEyoZLsyv
1897
+ cop9NteaHNxnMA4GA1UdDwEB/wQEAwIBBjCB3QYDVR0fBIHVMIHSMIGHoIGEoIGBhn9sZGFwOi8v
1898
+ ZGlyZWN0b3J5LmQtdHJ1c3QubmV0L0NOPUQtVFJVU1QlMjBSb290JTIwQ2xhc3MlMjAzJTIwQ0El
1899
+ MjAyJTIwRVYlMjAyMDA5LE89RC1UcnVzdCUyMEdtYkgsQz1ERT9jZXJ0aWZpY2F0ZXJldm9jYXRp
1900
+ b25saXN0MEagRKBChkBodHRwOi8vd3d3LmQtdHJ1c3QubmV0L2NybC9kLXRydXN0X3Jvb3RfY2xh
1901
+ c3NfM19jYV8yX2V2XzIwMDkuY3JsMA0GCSqGSIb3DQEBCwUAA4IBAQA07XtaPKSUiO8aEXUHL7P+
1902
+ PPoeUSbrh/Yp3uDx1MYkCenBz1UbtDDZzhr+BlGmFaQt77JLvyAoJUnRpjZ3NOhk31KxEcdzes05
1903
+ nsKtjHEh8lprr988TlWvsoRlFIm5d8sqMb7Po23Pb0iUMkZv53GMoKaEGTcH8gNFCSuGdXzfX2lX
1904
+ ANtu2KZyIktQ1HWYVt+3GP9DQ1CuekR78HlR10M9p9OB0/DJT7naxpeG0ILD5EJt/rDiZE4OJudA
1905
+ NCa1CInXCGNjOCd1HjPqbqjdn5lPdE2BiYBL3ZqXKVwvvoFBuYz/6n1gBp7N1z3TLqMVvKjmJuVv
1906
+ w9y4AyHqnxbxLFS1
1907
+ -----END CERTIFICATE-----
1908
+
1909
+ CA Disig Root R2
1910
+ ================
1911
+ -----BEGIN CERTIFICATE-----
1912
+ MIIFaTCCA1GgAwIBAgIJAJK4iNuwisFjMA0GCSqGSIb3DQEBCwUAMFIxCzAJBgNVBAYTAlNLMRMw
1913
+ E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TADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUtZn4r7CU9eMg1gqtzk5WpC5u
1927
+ Qu0wDQYJKoZIhvcNAQELBQADggIBACYGXnDnZTPIgm7ZnBc6G3pmsgH2eDtpXi/q/075KMOYKmFM
1928
+ tCQSin1tERT3nLXK5ryeJ45MGcipvXrA1zYObYVybqjGom32+nNjf7xueQgcnYqfGopTpti72TVV
1929
+ sRHFqQOzVju5hJMiXn7B9hJSi+osZ7z+Nkz1uM/Rs0mSO9MpDpkblvdhuDvEK7Z4bLQjb/D907Je
1930
+ dR+Zlais9trhxTF7+9FGs9K8Z7RiVLoJ92Owk6Ka+elSLotgEqv89WBW7xBci8QaQtyDW2QOy7W8
1931
+ 1k/BfDxujRNt+3vrMNDcTa/F1balTFtxyegxvug4BkihGuLq0t4SOVga/4AOgnXmt8kHbA7v/zjx
1932
+ mHHEt38OFdAlab0inSvtBfZGR6ztwPDUO+Ls7pZbkBNOHlY667DvlruWIxG68kOGdGSVyCh13x01
1933
+ utI3gzhTODY7z2zp+WsO0PsE6E9312UBeIYMej4hYvF/Y3EMyZ9E26gnonW+boE+18DrG5gPcFw0
1934
+ sorMwIUY6256s/daoQe/qUKS82Ail+QUoQebTnbAjn39pCXHR+3/H3OszMOl6W8KjptlwlCFtaOg
1935
+ UxLMVYdh84GuEEZhvUQhuMI9dM9+JDX6HAcOmz0iyu8xL4ysEr3vQCj8KWefshNPZiTEUxnpHikV
1936
+ 7+ZtsH8tZ/3zbBt1RqPlShfppNcL
1937
+ -----END CERTIFICATE-----
1938
+
1939
+ ACCVRAIZ1
1940
+ =========
1941
+ -----BEGIN CERTIFICATE-----
1942
+ MIIH0zCCBbugAwIBAgIIXsO3pkN/pOAwDQYJKoZIhvcNAQEFBQAwQjESMBAGA1UEAwwJQUNDVlJB
1943
+ SVoxMRAwDgYDVQQLDAdQS0lBQ0NWMQ0wCwYDVQQKDARBQ0NWMQswCQYDVQQGEwJFUzAeFw0xMTA1
1944
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s5fzNxGiWNoRI2T9GRwoD2dKAXDOXC4Ynsg
2001
+ /eTb6QihuJ49CcdP+yz4k3ZB3lLg4VfSnQO8d57+nile98FRYB/e2guyLXW3Q0iT5/Z5xoRdgFlg
2002
+ lPx4mI88k1HtQJAH32RjJMtOcQWh15QaiDLxInQirqWm2BJpTGCjAu4r7NRjkgtevi92a6O2JryP
2003
+ A9gK8kxkRr05YuWW6zRjESjMlfGt7+/cgFhI6Uu46mWs6fyAtbXIRfmswZ/ZuepiiI7E8UuDEq3m
2004
+ i4TWnsLrgxifarsbJGAzcMzs9zLzXNl5fe+epP7JI8Mk7hWSsT2RTyaGvWZzJBPqpK5jwa19hAM8
2005
+ EHiGG3njxPPyBJUgriOCxLM6AGK/5jYk4Ve6xx6QddVfP5VhK8E7zeWzaGHQRiapIVJpLesux+t3
2006
+ zqY6tQMzT3bR51xUAV3LePTJDL/PEo4XLSNolOer/qmyKwbQBM0=
2007
+ -----END CERTIFICATE-----
2008
+
2009
+ TeliaSonera Root CA v1
2010
+ ======================
2011
+ -----BEGIN CERTIFICATE-----
2012
+ MIIFODCCAyCgAwIBAgIRAJW+FqD3LkbxezmCcvqLzZYwDQYJKoZIhvcNAQEFBQAwNzEUMBIGA1UE
2013
+ CgwLVGVsaWFTb25lcmExHzAdBgNVBAMMFlRlbGlhU29uZXJhIFJvb3QgQ0EgdjEwHhcNMDcxMDE4
2014
+ MTIwMDUwWhcNMzIxMDE4MTIwMDUwWjA3MRQwEgYDVQQKDAtUZWxpYVNvbmVyYTEfMB0GA1UEAwwW
2015
+ VGVsaWFTb25lcmEgUm9vdCBDQSB2MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMK+
2016
+ 6yfwIaPzaSZVfp3FVRaRXP3vIb9TgHot0pGMYzHw7CTww6XScnwQbfQ3t+XmfHnqjLWCi65ItqwA
2017
+ 3GV17CpNX8GH9SBlK4GoRz6JI5UwFpB/6FcHSOcZrr9FZ7E3GwYq/t75rH2D+1665I+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AdkgS94P+5KFdSpc
2031
+ c41teyWRyu5FrgZLAMzTsVlQ2jqIOylDRl6XK1TOU2+NSueW+r9xDkKLfP0ooNBIytrEgUy7onOT
2032
+ JsjrDNYmiLbAJM+7vVvrdX3pCI6GMyx5dwlppYn8s3CQh3aP0yK7Qs69cwsgJirQmz1wHiRszYd2
2033
+ qReWt88NkvuOGKmYSdGe/mBEciG5Ge3C9THxOUiIkCR1VBatzvT4aRRkOfujuLpwQMcnHL/EVlP6
2034
+ Y2XQ8xwOFvVrhlhNGNTkDY6lnVuR3HYkUD/GKvvZt5y11ubQ2egZixVxSK236thZiNSQvxaz2ems
2035
+ WWFUyBy6ysHK4bkgTI86k4mloMy/0/Z1pHWWbVY=
2036
+ -----END CERTIFICATE-----
2037
+
2038
+ E-Tugra Certification Authority
2039
+ ===============================
2040
+ -----BEGIN CERTIFICATE-----
2041
+ MIIGSzCCBDOgAwIBAgIIamg+nFGby1MwDQYJKoZIhvcNAQELBQAwgbIxCzAJBgNVBAYTAlRSMQ8w
2042
+ DQYDVQQHDAZBbmthcmExQDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamls
2043
+ ZXJpIHZlIEhpem1ldGxlcmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBN
2044
+ ZXJrZXppMSgwJgYDVQQDDB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTEzMDMw
2045
+ NTEyMDk0OFoXDTIzMDMwMzEyMDk0OFowgbIxCzAJBgNVBAYTAlRSMQ8wDQYDVQQHDAZBbmthcmEx
2046
+ QDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamlsZXJpIHZlIEhpem1ldGxl
2047
+ cmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBNZXJrZXppMSgwJgYDVQQD
2048
+ DB9FLVR1Z3JhIENl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A5n+KGCRHTAduGN8qOY1tfrTYXbm1gdLymmasoR6d5NFFxWfJNCYExL/u6Au/U5Mh/jO
2062
+ XKqYGwXgAEZKgoClM4so3O0409/lPun++1ndYYRP0lSWE2ETPo+Aab6TR7U1Q9Jauz1c77NCR807
2063
+ VRMGsAnb/WP2OogKmW9+4c4bU2pEZiNRCHu8W1Ki/QY3OEBhj0qWuJA3+GbHeJAAFS6LrVE1Uweo
2064
+ a2iu+U48BybNCAVwzDk/dr2l02cmAYamU9JgO3xDf1WKvJUawSg5TB9D0pH0clmKuVb8P7Sd2nCc
2065
+ dlqMQ1DujjByTd//SffGqWfZbawCEeI6FiWnWAjLb1NBnEg4R2gz0dfHj9R0IdTDBZB6/86WiLEV
2066
+ KV0jq9BgoRJP3vQXzTLlyb/IQ639Lo7xr+L0mPoSHyDYwKcMhcWQ9DstliaxLL5Mq+ux0orJ23gT
2067
+ Dx4JnW2PAJ8C2sH6H3p6CcRK5ogql5+Ji/03X186zjhZhkuvcQu02PJwT58yE+Owp1fl2tpDy4Q0
2068
+ 8ijE6m30Ku/Ba3ba+367hTzSU8JNvnHhRdH9I2cNE3X7z2VnIp2usAnRCf8dNL/+I5c30jn6PQ0G
2069
+ C7TbO6Orb1wdtn7os4I07QZcJA==
2070
+ -----END CERTIFICATE-----
2071
+
2072
+ T-TeleSec GlobalRoot Class 2
2073
+ ============================
2074
+ -----BEGIN CERTIFICATE-----
2075
+ MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM
2076
+ IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU
2077
+ cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwHhcNMDgx
2078
+ MDAxMTA0MDE0WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxK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BSeOE6Fuwg==
2092
+ -----END CERTIFICATE-----
2093
+
2094
+ Atos TrustedRoot 2011
2095
+ =====================
2096
+ -----BEGIN CERTIFICATE-----
2097
+ MIIDdzCCAl+gAwIBAgIIXDPLYixfszIwDQYJKoZIhvcNAQELBQAwPDEeMBwGA1UEAwwVQXRvcyBU
2098
+ cnVzdGVkUm9vdCAyMDExMQ0wCwYDVQQKDARBdG9zMQswCQYDVQQGEwJERTAeFw0xMTA3MDcxNDU4
2099
+ MzBaFw0zMDEyMzEyMzU5NTlaMDwxHjAcBgNVBAMMFUF0b3MgVHJ1c3RlZFJvb3QgMjAxMTENMAsG
2100
+ A1UECgwEQXRvczELMAkGA1UEBhMCREUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCV
2101
+ hTuXbyo7LjvPpvMpNb7PGKw+qtn4TaA+Gke5vJrf8v7MPkfoepbCJI419KkM/IL9bcFyYie96mvr
2102
+ 54rMVD6QUM+A1JX76LWC1BTFtqlVJVfbsVD2sGBkWXppzwO3bw2+yj5vdHLqqjAqc2K+SZFhyBH+
2103
+ DgMq92og3AIVDV4VavzjgsG1xZ1kCWyjWZgHJ8cblithdHFsQ/H3NYkQ4J7sVaE3IqKHBAUsR320
2104
+ HLliKWYoyrfhk/WklAOZuXCFteZI6o1Q/NnezG8HDt0Lcp2AMBYHlT8oDv3FdU9T1nSatCQujgKR
2105
+ z3bFmx5VdJx4IbHwLfELn8LVlhgf8FQieowHAgMBAAGjfTB7MB0GA1UdDgQWBBSnpQaxLKYJYO7R
2106
+ l+lwrrw7GWzbITAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFKelBrEspglg7tGX6XCuvDsZ
2107
+ bNshMBgGA1UdIAQRMA8wDQYLKwYBBAGwLQMEAQEwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEB
2108
+ CwUAA4IBAQAmdzTblEiGKkGdLD4GkGDEjKwLVLgfuXvTBznk+j57sj1O7Z8jvZfza1zv7v1Apt+h
2109
+ k6EKhqzvINB5Ab149xnYJDE0BAGmuhWawyfc2E8PzBhj/5kPDpFrdRbhIfzYJsdHt6bPWHJxfrrh
2110
+ TZVHO8mvbaG0weyJ9rQPOLXiZNwlz6bb65pcmaHFCN795trV1lpFDMS3wrUU77QR/w4VtfX128a9
2111
+ 61qn8FYiqTxlVMYVqL2Gns2Dlmh6cYGJ4Qvh6hEbaAjMaZ7snkGeRDImeuKHCnE96+RapNLbxc3G
2112
+ 3mB/ufNPRJLvKrcYPqcZ2Qt9sTdBQrC6YB3y/gkRsPCHe6ed
2113
+ -----END CERTIFICATE-----
2114
+
2115
+ QuoVadis Root CA 1 G3
2116
+ =====================
2117
+ -----BEGIN CERTIFICATE-----
2118
+ MIIFYDCCA0igAwIBAgIUeFhfLq0sGUvjNwc1NBMotZbUZZMwDQYJKoZIhvcNAQELBQAwSDELMAkG
2119
+ A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv
2120
+ b3QgQ0EgMSBHMzAeFw0xMjAxMTIxNzI3NDRaFw00MjAxMTIxNzI3NDRaMEgxCzAJBgNVBAYTAkJN
2121
+ MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDEg
2122
+ RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCgvlAQjunybEC0BJyFuTHK3C3kEakE
2123
+ PBtVwedYMB0ktMPvhd6MLOHBPd+C5k+tR4ds7FtJwUrVu4/sh6x/gpqG7D0DmVIB0jWerNrwU8lm
2124
+ PNSsAgHaJNM7qAJGr6Qc4/hzWHa39g6QDbXwz8z6+cZM5cOGMAqNF34168Xfuw6cwI2H44g4hWf6
2125
+ Pser4BOcBRiYz5P1sZK0/CPTz9XEJ0ngnjybCKOLXSoh4Pw5qlPafX7PGglTvF0FBM+hSo+LdoIN
2126
+ ofj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/kNSBT8lTR32GDpgLiJTjehTItXnOQUl1CxM49S+H5GYQd1aJQzEH7QRTDvdbJWqNjZgKAvQU6
2140
+ O0ec7AAmTPWIUb+oI38YB7AL7YsmoWTTYUrrXJ/es69nA7Mf3W1daWhpq1467HxpvMc7hU6eFbm0
2141
+ FU/DlXpY18ls6Wy58yljXrQs8C097Vpl4KlbQMJImYFtnh8GKjwStIsPm6Ik8KaN1nrgS7ZklmOV
2142
+ hMJKzRwuJIczYOXD
2143
+ -----END CERTIFICATE-----
2144
+
2145
+ QuoVadis Root CA 2 G3
2146
+ =====================
2147
+ -----BEGIN CERTIFICATE-----
2148
+ MIIFYDCCA0igAwIBAgIURFc0JFuBiZs18s64KztbpybwdSgwDQYJKoZIhvcNAQELBQAwSDELMAkG
2149
+ A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv
2150
+ b3QgQ0EgMiBHMzAeFw0xMjAxMTIxODU5MzJaFw00MjAxMTIxODU5MzJaMEgxCzAJBgNVBAYTAkJN
2151
+ MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDIg
2152
+ RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQChriWyARjcV4g/Ruv5r+LrI3HimtFh
2153
+ ZiFfqq8nUeVuGxbULX1QsFN3vXg6YOJkApt8hpvWGo6t/x8Vf9WVHhLL5hSEBMHfNrMWn4rjyduY
2154
+ NM7YMxcoRvynyfDStNVNCXJJ+fKH46nafaF9a7I6JaltUkSs+L5u+9ymc5GQYaYDFCDy54ejiK2t
2155
+ oIz/pgslUiXnFgHVy7g1gQyjO/Dh4fxaXc6AcW34Sas+O7q414AB+6XrW7PFXmAqMaCvN+ggOp+o
2156
+ MiwMzAkd056OXbxMmO7FGmh77FOm6RQ1o9/NgJ8MSPsc9PG/Srj61YxxSscfrf5BmrODXf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gKCLjsZWD
2170
+ zYWm3S8P52dSbrsvhXz1SnPnxT7AvSESBT/8twNJAlvIJebiVDj1eYeMHVOyToV7BjjHLPj4sHKN
2171
+ JeV3UvQDHEimUF+IIDBu8oJDqz2XhOdT+yHBTw8imoa4WSr2Rz0ZiC3oheGe7IUIarFsNMkd7Egr
2172
+ O3jtZsSOeWmD3n+M
2173
+ -----END CERTIFICATE-----
2174
+
2175
+ QuoVadis Root CA 3 G3
2176
+ =====================
2177
+ -----BEGIN CERTIFICATE-----
2178
+ MIIFYDCCA0igAwIBAgIULvWbAiin23r/1aOp7r0DoM8Sah0wDQYJKoZIhvcNAQELBQAwSDELMAkG
2179
+ A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv
2180
+ b3QgQ0EgMyBHMzAeFw0xMjAxMTIyMDI2MzJaFw00MjAxMTIyMDI2MzJaMEgxCzAJBgNVBAYTAkJN
2181
+ MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDMg
2182
+ RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCzyw4QZ47qFJenMioKVjZ/aEzHs286
2183
+ IxSR/xl/pcqs7rN2nXrpixurazHb+gtTTK/FpRp5PIpM/6zfJd5O2YIyC0TeytuMrKNuFoM7pmRL
2184
+ Mon7FhY4futD4tN0SsJiCnMK3UmzV9KwCoWdcTzeo8vAMvMBOSBDGzXRU7Ox7sWTaYI+FrUoRqHe
2185
+ 6okJ7UO4BUaKhvVZR74bbwEhELn9qdIoyhA5CcoTNs+cra1AdHkrAj80//ogaX3T7mH1urPnMNA3
2186
+ I4ZyYUUpSFlob3emLoG+B01vr87ERRORFHAGjx+f+IdpsQ7vw4kZ6+ocYfx6bIrc1gMLnia6Et3U
2187
+ VDmrJqMz6nWB2i3ND0/kA9HvFZcba5DFApCTZgIhsUfei5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2Cy2nhTXN/VnIn9HNPlopNLk9hM6xZdRZkZFW
2201
+ dSHBd575euFgndOtBBj0fOtek49TSiIp+EgrPk2GrFt/ywaZWWDYWGWVjUTR939+J399roD1B0y2
2202
+ PpxxVJkES/1Y+Zj0
2203
+ -----END CERTIFICATE-----
2204
+
2205
+ DigiCert Assured ID Root G2
2206
+ ===========================
2207
+ -----BEGIN CERTIFICATE-----
2208
+ MIIDljCCAn6gAwIBAgIQC5McOtY5Z+pnI7/Dr5r0SzANBgkqhkiG9w0BAQsFADBlMQswCQYDVQQG
2209
+ EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw
2210
+ IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIwHhcNMTMwODAxMTIwMDAwWhcNMzgw
2211
+ MTE1MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL
2212
+ ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIw
2213
+ ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ5ygvUj82ckmIkzTz+GoeMVSAn61UQbVH
2214
+ 35ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4HteccbiJVMWWXvdMX0h5i89vq
2215
+ bFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9HpEgjAALAcKxHad3A2m67OeYfcgnDmCXRw
2216
+ VWmvo2ifv922ebPynXApVfSr/5Vh88lAbx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OP
2217
+ YLfykqGxvYmJHzDNw6YuYjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+Rn
2218
+ lTGNAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTO
2219
+ w0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPIQW5pJ6d1Ee88hjZv
2220
+ 0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I0jJmwYrA8y8678Dj1JGG0VDjA9tz
2221
+ d29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4GnilmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAW
2222
+ hsI6yLETcDbYz+70CjTVW0z9B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0M
2223
+ jomZmWzwPDCvON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo
2224
+ IhNzbM8m9Yop5w==
2225
+ -----END CERTIFICATE-----
2226
+
2227
+ DigiCert Assured ID Root G3
2228
+ ===========================
2229
+ -----BEGIN CERTIFICATE-----
2230
+ MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV
2231
+ UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYD
2232
+ VQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1
2233
+ MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
2234
+ d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwdjAQ
2235
+ BgcqhkjOPQIBBgUrgQQAIgNiAAQZ57ysRGXtzbg/WPuNsVepRC0FFfLvC/8QdJ+1YlJfZn4f5dwb
2236
+ RXkLzMZTCp2NXQLZqVneAlr2lSoOjThKiknGvMYDOAdfVdp+CW7if17QRSAPWXYQ1qAk8C3eNvJs
2237
+ KTmjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTL0L2p4ZgF
2238
+ UaFNN6KDec6NHSrkhDAKBggqhkjOPQQDAwNnADBkAjAlpIFFAmsSS3V0T8gj43DydXLefInwz5Fy
2239
+ YZ5eEJJZVrmDxxDnOOlYJjZ91eQ0hjkCMHw2U/Aw5WJjOpnitqM7mzT6HtoQknFekROn3aRukswy
2240
+ 1vUhZscv6pZjamVFkpUBtA==
2241
+ -----END CERTIFICATE-----
2242
+
2243
+ DigiCert Global Root G2
2244
+ =======================
2245
+ -----BEGIN CERTIFICATE-----
2246
+ MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBhMQswCQYDVQQG
2247
+ EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAw
2248
+ HgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUx
2249
+ MjAwMDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3
2250
+ dy5kaWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkq
2251
+ hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI2/Ou8jqJ
2252
+ kTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx1x7e/dfgy5SDN67sH0NO
2253
+ 3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQq2EGnI/yuum06ZIya7XzV+hdG82MHauV
2254
+ BJVJ8zUtluNJbd134/tJS7SsVQepj5WztCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyM
2255
+ UNGPHgm+F6HmIcr9g+UQvIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQAB
2256
+ o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV5uNu
2257
+ 5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY1Yl9PMWLSn/pvtsr
2258
+ F9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4NeF22d+mQrvHRAiGfzZ0JFrabA0U
2259
+ WTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NGFdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBH
2260
+ QRFXGU7Aj64GxJUTFy8bJZ918rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/
2261
+ iyK5S9kJRaTepLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl
2262
+ MrY=
2263
+ -----END CERTIFICATE-----
2264
+
2265
+ DigiCert Global Root G3
2266
+ =======================
2267
+ -----BEGIN CERTIFICATE-----
2268
+ MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQswCQYDVQQGEwJV
2269
+ UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAwHgYD
2270
+ VQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAw
2271
+ MDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5k
2272
+ aWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEczMHYwEAYHKoZIzj0C
2273
+ AQYFK4EEACIDYgAE3afZu4q4C/sLfyHS8L6+c/MzXRq8NOrexpu80JX28MzQC7phW1FGfp4tn+6O
2274
+ YwwX7Adw9c+ELkCDnOg/QW07rdOkFFk2eJ0DQ+4QE2xy3q6Ip6FrtUPOZ9wj/wMco+I+o0IwQDAP
2275
+ BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUs9tIpPmhxdiuNkHMEWNp
2276
+ Yim8S8YwCgYIKoZIzj0EAwMDaAAwZQIxAK288mw/EkrRLTnDCgmXc/SINoyIJ7vmiI1Qhadj+Z4y
2277
+ 3maTD/HMsQmP3Wyr+mt/oAIwOWZbwmSNuJ5Q3KjVSaLtx9zRSX8XAbjIho9OjIgrqJqpisXRAL34
2278
+ VOKa5Vt8sycX
2279
+ -----END CERTIFICATE-----
2280
+
2281
+ DigiCert Trusted Root G4
2282
+ ========================
2283
+ -----BEGIN CERTIFICATE-----
2284
+ MIIFkDCCA3igAwIBAgIQBZsbV56OITLiOQe9p3d1XDANBgkqhkiG9w0BAQwFADBiMQswCQYDVQQG
2285
+ EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSEw
2286
+ HwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1
2287
+ MTIwMDAwWjBiMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
2288
+ d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwggIiMA0G
2289
+ CSqGSIb3DQEBAQUAA4ICDw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HNm0aAFYF/opbSnr6j3bTWcfFqK1qI4mfN4i/RN0iAL3gTujJtHgXINwBQy
2303
+ 7zBZLq7gcfJW5GqXb5JQbZaNaHqasjYUegbyJLkJEVDXCLG4iXqEI2FCKeWjzaIgQdfRnGTZ6iah
2304
+ ixTXTBmyUEFxPT9NcCOGDErcgdLMMpSEDQgJlxxPwO5rIHQw0uA5NBCFIRUBCOhVMt5xSdkoF1BN
2305
+ 5r5N0XWs0Mr7QbhDparTwwVETyw2m+L64kW4I1NsBm9nVX9GtUw/bihaeSbSpKhil9Ie4u1Ki7wb
2306
+ /UdKDd9nZn6yW0HQO+T0O/QEY+nvwlQAUaCKKsnOeMzV6ocEGLPOr0mIr/OSmbaz5mEP0oUA51Aa
2307
+ 5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU1/YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tK
2308
+ G48BtieVU+i2iW1bvGjUI+iLUaJW+fCmgKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP
2309
+ 82Z+
2310
+ -----END CERTIFICATE-----
2311
+
2312
+ COMODO RSA Certification Authority
2313
+ ==================================
2314
+ -----BEGIN CERTIFICATE-----
2315
+ MIIF2DCCA8CgAwIBAgIQTKr5yttjb+Af907YWwOGnTANBgkqhkiG9w0BAQwFADCBhTELMAkGA1UE
2316
+ BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
2317
+ A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlv
2318
+ biBBdXRob3JpdHkwHhcNMTAwMTE5MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMC
2319
+ R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG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9sKIN9SCYPBMt
2333
+ rFaisNZ+EZLpLrqeLppysb0ZRGxhNaKatBYSaVqM4dc+pBroLwP0rmEdEBsqpIt6xf4FpuHA1sj+
2334
+ nq6PK7o9mfjYcwlYRm6mnPTXJ9OV2jeDchzTc+CiR5kDOF3VSXkAKRzH7JsgHAckaVd4sjn8OoSg
2335
+ tZx8jb8uk2IntznaFxiuvTwJaP+EmzzV1gsD41eeFPfR60/IvYcjt7ZJQ3mFXLrrkguhxuhoqEwW
2336
+ sRqZCuhTLJK7oQkYdQxlqHvLI7cawiiFwxv/0Cti76R7CZGYZ4wUAc1oBmpjIXUDgIiKboHGhfKp
2337
+ pC3n9KUkEEeDys30jXlYsQab5xoq2Z0B15R97QNKyvDb6KkBPvVWmckejkk9u+UJueBPSZI9FoJA
2338
+ zMxZxuY67RIuaTxslbH9qh17f4a+Hg4yRvv7E491f0yLS0Zj/gA0QHDBw7mh3aZw4gSzQbzpgJHq
2339
+ ZJx64SIDqZxubw5lT2yHh17zbqD5daWbQOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk52
2340
+ 7RH89elWsn2/x20Kk4yl0MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7I
2341
+ LaZRfyHBNVOFBkpdn627G190
2342
+ -----END CERTIFICATE-----
2343
+
2344
+ USERTrust RSA Certification Authority
2345
+ =====================================
2346
+ -----BEGIN CERTIFICATE-----
2347
+ MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCBiDELMAkGA1UE
2348
+ BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK
2349
+ ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh
2350
+ dGlvbiBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAw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sswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF
2364
+ MAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAFzUfA3P9wF9QZllDHPFUp/L+M+ZBn8b2kMVn54CVVeW
2365
+ FPFSPCeHlCjtHzoBN6J2/FNQwISbxmtOuowhT6KOVWKR82kV2LyI48SqC/3vqOlLVSoGIG1VeCkZ
2366
+ 7l8wXEskEVX/JJpuXior7gtNn3/3ATiUFJVDBwn7YKnuHKsSjKCaXqeYalltiz8I+8jRRa8YFWSQ
2367
+ Eg9zKC7F4iRO/Fjs8PRF/iKz6y+O0tlFYQXBl2+odnKPi4w2r78NBc5xjeambx9spnFixdjQg3IM
2368
+ 8WcRiQycE0xyNN+81XHfqnHd4blsjDwSXWXavVcStkNr/+XeTWYRUc+ZruwXtuhxkYzeSf7dNXGi
2369
+ FSeUHM9h4ya7b6NnJSFd5t0dCy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZXHlKYC6SQK5MNyosycdi
2370
+ yA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9c
2371
+ J2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRBVXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGw
2372
+ sAvgnEzDHNb842m1R0aBL6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gx
2373
+ Q+6IHdfGjjxDah2nGN59PRbxYvnKkKj9
2374
+ -----END CERTIFICATE-----
2375
+
2376
+ USERTrust ECC Certification Authority
2377
+ =====================================
2378
+ -----BEGIN CERTIFICATE-----
2379
+ MIICjzCCAhWgAwIBAgIQXIuZxVqUxdJxVt7NiYDMJjAKBggqhkjOPQQDAzCBiDELMAkGA1UEBhMC
2380
+ VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
2381
+ aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv
2382
+ biBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMC
2383
+ VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
2384
+ aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv
2385
+ biBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQarFRaqfloI+d61SRvU8Za2EurxtW2
2386
+ 0eZzca7dnNYMYf3boIkDuAUU7FfO7l0/4iGzzvfUinngo4N+LZfQYcTxmdwlkWOrfzCjtHDix6Ez
2387
+ nPO/LlxTsV+zfTJ/ijTjeXmjQjBAMB0GA1UdDgQWBBQ64QmG1M8ZwpZ2dEl23OA1xmNjmjAOBgNV
2388
+ HQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjA2Z6EWCNzklwBB
2389
+ HU6+4WMBzzuqQhFkoJ2UOQIReVx7Hfpkue4WQrO/isIJxOzksU0CMQDpKmFHjFJKS04YcPbWRNZu
2390
+ 9YO6bVi9JNlWSOrvxKJGgYhqOkbRqZtNyWHa0V1Xahg=
2391
+ -----END CERTIFICATE-----
2392
+
2393
+ GlobalSign ECC Root CA - R4
2394
+ ===========================
2395
+ -----BEGIN CERTIFICATE-----
2396
+ MIIB4TCCAYegAwIBAgIRKjikHJYKBN5CsiilC+g0mAIwCgYIKoZIzj0EAwIwUDEkMCIGA1UECxMb
2397
+ R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI0MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
2398
+ EwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoXDTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMb
2399
+ R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI0MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
2400
+ EwpHbG9iYWxTaWduMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuMZ5049sJQ6fLjkZHAOkrprl
2401
+ OQcJFspjsbmG+IpXwVfOQvpzofdlQv8ewQCybnMO/8ch5RikqtlxP6jUuc6MHaNCMEAwDgYDVR0P
2402
+ AQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFFSwe61FuOJAf/sKbvu+M8k8o4TV
2403
+ MAoGCCqGSM49BAMCA0gAMEUCIQDckqGgE6bPA7DmxCGXkPoUVy0D7O48027KqGx2vKLeuwIgJ6iF
2404
+ JzWbVsaj8kfSt24bAgAXqmemFZHe+pTsewv4n4Q=
2405
+ -----END CERTIFICATE-----
2406
+
2407
+ GlobalSign ECC Root CA - R5
2408
+ ===========================
2409
+ -----BEGIN CERTIFICATE-----
2410
+ MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEkMCIGA1UECxMb
2411
+ R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
2412
+ EwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoXDTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMb
2413
+ R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
2414
+ EwpHbG9iYWxTaWduMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6
2415
+ SFkc8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8kehOvRnkmS
2416
+ h5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd
2417
+ BgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYIKoZIzj0EAwMDaAAwZQIxAOVpEslu28Yx
2418
+ uglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7
2419
+ yFz9SO8NdCKoCOJuxUnOxwy8p2Fp8fc74SrL+SvzZpA3
2420
+ -----END CERTIFICATE-----
2421
+
2422
+ Staat der Nederlanden Root CA - G3
2423
+ ==================================
2424
+ -----BEGIN CERTIFICATE-----
2425
+ MIIFdDCCA1ygAwIBAgIEAJiiOTANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJOTDEeMBwGA1UE
2426
+ CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
2427
+ Um9vdCBDQSAtIEczMB4XDTEzMTExNDExMjg0MloXDTI4MTExMzIzMDAwMFowWjELMAkGA1UEBhMC
2428
+ TkwxHjAcBgNVBAoMFVN0YWF0IGRlciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5l
2429
+ ZGVybGFuZGVuIFJvb3QgQ0EgLSBHMzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAL4y
2430
+ olQPcPssXFnrbMSkUeiFKrPMSjTysF/zDsccPVMeiAho2G89rcKezIJnByeHaHE6n3WWIkYFsO2t
2431
+ x1ueKt6c/DrGlaf1F2cY5y9JCAxcz+bMNO14+1Cx3Gsy8KL+tjzk7FqXxz8ecAgwoNzFs21v0IJy
2432
+ EavSgWhZghe3eJJg+szeP4TrjTgzkApyI/o1zCZxMdFyKJLZWyNtZrVtB0LrpjPOkt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l4mUnrzhVNXkanjvSr0r
2446
+ mj1AfsbAddJu+2gw7OyLnflJNZoaLNmzlTnVHpL3prllL+U9bTpITAjc5CgSKL59NVzq4BZ+Extq
2447
+ 1z7XnvwtdbLBFNUjA9tbbws+eC8N3jONFrdI54OagQ97wUNNVQQXOEpR1VmiiXTTn74eS9fGbbeI
2448
+ JG9gkaSChVtWQbzQRKtqE77RLFi3EjNYsjdj3BP1lB0/QFH1T/U67cjF68IeHRaVesd+QnGTbksV
2449
+ tzDfqu1XhUisHWrdOWnk4Xl4vs4Fv6EM94B7IWcnMFk=
2450
+ -----END CERTIFICATE-----
2451
+
2452
+ Staat der Nederlanden EV Root CA
2453
+ ================================
2454
+ -----BEGIN CERTIFICATE-----
2455
+ MIIFcDCCA1igAwIBAgIEAJiWjTANBgkqhkiG9w0BAQsFADBYMQswCQYDVQQGEwJOTDEeMBwGA1UE
2456
+ CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSkwJwYDVQQDDCBTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
2457
+ RVYgUm9vdCBDQTAeFw0xMDEyMDgxMTE5MjlaFw0yMjEyMDgxMTEwMjhaMFgxCzAJBgNVBAYTAk5M
2458
+ MR4wHAYDVQQKDBVTdGFhdCBkZXIgTmVkZXJsYW5kZW4xKTAnBgNVBAMMIFN0YWF0IGRlciBOZWRl
2459
+ cmxhbmRlbiBFViBSb290IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA48d+ifkk
2460
+ SzrSM4M1LGns3Amk41GoJSt5uAg94JG6hIXGhaTK5skuU6TJJB79VWZxXSzFYGgEt9nCUiY4iKTW
2461
+ O0Cmws0/zZiTs1QUWJZV1VD+hq2kY39ch/aO5ieSZxeSAgMs3NZmdO3dZ//BYY1jTw+bbRcwJu+r
2462
+ 0h8QoPnFfxZpgQNH7R5ojXKhTbImxrpsX23Wr9GxE46prfNeaXUmGD5BKyF/7otdBwadQ8QpCiv8
2463
+ Kj6Gyzy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476
+ 5Dp6Z2Orltxtrpfs/J92VoguZs9btsmksNcFuuEnL5O7Jiqik7Ab846+HUCjuTaPPoIaGl6I6lD4
2477
+ WeKDRikL40Rc4ZW2aZCaFG+XroHPaO+Zmr615+F/+PoTRxZMzG0IQOeLeG9QgkRQP2YGiqtDhFZK
2478
+ DyAthg710tvSeopLzaXoTvFeJiUBWSOgftL2fiFX1ye8FVdMpEbB4IMeDExNH08GGeL5qPQ6gqGy
2479
+ eUN51q1veieQA6TqJIc/2b3Z6fJfUEkc7uzXLg==
2480
+ -----END CERTIFICATE-----
2481
+
2482
+ IdenTrust Commercial Root CA 1
2483
+ ==============================
2484
+ -----BEGIN CERTIFICATE-----
2485
+ MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBKMQswCQYDVQQG
2486
+ EwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBS
2487
+ b290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhcNMzQwMTE2MTgxMjIzWjBKMQswCQYDVQQGEwJVUzES
2488
+ MBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBSb290IENB
2489
+ IDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCnUBneP5k91DNG8W9RYYKyqU+PZ4ld
2490
+ hNlT3Qwo2dfw/66VQ3KZ+bVdfIrBQuExUHTRgQ18zZshq0PirK1ehm7zCYofWjK9ouuU+ehcCuz/
2491
+ mNKvcbO0U59Oh++SvL3sTzIwiEsXXlfEU8L2ApeN2WIrvyQfYo3fw7gpS0l4PJNgiCL8mdo2yMKi
2492
+ 1CxUAGc1bnO/AljwpN3lsKImesrgNqUZFvX9t++uP0D1bVoE/c40yiTcdCMbXTMTEl3EASX2MN0C
2493
+ XZ/g1Ue9tOsbobtJSdifWwLziuQkkORiT0/Br4sOd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pXgSUyqorkqG5w2gXjtw+hG4iZZRHUe
2507
+ 2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZmUlO+KWA2yUPHGNiiskz
2508
+ Z2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A7/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7R
2509
+ cGzM7vRX+Bi6hG6H
2510
+ -----END CERTIFICATE-----
2511
+
2512
+ IdenTrust Public Sector Root CA 1
2513
+ =================================
2514
+ -----BEGIN CERTIFICATE-----
2515
+ MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBNMQswCQYDVQQG
2516
+ EwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3Rv
2517
+ ciBSb290IENBIDEwHhcNMTQwMTE2MTc1MzMyWhcNMzQwMTE2MTc1MzMyWjBNMQswCQYDVQQGEwJV
2518
+ UzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3RvciBS
2519
+ b290IENBIDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2IpT8pEiv6EdrCvsnduTy
2520
+ P4o7ekosMSqMjbCpwzFrqHd2hCa2rIFCDQjrVVi7evi8ZX3yoG2LqEfpYnYeEe4IFNGyRBb06tD6
2521
+ Hi9e28tzQa68ALBKK0CyrOE7S8ItneShm+waOh7wCLPQ5CQ1B5+ctMlSbdsHyo+1W/CD80/HLaXI
2522
+ rcuVIKQxKFdYWuSNG5qrng0M8gozOSI5Cpcu81N3uURF/YTLNiCBWS2ab21ISGHKTN9T0a9SvESf
2523
+ qy9rg3LvdYDaBjMbXcjaY8ZNzaxmMc3R3j6HEDbhuaR672BQssvKplbgN6+rNBM5Jeg5ZuSYeqoS
2524
+ mJxZZoY+rfGwyj4GD3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nzfxJoCTFx8G34Tkf71oXuxVhAGaQdp/lLQzfcaFpPz+vC
2538
+ ZHTetBXZ9FRUGi8c15dxVJCO2SCdUyt/q4/i6jC8UDfv8Ue1fXwsBOxonbRJRBD0ckscZOf85muQ
2539
+ 3Wl9af0AVqW3rLatt8o+Ae+c
2540
+ -----END CERTIFICATE-----
2541
+
2542
+ Entrust Root Certification Authority - G2
2543
+ =========================================
2544
+ -----BEGIN CERTIFICATE-----
2545
+ MIIEPjCCAyagAwIBAgIESlOMKDANBgkqhkiG9w0BAQsFADCBvjELMAkGA1UEBhMCVVMxFjAUBgNV
2546
+ BAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVy
2547
+ bXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ug
2548
+ b25seTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIw
2549
+ HhcNMDkwNzA3MTcyNTU0WhcNMzAxMjA3MTc1NTU0WjCBvjELMAkGA1UEBhMCVVMxFjAUBgNVBAoT
2550
+ DUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVybXMx
2551
+ OTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25s
2552
+ eTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIwggEi
2553
+ MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6hLZy254Ma+KZ6TABp3bqMriVQRrJ2mFOWHLP
2554
+ /vaCeb9zYQYKpSfYs1/TRU4cctZOMvJyig/3gxnQaoCAAEUesMfnmr8SVycco2gvCoe9amsOXmXz
2555
+ HHfV1IWNcCG0szLni6LVhjkCsbjSR87kyUnEO6fe+1R9V77w6G7CebI6C1XiUJgWMhNcL3hWwcKU
2556
+ s/Ja5CeanyTXxuzQmyWC48zCxEXFjJd6BmsqEZ+pCm5IO2/b1BEZQvePB7/1U1+cPvQXLOZprE4y
2557
+ TGJ36rfo5bs0vBmLrpxR57d+tVOxMyLlbc9wPBr64ptntoP0jaWvYkxN4FisZDQSA/i2jZRjJKRx
2558
+ AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqciZ6
2559
+ 0B7vfec7aVHUbI2fkBJmqzANBgkqhkiG9w0BAQsFAAOCAQEAeZ8dlsa2eT8ijYfThwMEYGprmi5Z
2560
+ iXMRrEPR9RP/jTkrwPK9T3CMqS/qF8QLVJ7UG5aYMzyorWKiAHarWWluBh1+xLlEjZivEtRh2woZ
2561
+ Rkfz6/djwUAFQKXSt/S1mja/qYh2iARVBCuch38aNzx+LaUa2NSJXsq9rD1s2G2v1fN2D807iDgi
2562
+ nWyTmsQ9v4IbZT+mD12q/OWyFcq1rca8PdCE6OoGcrBNOTJ4vz4RnAuknZoh8/CbCzB428Hch0P+
2563
+ vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmHVHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xO
2564
+ e4pIb4tF9g==
2565
+ -----END CERTIFICATE-----
2566
+
2567
+ Entrust Root Certification Authority - EC1
2568
+ ==========================================
2569
+ -----BEGIN CERTIFICATE-----
2570
+ MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAAUNCR+TAKBggqhkjOPQQDAzCBvzELMAkGA1UEBhMCVVMx
2571
+ FjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVn
2572
+ YWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDEyIEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXpl
2573
+ ZCB1c2Ugb25seTEzMDEGA1UEAxMqRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5
2574
+ IC0gRUMxMB4XDTEyMTIxODE1MjUzNloXDTM3MTIxODE1NTUzNlowgb8xCzAJBgNVBAYTAlVTMRYw
2575
+ FAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2Fs
2576
+ LXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxMiBFbnRydXN0LCBJbmMuIC0gZm9yIGF1dGhvcml6ZWQg
2577
+ dXNlIG9ubHkxMzAxBgNVBAMTKkVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAt
2578
+ IEVDMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABIQTydC6bUF74mzQ61VfZgIaJPRbiWlH47jCffHy
2579
+ AsWfoPZb1YsGGYZPUxBtByQnoaD41UcZYUx9ypMn6nQM72+WCf5j7HBdNq1nd67JnXxVRDqiY1Ef
2580
+ 9eNi1KlHBz7MIKNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
2581
+ FLdj5xrdjekIplWDpOBqUEFlEUJJMAoGCCqGSM49BAMDA2cAMGQCMGF52OVCR98crlOZF7ZvHH3h
2582
+ vxGU0QOIdeSNiaSKd0bebWHvAvX7td/M/k7//qnmpwIwW5nXhTcGtXsI/esni0qU+eH6p44mCOh8
2583
+ kmhtc9hvJqwhAriZtyZBWyVgrtBIGu4G
2584
+ -----END CERTIFICATE-----
2585
+
2586
+ CFCA EV ROOT
2587
+ ============
2588
+ -----BEGIN CERTIFICATE-----
2589
+ MIIFjTCCA3WgAwIBAgIEGErM1jANBgkqhkiG9w0BAQsFADBWMQswCQYDVQQGEwJDTjEwMC4GA1UE
2590
+ CgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljY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VHRMBAf8EBTADAQH/MA4GA1UdDwEB
2604
+ /wQEAwIBBjAdBgNVHQ4EFgQU4/4t/SjQC7W6tqLEvwaqBYyT+y8wDQYJKoZIhvcNAQELBQADggIB
2605
+ ACXGumvrh8vegjmWPfBEp2uEcwPenStPuiB/vHiyz5ewG5zz13ku9Ui20vsXiObTej/tUxPQ4i9q
2606
+ ecsAIyjmHjdXNYmEwnZPNDatZ8POQQaIxffu2Bq41gt/UP+TqhdLjOztUmCypAbqTuv0axn96/Ua
2607
+ 4CUqmtzHQTb3yHQFhDmVOdYLO6Qn+gjYXB74BGBSESgoA//vU2YApUo0FmZ8/Qmkrp5nGm9BC2sG
2608
+ E5uPhnEFtC+NiWYzKXZUmhH4J/qyP5Hgzg0b8zAarb8iXRvTvyUFTeGSGn+ZnzxEk8rUQElsgIfX
2609
+ BDrDMlI1Dlb4pd19xIsNER9Tyx6yF7Zod1rg1MvIB671Oi6ON7fQAUtDKXeMOZePglr4UeWJoBjn
2610
+ aH9dCi77o0cOPaYjesYBx4/IXr9tgFa+iiS6M+qf4TIRnvHST4D2G0CvOJ4RUHlzEhLN5mydLIhy
2611
+ PDCBBpEi6lmt2hkuIsKNuYyH4Ga8cyNfIWRjgEj1oDwYPZTISEEdQLpe/v5WOaHIz16eGWRGENoX
2612
+ kbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+ZAAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3C
2613
+ ekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ5nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su
2614
+ -----END CERTIFICATE-----
2615
+
2616
+ OISTE WISeKey Global Root GB CA
2617
+ ===============================
2618
+ -----BEGIN CERTIFICATE-----
2619
+ MIIDtTCCAp2gAwIBAgIQdrEgUnTwhYdGs/gjGvbCwDANBgkqhkiG9w0BAQsFADBtMQswCQYDVQQG
2620
+ EwJDSDEQMA4GA1UEChMHV0lTZUtleTEi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1UdEwEB/wQFMAMBAf8wDgYDVR0P
2651
+ AQH/BAQDAgEGMB0GA1UdDgQWBBQuFqlKGLXLzPVvUPMjX/hd56zwyDANBgkqhkiG9w0BAQsFAAOC
2652
+ AQEAtXP4A9xZWx126aMqe5Aosk3AM0+qmrHUuOQn/6mWmc5G4G18TKI4pAZw8PRBEew/R40/cof5
2653
+ O/2kbytTAOD/OblqBw7rHRz2onKQy4I9EYKL0rufKq8h5mOGnXkZ7/e7DDWQw4rtTw/1zBLZpD67
2654
+ oPwglV9PJi8RI4NOdQcPv5vRtB3pEAT+ymCPoky4rc/hkA/NrgrHXXu3UNLUYfrVFdvXn4dRVOul
2655
+ 4+vJhaAlIDf7js4MNIThPIGyd05DpYhfhmehPea0XGG2Ptv+tyjFogeutcrKjSoS75ftwjCkySp6
2656
+ +/NNIxuZMzSgLvWpCz/UXeHPhJ/iGcJfitYgHuNztw==
2657
+ -----END CERTIFICATE-----
2658
+
2659
+ Certum Trusted Network CA 2
2660
+ ===========================
2661
+ -----BEGIN CERTIFICATE-----
2662
+ MIIF0jCCA7qgAwIBAgIQIdbQSk8lD8kyN/yqXhKN6TANBgkqhkiG9w0BAQ0FADCBgDELMAkGA1UE
2663
+ BhMCUEwxIjAgBgNVBAoTGVVuaXpldG8gVGVjaG5vbG9naWVzIFMuQS4xJzAlBgNVBAsTHkNlcnR1
2664
+ bSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEkMCIGA1UEAxMbQ2VydHVtIFRydXN0ZWQgTmV0d29y
2665
+ ayBDQSAyMCIYDzIwMTExMDA2MDgzOTU2WhgPMjA0NjEwMDYwODM5NTZaMIGAMQswCQYDVQQGEwJQ
2666
+ TDEiMCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENl
2667
+ cnRpZmljYXRpb24gQXV0aG9yaXR5MSQwIgYDVQQDExtDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENB
2668
+ ID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YIR4PSFk1vtBHxgP58l1cb29XN40hz5BsA72udY/CROWFC/emh1auVbONTqwX3BNXuMp8SMo
2682
+ clm2q8KMZiYcdywmdjWLKKdpoPk79SPdhRB0yZADVpHnr7pH1BKXESLjokmUbOe3lEu6LaTaM4tM
2683
+ pkT/WjzGHWTYtTHkpjx6qFcL2+1hGsvxznN3Y6SHb0xRONbkX8eftoEq5IVIeVheO/jbAoJnwTnb
2684
+ w3RLPTYe+SmTiGhbqEQZIfCn6IENLOiTNrQ3ssqwGyZ6miUfmpqAnksqP/ujmv5zMnHCnsZy4Ypo
2685
+ J/HkD7TETKVhk/iXEAcqMCWpuchxuO9ozC1+9eB+D4Kob7a6bINDd82Kkhehnlt4Fj1F4jNy3eFm
2686
+ ypnTycUm/Q1oBEauttmbjL4ZvrHG8hnjXALKLNhvSgfZyTXaQHXyxKcZb55CEJh15pWLYLztxRLX
2687
+ is7VmFxWlgPF7ncGNf/P5O4/E2Hu29othfDNrp2yGAlFw5Khchf8R7agCyzxxN5DaAhqXzvwdmP7
2688
+ zAYspsbiDrW5viSP
2689
+ -----END CERTIFICATE-----
2690
+
2691
+ Hellenic Academic and Research Institutions RootCA 2015
2692
+ =======================================================
2693
+ -----BEGIN CERTIFICATE-----
2694
+ MIIGCzCCA/OgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcT
2695
+ BkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0
2696
+ aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNVBAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNl
2697
+ YXJjaCBJbnN0aXR1dGlvbnMgUm9vdENBIDIwMTUwHhcNMTUwNzA3MTAxMTIxWhcNNDAwNjMwMTAx
2698
+ MTIxWjCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0aGVuczFEMEIGA1UEChM7SG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4GGqd83EkVAswDQYJKoZI
2712
+ hvcNAQELBQADggIBAHW7bVRLqhBYRjTyYtcWNl0IXtVsyIe9tC5G8jH4fOpCtZMWVdyhDBKg2mF+
2713
+ D1hYc2Ryx+hFjtyp8iY/xnmMsVMIM4GwVhO+5lFc2JsKT0ucVlMC6U/2DWDqTUJV6HwbISHTGzrM
2714
+ d/K4kPFox/la/vot9L/J9UUbzjgQKjeKeaO04wlshYaT/4mWJ3iBj2fjRnRUjtkNaeJK9E10A/+y
2715
+ d+2VZ5fkscWrv2oj6NSU4kQoYsRL4vDY4ilrGnB+JGGTe08DMiUNRSQrlrRGar9KC/eaj8GsGsVn
2716
+ 82800vpzY4zvFrCopEYq+OsS7HK07/grfoxSwIuEVPkvPuNVqNxmsdnhX9izjFk0WaSrT2y7Hxjb
2717
+ davYy5LNlDhhDgcGH0tGEPEVvo2FXDtKK4F5D7Rpn0lQl033DlZdwJVqwjbDG2jJ9SrcR5q+ss7F
2718
+ Jej6A7na+RZukYT1HCjI/CbM1xyQVqdfbzoEvM14iQuODy+jqk+iGxI9FghAD/FGTNeqewjBCvVt
2719
+ J94Cj8rDtSvK6evIIVM4pcw72Hc3MKJP2W/R8kCtQXoXxdZKNYm3QdV8hn9VTYNKpXMgwDqvkPGa
2720
+ JI7ZjnHKe7iG2rKPmT4dEw0SEe7Uq/DpFXYC5ODfqiAeW2GFZECpkJcNrVPSWh2HagCXZWK0vm9q
2721
+ p/UsQu0yrbYhnr68
2722
+ -----END CERTIFICATE-----
2723
+
2724
+ Hellenic Academic and Research Institutions ECC RootCA 2015
2725
+ ===========================================================
2726
+ -----BEGIN CERTIFICATE-----
2727
+ MIICwzCCAkqgAwIBAgIBADAKBggqhkjOPQQDAjCBqjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0
2728
+ aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9u
2729
+ cyBDZXJ0LiBBdXRob3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gQWBBR5tFnme7bl5AFzgAiIyBpY
2760
+ 9umbbjANBgkqhkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL
2761
+ ubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ3BebYhtF8GaV
2762
+ 0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KKNFtY2PwByVS5uCbMiogziUwt
2763
+ hDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJw
2764
+ TdwJx4nLCgdNbOhdjsnvzqvHu7UrTkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nx
2765
+ e5AW0wdeRlN8NwdCjNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZA
2766
+ JzVcoyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq4RgqsahD
2767
+ YVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPAmRGunUHBcnWEvgJBQl9n
2768
+ JEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57demyPxgcYxn/eR44/KJ4EBs+lVDR3veyJ
2769
+ m+kXQ99b21/+jh5Xos1AnX5iItreGCc=
2770
+ -----END CERTIFICATE-----
2771
+
2772
+ AC RAIZ FNMT-RCM
2773
+ ================
2774
+ -----BEGIN CERTIFICATE-----
2775
+ MIIFgzCCA2ugAwIBAgIPXZONMGc2yAYdGsdUhGkHMA0GCSqGSIb3DQEBCwUAMDsxCzAJBgNVBAYT
2776
+ AkVTMREwDwYDVQQKDAhGTk1ULVJDTTEZMBcGA1UECwwQQUMgUkFJWiBGTk1ULVJDTTAeFw0wODEw
2777
+ MjkxNTU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NlcnQuZm5tdC5lcy9kcGNzLzANBgkqhkiG9w0BAQsFAAOCAgEAB5BK3/MjTvDD
2791
+ nFFlm5wioooMhfNzKWtN/gHiqQxjAb8EZ6WdmF/9ARP67Jpi6Yb+tmLSbkyU+8B1RXxlDPiyN8+s
2792
+ D8+Nb/kZ94/sHvJwnvDKuO+3/3Y3dlv2bojzr2IyIpMNOmqOFGYMLVN0V2Ue1bLdI4E7pWYjJ2cJ
2793
+ j+F3qkPNZVEI7VFY/uY5+ctHhKQV8Xa7pO6kO8Rf77IzlhEYt8llvhjho6Tc+hj507wTmzl6NLrT
2794
+ Qfv6MooqtyuGC2mDOL7Nii4LcK2NJpLuHvUBKwrZ1pebbuCoGRw6IYsMHkCtA+fdZn71uSANA+iW
2795
+ +YJF1DngoABd15jmfZ5nc8OaKveri6E6FO80vFIOiZiaBECEHX5FaZNXzuvO+FB8TxxuBEOb+dY7
2796
+ Ixjp6o7RTUaN8Tvkasq6+yO3m/qZASlaWFot4/nUbQ4mrcFuNLwy+AwF+mWj2zs3gyLp1txyM/1d
2797
+ 8iC9djwj2ij3+RvrWWTV3F9yfiD8zYm1kGdNYno/Tq0dwzn+evQoFt9B9kiABdcPUXmsEKvU7ANm
2798
+ 5mqwujGSQkBqvjrTcuFqN1W8rB2Vt2lh8kORdOag0wokRqEIr9baRRmW1FMdW4R58MD3R++Lj8UG
2799
+ rp1MYp3/RgT408m2ECVAdf4WqslKYIYvuu8wd+RU4riEmViAqhOLUTpPSPaLtrM=
2800
+ -----END CERTIFICATE-----
2801
+
2802
+ Amazon Root CA 1
2803
+ ================
2804
+ -----BEGIN CERTIFICATE-----
2805
+ MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsFADA5MQswCQYD
2806
+ VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAxMB4XDTE1
2807
+ MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv
2808
+ bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
2809
+ ggEBALJ4gHHKeNXjca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgH
2810
+ FzZM9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qwIFAGbHrQ
2811
+ gLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6VOujw5H5SNz/0egwLX0t
2812
+ dHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L93FcXmn/6pUCyziKrlA4b9v7LWIbxcce
2813
+ VOF34GfID5yHI9Y/QCB/IIDEgEw+OyQmjgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB
2814
+ /zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3
2815
+ DQEBCwUAA4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDIU5PM
2816
+ CCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUsN+gDS63pYaACbvXy
2817
+ 8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vvo/ufQJVtMVT8QtPHRh8jrdkPSHCa
2818
+ 2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2
2819
+ xJNDd2ZhwLnoQdeXeGADbkpyrqXRfboQnoZsG4q5WTP468SQvvG5
2820
+ -----END CERTIFICATE-----
2821
+
2822
+ Amazon Root CA 2
2823
+ ================
2824
+ -----BEGIN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5lREedCf+
2838
+ 3euvAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSw
2839
+ DPBMMPQFWAJI/TPlUq9LhONmUjANBgkqhkiG9w0BAQwFAAOCAgEAqqiAjw54o+Ci1M3m9Zh6O+oA
2840
+ A7CXDpO8Wqj2LIxyh6mx/H9z/WNxeKWHWc8w4Q0QshNabYL1auaAn6AFC2jkR2vHat+2/XcycuUY
2841
+ +gn0oJMsXdKMdYV2ZZAMA3m3MSNjrXiDCYZohMr/+c8mmpJ5581LxedhpxfL86kSk5Nrp+gvU5LE
2842
+ YFiwzAJRGFuFjWJZY7attN6a+yb3ACfAXVU3dJnJUH/jWS5E4ywl7uxMMne0nxrpS10gxdr9HIcW
2843
+ xkPo1LsmmkVwXqkLN1PiRnsn/eBG8om3zEK2yygmbtmlyTrIQRNg91CMFa6ybRoVGld45pIq2WWQ
2844
+ gj9sAq+uEjonljYE1x2igGOpm/HlurR8FLBOybEfdF849lHqm/osohHUqS0nGkWxr7JOcQ3AWEbW
2845
+ aQbLU8uz/mtBzUF+fUwPfHJ5elnNXkoOrJupmHN5fLT0zLm4BwyydFy4x2+IoZCn9Kr5v2c69BoV
2846
+ Yh63n749sSmvZ6ES8lgQGVMDMBu4Gon2nL2XA46jCfMdiyHxtN/kHNGfZQIG6lzWE7OE76KlXIx3
2847
+ KadowGuuQNKotOrN8I1LOJwZmhsoVLiJkO/KdYE+HvJkJMcYr07/R54H9jVlpNMKVv/1F2Rs76gi
2848
+ JUmTtt8AF9pYfl3uxRuw0dFfIRDH+fO6AgonB8Xx1sfT4PsJYGw=
2849
+ -----END CERTIFICATE-----
2850
+
2851
+ Amazon Root CA 3
2852
+ ================
2853
+ -----BEGIN CERTIFICATE-----
2854
+ MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5MQswCQYDVQQG
2855
+ EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAzMB4XDTE1MDUy
2856
+ NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ
2857
+ MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCmXp8ZB
2858
+ f8ANm+gBG1bG8lKlui2yEujSLtf6ycXYqm0fc4E7O5hrOXwzpcVOho6AF2hiRVd9RFgdszflZwjr
2859
+ Zt6jQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSrttvXBp43
2860
+ rDCGB5Fwx5zEGbF4wDAKBggqhkjOPQQDAgNJADBGAiEA4IWSoxe3jfkrBqWTrBqYaGFy+uGh0Psc
2861
+ eGCmQ5nFuMQCIQCcAu/xlJyzlvnrxir4tiz+OpAUFteMYyRIHN8wfdVoOw==
2862
+ -----END CERTIFICATE-----
2863
+
2864
+ Amazon Root CA 4
2865
+ ================
2866
+ -----BEGIN CERTIFICATE-----
2867
+ MIIB8jCCAXigAwIBAgITBmyf18G7EEwpQ+Vxe3ssyBrBDjAKBggqhkjOPQQDAzA5MQswCQYDVQQG
2868
+ EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSA0MB4XDTE1MDUy
2869
+ NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ
2870
+ MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgNDB2MBAGByqGSM49AgEGBSuBBAAiA2IABNKrijdPo1MN
2871
+ /sGKe0uoe0ZLY7Bi9i0b2whxIdIA6GO9mif78DluXeo9pcmBqqNbIJhFXRbb/egQbeOc4OO9X4Ri
2872
+ 83BkM6DLJC9wuoihKqB1+IGuYgbEgds5bimwHvouXKNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV
2873
+ HQ8BAf8EBAMCAYYwHQYDVR0OBBYEFNPsxzplbszh2naaVvuc84ZtV+WBMAoGCCqGSM49BAMDA2gA
2874
+ MGUCMDqLIfG9fhGt0O9Yli/W651+kI0rz2ZVwyzjKKlwCkcO8DdZEv8tmZQoTipPNU0zWgIxAOp1
2875
+ AE47xDqUEpHJWEadIRNyp4iciuRMStuW1KyLa2tJElMzrdfkviT8tQp21KW8EA==
2876
+ -----END CERTIFICATE-----
2877
+
2878
+ LuxTrust Global Root 2
2879
+ ======================
2880
+ -----BEGIN CERTIFICATE-----
2881
+ MIIFwzCCA6ugAwIBAgIUCn6m30tEntpqJIWe5rgV0xZ/u7EwDQYJKoZIhvcNAQELBQAwRjELMAkG
2882
+ A1UEBhMCTFUxFjAUBgNVBAoMDUx1eFRydXN0IFMuQS4xHzAdBgNVBAMMFkx1eFRydXN0IEdsb2Jh
2883
+ bCBSb290IDIwHhcNMTUwMzA1MTMyMTU3WhcNMzUwMzA1MTMyMTU3WjBGMQswCQYDVQQGEwJMVTEW
2884
+ MBQGA1UECgwNTHV4VHJ1c3QgUy5BLjEfMB0GA1UEAwwWTHV4VHJ1c3QgR2xvYmFsIFJvb3QgMjCC
2885
+ AiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANeFl78RmOnwYoNMPIf5U2o3C/IPPIfOb9wm
2886
+ Kb3FibrJgz337spbxm1Jc7TJRqMbNBM/wYlFV/TZsfs2ZUv7COJIcRHIbjuend+JZTemhfY7RBi2
2887
+ xjcwYkSSl2l9QjAk5A0MiWtj3sXh306pFGxT4GHO9hcvHTy95iJMHZP1EMShduxq3sVs35a0VkBC
2888
+ wGKSMKEtFZSg0iAGCW5qbeXrt77U8PEVfIvmTroTzEsnXpk8F12PgX8zPU/TPxvsXD/wPEx1bvKm
2889
+ 1Z3aLQdjAsZy6ZS8TEmVT4hSyNvoaYL4zDRbIvCGp4m9SAptZoFtyMhk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pAvAefMLmx9xIX3eP/JEAdemrR
2903
+ TxgKqpAd60Ae36EeRJIQmvKN4dFLRp7oRUKX6kWZ8+xm1QL68qZKJKrezrnK+T+Tb/mjuuqlPpmt
2904
+ /f97mfVl7vBZKGfXkJWkE4SphMHozs51k2MavDzq1WQfLSoSOcbDWjLtR5EWDrw4wVDej8oqkDQc
2905
+ 7kGUnF4ZLvhFSZl0kbAEb+MEWrGrKqv+x9CWttrhSmQGbmBNvUJO/3jaJMobtNeWOWyu8Q6qp31I
2906
+ iyBMz2TWuJdGsE7RKlY6oJO9r4Ak4Ap+58rVyuiFVdw2KuGUaJPHZnJED4AhMmwlxyOAgwrr
2907
+ -----END CERTIFICATE-----
2908
+
2909
+ TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1
2910
+ =============================================
2911
+ -----BEGIN CERTIFICATE-----
2912
+ MIIEYzCCA0ugAwIBAgIBATANBgkqhkiG9w0BAQsFADCB0jELMAkGA1UEBhMCVFIxGDAWBgNVBAcT
2913
+ D0dlYnplIC0gS29jYWVsaTFCMEAGA1UEChM5VHVya2l5ZSBCaWxpbXNlbCB2ZSBUZWtub2xvamlr
2914
+ IEFyYXN0aXJtYSBLdXJ1bXUgLSBUVUJJVEFLMS0wKwYDVQQLEyRLYW11IFNlcnRpZmlrYXN5b24g
2915
+ TWVya2V6aSAtIEthbXUgU00xNjA0BgNVBAMTLVRVQklUQUsgS2FtdSBTTSBTU0wgS29rIFNlcnRp
2916
+ ZmlrYXNpIC0gU3VydW0gMTAeFw0xMzExMjUwODI1NTVaFw00MzEwMjUwODI1NTVaMIHSMQswCQYD
2917
+ VQQGEwJUUjEYMBYGA1UEBxMPR2ViemUgLSBLb2NhZWxpMUIwQAYDVQQKEzlUdXJraXllIEJpbGlt
2918
+ c2VsIHZlIFRla25vbG9qaWsgQXJhc3Rpcm1hIEt1cnVtdSAtIFRVQklUQUsxLTArBgNVBAsTJEth
2919
+ bXUgU2VydGlmaWthc3lvbiBNZXJrZXppIC0gS2FtdSBTTTE2MDQGA1UEAxMtVFVCSVRBSyBLYW11
2920
+ IFNNIFNTTCBLb2sgU2VydGlmaWthc2kgLSBTdXJ1bSAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
2921
+ MIIBCgKCAQEAr3UwM6q7a9OZLBI3hNmNe5eA027n/5tQlT6QlVZC1xl8JoSNkvoBHToP4mQ4t4y8
2922
+ 6Ij5iySrLqP1N+RAjhgleYN1Hzv/bKjFxlb4tO2KRKOrbEz8HdDc72i9z+SqzvBV96I01INrN3wc
2923
+ wv61A+xXzry0tcXtAA9TNypN9E8Mg/uGz8v+jE69h/mniyFXnHrfA2eJLJ2XYacQuFWQfw4tJzh0
2924
+ 3+f92k4S400VIgLI4OD8D62K18lUUMw7D8oWgITQUVbDjlZ/iSIzL+aFCr2lqBs23tPcLG07xxO9
2925
+ WSMs5uWk99gL7eqQQESolbuT1dCANLZGeA4fAJNG4e7p+exPFwIDAQABo0IwQDAdBgNVHQ4EFgQU
2926
+ ZT/HiobGPN08VFw1+DrtUgxHV8gwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJ
2927
+ KoZIhvcNAQELBQADggEBACo/4fEyjq7hmFxLXs9rHmoJ0iKpEsdeV31zVmSAhHqT5Am5EM2fKifh
2928
+ AHe+SMg1qIGf5LgsyX8OsNJLN13qudULXjS99HMpw+0mFZx+CFOKWI3QSyjfwbPfIPP54+M638yc
2929
+ lNhOT8NrF7f3cuitZjO1JVOr4PhMqZ398g26rrnZqsZr+ZO7rqu4lzwDGrpDxpa5RXI4s6ehlj2R
2930
+ e37AIVNMh+3yC1SVUZPVIqUNivGTDj5UDrDYyU7c8jEyVupk+eq1nRZmQnLzf9OxMUP8pI4X8W0j
2931
+ q5Rm+K37DwhuJi1/FwcJsoz7UMCflo3Ptv0AnVoUmr8CRPXBwp8iXqIPoeM=
2932
+ -----END CERTIFICATE-----
2933
+
2934
+ GDCA TrustAUTH R5 ROOT
2935
+ ======================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zRL5z7D9Ar7Rt2ueQ5Vfj4
2950
+ oR24qoAATILnsn8JuLwwoC8N9VKejveSswoAHQBUlwbgsQfZxw9cZX08bVlX5O2ljelAU58VS6Bx
2951
+ 9hoh49pwBiFYFIeFd3mqgnkCAwEAAaNCMEAwHQYDVR0OBBYEFOLJQJ9NzuiaoXzPDj9lxSmIahlR
2952
+ MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQDRSVfg
2953
+ p8xoWLoBDysZzY2wYUWsEe1jUGn4H3++Fo/9nesLqjJHdtJnJO29fDMylyrHBYZmDRd9FBUb1Ov9
2954
+ H5r2XpdptxolpAqzkT9fNqyL7FeoPueBihhXOYV0GkLH6VsTX4/5COmSdI31R9KrO9b7eGZONn35
2955
+ 6ZLpBN79SWP8bfsUcZNnL0dKt7n/HipzcEYwv1ryL3ml4Y0M2fmyYzeMN2WFcGpcWwlyua1jPLHd
2956
+ +PwyvzeG5LuOmCd+uh8W4XAR8gPfJWIyJyYYMoSf/wA6E7qaTfRPuBRwIrHKK5DOKcFw9C+df/KQ
2957
+ HtZa37dG/OaG+svgIHZ6uqbL9XzeYqWxi+7egmaKTjowHz+Ay60nugxe19CxVsp3cbK1daFQqUBD
2958
+ F8Io2c9Si1vIY9RCPqAzekYu9wogRlR+ak8x8YF+QnQ4ZXMn7sZ8uI7XpTrXmKGcjBBV09tL7ECQ
2959
+ 8s1uV9JiDnxXk7Gnbc2dg7sq5+W2O3FYrf3RRbxake5TFW/TRQl1brqQXR4EzzffHqhmsYzmIGrv
2960
+ /EhOdJhCrylvLmrH+33RZjEizIYAfmaDDEL0vTSSwxrqT8p+ck0LcIymSLumoRT2+1hEmRSuqguT
2961
+ aaApJUqlyyvdimYHFngVV3Eb7PVHhPOeMTd61X8kreS8/f3MboPoDKi3QWwH3b08hpcv0g==
2962
+ -----END CERTIFICATE-----
2963
+
2964
+ TrustCor RootCert CA-1
2965
+ ======================
2966
+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uH7rBiVDKP/mZb3Kyeb1STMHd3BOuCYRLDE5D53sXOpZCz2HAF8P11F
3040
+ hcCF5yWPldwX8zyfGm6wyuMdKulMY/okYWLW2n62HGz1Ah3UKt1VkOsqEUc8Ll50soIipX1TH0Xs
3041
+ J5F95yIW6MBoNtjG8U+ARDL54dHRHareqKucBK+tIA5kmE2la8BIWJZpTdwHjFGTot+fDz2LYLSC
3042
+ jaoITmJF4PkL0uDgPFveXHEnJcLmA4GLEFPjx1WitJ/X5g==
3043
+ -----END CERTIFICATE-----
3044
+
3045
+ SSL.com Root Certification Authority RSA
3046
+ ========================================
3047
+ -----BEGIN CERTIFICATE-----
3048
+ MIIF3TCCA8WgAwIBAgIIeyyb0xaAMpkwDQYJKoZIhvcNAQELBQAwfDELMAkGA1UEBhMCVVMxDjAM
3049
+ BgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24x
3050
+ MTAvBgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBSU0EwHhcNMTYw
3051
+ MjEyMTczOTM5WhcNNDEwMjEyMTczOTM5WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx
3052
+ EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NM
3053
+ LmNvbSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IFJTQTCCAiIwDQYJKoZIhvcNAQEBBQAD
3054
+ ggIPADCCAgoCggIBAPkP3aMrfcvQKv7sZ4Wm5y4bunfh4/WvpOz6Sl2RxFdHaxh3a3by/ZPkPQ/C
3055
+ Fp4LZsNWlJ4Xg4XOVu/yFv0AYvUiCVToZRdOQbngT0aXqhvIuG5iXmmxX9sqAn78bMrzQdjt0Oj8
3056
+ P2FI7bADFB0QDksZ4LtO7IZl/zbzXmcCC52GVWH9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IPv2tS0a5sKFsXQP+8hlAqRSAUfdSSLBv9jra6x+3uxj
3070
+ MxW3IwiPxg+NQVrdjsW5j+VFP3jbutIbQLH+cU0/4IGiul607BXgk90IH37hVZkLId6Tngr75qNJ
3071
+ vTYw/ud3sqB1l7UtgYgXZSD32pAAn8lSzDLKNXz1PQ/YK9f1JmzJBjSWFupwWRoyeXkLtoh/D1JI
3072
+ Pb9s2KJELtFOt3JY04kTlf5Eq/jXixtunLwsoFvVagCvXzfh1foQC5ichucmj87w7G6KVwuA406y
3073
+ wKBjYZC6VWg3dGq2ktufoYYitmUnDuy2n0Jg5GfCtdpBC8TTi2EbvPofkSvXRAdeuims2cXp71NI
3074
+ WuuA8ShYIc2wBlX7Jz9TkHCpBB5XJ7k=
3075
+ -----END CERTIFICATE-----
3076
+
3077
+ SSL.com Root Certification Authority ECC
3078
+ ========================================
3079
+ -----BEGIN CERTIFICATE-----
3080
+ MIICjTCCAhSgAwIBAgIIdebfy8FoW6gwCgYIKoZIzj0EAwIwfDELMAkGA1UEBhMCVVMxDjAMBgNV
3081
+ BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xMTAv
3082
+ BgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYwMjEy
3083
+ MTgxNDAzWhcNNDEwMjEyMTgxNDAzWjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAO
3084
+ BgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NMLmNv
3085
+ bSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuBBAAiA2IA
3086
+ BEVuqVDEpiM2nl8ojRfLliJkP9x6jh3MCLOicSS6jkm5BBtHllirLZXI7Z4INcgn64mMU1jrYor+
3087
+ 8FsPazFSY0E7ic3s7LaNGdM0B9y7xgZ/wkWV7Mt/qCPgCemB+vNH06NjMGEwHQYDVR0OBBYEFILR
3088
+ hXMw5zUE044CkvvlpNHEIejNMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUgtGFczDnNQTT
3089
+ jgKS++Wk0cQh6M0wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2cAMGQCMG/n61kRpGDPYbCW
3090
+ e+0F+S8Tkdzt5fxQaxFGRrMcIQBiu77D5+jNB5n5DQtdcj7EqgIwH7y6C+IwJPt8bYBVCpk+gA0z
3091
+ 5Wajs6O7pdWLjwkspl1+4vAHCGht0nxpbl/f5Wpl
3092
+ -----END CERTIFICATE-----
3093
+
3094
+ SSL.com EV Root Certification Authority RSA R2
3095
+ ==============================================
3096
+ -----BEGIN CERTIFICATE-----
3097
+ MIIF6zCCA9OgAwIBAgIIVrYpzTS8ePYwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNVBAYTAlVTMQ4w
3098
+ DAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9u
3099
+ MTcwNQYDVQQDDC5TU0wuY29tIEVWIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgUlNBIFIy
3100
+ MB4XDTE3MDUzMTE4MTQzN1oXDTQyMDUzMDE4MTQzN1owgYIxCzAJBgNVBAYTAlVTMQ4wDAYDVQQI
3101
+ DAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMTcwNQYD
3102
+ VQQDDC5TU0wuY29tIEVWIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgUlNBIFIyMIICIjAN
3103
+ BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAjzZlQOHWTcDXtOlG2mvqM0fNTPl9fb69LT3w23jh
3104
+ hqXZuglXaO1XP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M79qGn5nX67evaOI5JpS6aLe/g9Pqemc9YmeuJeVy6OLk7K4S9ksrPJ/psEDz
3118
+ OFSz/bdoyNrGj1E8svuR3Bznm53htw1yj+KkxKl4+esUrMZDBcJlOSgYAsOCsp0FvmXtll9ldDz7
3119
+ CTUue5wT/RsPXcdtgTpWD8w74a8CLyKsRspGPKAcTNZEtF4uXBVmCeEmKf7GUmG6sXP/wwyc5Wxq
3120
+ lD8UykAWlYTzWamsX0xhk23RO8yilQwipmdnRC652dKKQbNmC1r7fSOl8hqw/96bg5Qu0T/fkreR
3121
+ rwU7ZcegbLHNYhLDkBvjJc40vG93drEQw/cFGsDWr3RiSBd3kmmQYRzelYB0VI8YHMPzA9C/pEN1
3122
+ hlMYegouCRw2n5H9gooiS9EOUCXdywMMF8mDAAhONU2Ki+3wApRmLER/y5UnlhetCTCstnEXbosX
3123
+ 9hwJ1C07mKVx01QT2WDz9UtmT/rx7iASjbSsV7FFY6GsdqnC+w==
3124
+ -----END CERTIFICATE-----
3125
+
3126
+ SSL.com EV Root Certification Authority ECC
3127
+ ===========================================
3128
+ -----BEGIN CERTIFICATE-----
3129
+ MIIClDCCAhqgAwIBAgIILCmcWxbtBZUwCgYIKoZIzj0EAwIwfzELMAkGA1UEBhMCVVMxDjAMBgNV
3130
+ BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xNDAy
3131
+ BgNVBAMMK1NTTC5jb20gRVYgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYw
3132
+ MjEyMTgxNTIzWhcNNDEwMjEyMTgxNTIzWjB/MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx
3133
+ EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjE0MDIGA1UEAwwrU1NM
3134
+ LmNvbSBFViBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuB
3135
+ BAAiA2IABKoSR5CYG/vvw0AHgyBO8TCCogbR8pKGYfL2IWjKAMTH6kMAVIbc/R/fALhBYlzccBYy
3136
+ 3h+Z1MzFB8gIH2EWB1E9fVwHU+M1OIzfzZ/ZLg1KthkuWnBaBu2+8KGwytAJKaNjMGEwHQYDVR0O
3137
+ BBYEFFvKXuXe0oGqzagtZFG22XKbl+ZPMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUW8pe
3138
+ 5d7SgarNqC1kUbbZcpuX5k8wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2gAMGUCMQCK5kCJ
3139
+ N+vp1RPZytRrJPOwPYdGWBrssd9v+1a6cGvHOMzosYxPD/fxZ3YOg9AeUY8CMD32IygmTMZgh5Mm
3140
+ m7I1HrrW9zzRHM76JTymGoEVW/MSD2zuZYrJh6j5B+BimoxcSg==
3141
+ -----END CERTIFICATE-----
3142
+
3143
+ GlobalSign Root CA - R6
3144
+ =======================
3145
+ -----BEGIN CERTIFICATE-----
3146
+ MIIFgzCCA2ugAwIBAgIORea7A4Mzw4VlSOb/RVEwDQYJKoZIhvcNAQEMBQAwTDEgMB4GA1UECxMX
3147
+ R2xvYmFsU2lnbiBSb290IENBIC0gUjYxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds
3148
+ b2JhbFNpZ24wHhcNMTQxMjEwMDAwMDAwWhcNMzQxMjEwMDAwMDAwWjBMMSAwHgYDVQQLExdHbG9i
3149
+ YWxTaWduIFJvb3QgQ0EgLSBSNjETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFs
3150
+ U2lnbjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAJUH6HPKZvnsFMp7PPcNCPG0RQss
3151
+ grRIxutbPK6DuEGSMxSkb3/pKszGsIhrxbaJ0cay/xTOURQh7ErdG1rG1ofuTToVBu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ds+qkxV/ZoVqW/hpvvfcDDpw+5CRu3CkwWJ+n1jez/QcYF8AOiYrg54NMMl+68KnyBr
3166
+ 3TsTjxKM4kEaSHpzoHdpx7Zcf4LIHv5YGygrqGytXm3ABdJ7t+uA/iU3/gKbaKxCXcPu9czc8FB1
3167
+ 0jZpnOZ7BN9uBmm23goJSFmH63sUYHpkqmlD75HHTOwY3WzvUy2MmeFe8nI+z1TIvWfspA9MRf/T
3168
+ uTAjB0yPEL+GltmZWrSZVxykzLsViVO6LAUP5MSeGbEYNNVMnbrt9x+vJJUEeKgDu+6B5dpffItK
3169
+ oZB0JaezPkvILFa9x8jvOOJckvB595yEunQtYQEgfn7R8k8HWV+LLUNS60YMlOH1Zkd5d9VUWx+t
3170
+ JDfLRVpOoERIyNiwmcUVhAn21klJwGW45hpxbqCo8YLoRT5s1gLXCmeDBVrJpBA=
3171
+ -----END CERTIFICATE-----
3172
+
3173
+ OISTE WISeKey Global Root GC CA
3174
+ ===============================
3175
+ -----BEGIN CERTIFICATE-----
3176
+ MIICaTCCAe+gAwIBAgIQISpWDK7aDKtARb8roi066jAKBggqhkjOPQQDAzBtMQswCQYDVQQGEwJD
3177
+ SDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEo
3178
+ MCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQyBDQTAeFw0xNzA1MDkwOTQ4MzRa
3179
+ Fw00MjA1MDkwOTU4MzNaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYDVQQL
3180
+ ExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEdsb2Jh
3181
+ bCBSb290IEdDIENBMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETOlQwMYPchi82PG6s4nieUqjFqdr
3182
+ VCTbUf/q9Akkwwsin8tqJ4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is3Jz5nu2Z6qNuFoS3FJFDYoOj0dzpqPJeaAcWEr
3213
+ tXvM+SUWgeExX6GjfhaknBZqlxi9dnKlC54dNuYvoS++cJEPqOba+MSSQGwlfnuzCdyyF62ARPBo
3214
+ pY+Udf90WuioAnwMCeKpSwughQtiue+hMZL77/ZRBIls6Kl0obsXs7X9SQ98POyDGCBDTtWTurQ0
3215
+ sR8WNh8M5mQ5Fkzc4P4dyKliPUDqysU0ArSuiYgzNdwsE3PYJ/HQcu51OyLemGhmW/HGY0dVHLql
3216
+ CFF1pkgl
3217
+ -----END CERTIFICATE-----
3218
+
3219
+ GTS Root R2
3220
+ ===========
3221
+ -----BEGIN CERTIFICATE-----
3222
+ MIIFWjCCA0KgAwIBAgIQbkepxlqz5yDFMJo/aFLybzANBgkqhkiG9w0BAQwFADBHMQswCQYDVQQG
3223
+ EwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJv
3224
+ b3QgUjIwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAG
3225
+ A1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjIwggIi
3226
+ MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDO3v2m++zsFDQ8BwZabFn3GTXd98GdVarTzTuk
3227
+ k3LvCvptnfbwhYBboUhSnznFt+4orO/LdmgUud+tAWyZH8QiHZ/+cnfgLFuv5AS/T3KgGjSY6Dlo
3228
+ 7JUle3ah5mm5hRm9iYz+re026nO8/4Piy33B0s5Ks40FnotJk9/BW9BuXvAuMC6C/Pq8tBcKSOWI
3229
+ m8Wba96wyrQD8Nr0kLhlZPdcTK3ofmZemde4wj7I0BOdre7kRXuJVfeKH2JShBKzwkCX44ofR5Gm
3230
+ dFrS+LFjKBC4swm4VndAoiaYecb+3yXuPuWgf9R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iAhu7xNUX90txGdj08+JN7+dIPT7eoOboB6BAFDC5AwiWVIQ
3244
+ 7UNWhwD4FFKnHYuTjKJNRn8nxnGbJN7k2oaLDX5rIMHAnuFl2GqjpuiFizoHCBy69Y9Vmhh1fuXs
3245
+ gWbRIXOhNUQLgD1bnF5vKheW0YMjiGZt5obicDIvUiLnyOd/xCxgXS/Dr55FBcOEArf9LAhST4Ld
3246
+ o/DUhgkC
3247
+ -----END CERTIFICATE-----
3248
+
3249
+ GTS Root R3
3250
+ ===========
3251
+ -----BEGIN CERTIFICATE-----
3252
+ MIICDDCCAZGgAwIBAgIQbkepx2ypcyRAiQ8DVd2NHTAKBggqhkjOPQQDAzBHMQswCQYDVQQGEwJV
3253
+ UzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3Qg
3254
+ UjMwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UE
3255
+ ChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjMwdjAQBgcq
3256
+ hkjOPQIBBgUrgQQAIgNiAAQfTzOHMymKoYTey8chWEGJ6ladK0uFxh1MJ7x/JlFyb+Kf1qPKzEUU
3257
+ Rout736GjOyxfi//qXGdGIRFBEFVbivqJn+7kAHjSxm65FSWRQmx1WyRRK2EE46ajA2ADDL24Cej
3258
+ QjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTB8Sa6oC2uhYHP
3259
+ 0/EqEr24Cmf9vDAKBggqhkjOPQQDAwNpADBmAjEAgFukfCPAlaUs3L6JbyO5o91lAFJekazInXJ0
3260
+ glMLfalAvWhgxeG4VDvBNhcl2MG9AjEAnjWSdIUlUfUk7GRSJFClH9voy8l27OyCbvWFGFPouOOa
3261
+ KaqW04MjyaR7YbPMAuhd
3262
+ -----END CERTIFICATE-----
3263
+
3264
+ GTS Root R4
3265
+ ===========
3266
+ -----BEGIN CERTIFICATE-----
3267
+ MIICCjCCAZGgAwIBAgIQbkepyIuUtui7OyrYorLBmTAKBggqhkjOPQQDAzBHMQswCQYDVQQGEwJV
3268
+ UzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3Qg
3269
+ UjQwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UE
3270
+ ChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcq
3271
+ hkjOPQIBBgUrgQQAIgNiAATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa
3272
+ 6zzuhXyiQHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/lxKvRHYqj
3273
+ QjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSATNbrdP9JNqPV
3274
+ 2Py1PsVq8JQdjDAKBggqhkjOPQQDAwNnADBkAjBqUFJ0CMRw3J5QdCHojXohw0+WbhXRIjVhLfoI
3275
+ N+4Zba3bssx9BzT1YBkstTTZbyACMANxsbqjYAuG7ZoIapVon+Kz4ZNkfF6Tpt95LY2F45TPI11x
3276
+ zPKwTdb+mciUqXWi4w==
3277
+ -----END CERTIFICATE-----
3278
+
3279
+ UCA Global G2 Root
3280
+ ==================
3281
+ -----BEGIN CERTIFICATE-----
3282
+ MIIFRjCCAy6gAwIBAgIQXd+x2lqj7V2+WmUgZQOQ7zANBgkqhkiG9w0BAQsFADA9MQswCQYDVQQG
3283
+ EwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxGzAZBgNVBAMMElVDQSBHbG9iYWwgRzIgUm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utROTL/7lo
3297
+ 5sOASD0Ee/ojL3rtNtqyzm325p7lX1iPyzcyochltq44PTUbPrw7tgTQvPlJ9Zv3hcU2tsu8+Mg5
3298
+ 1eRfB70VVJd0ysrtT7q6ZHafgbiERUlMjW+i67HM0cOU2kTC5uLqGOiiHycFutfl1qnN3e92mI0A
3299
+ Ds0b+gO3joBYDic/UvuUospeZcnWhNq5NXHzJsBPd+aBJ9J3O5oUb3n09tDh05S60FdRvScFDcH9
3300
+ yBIw7m+NESsIndTUv4BFFJqIRNow6rSn4+7vW4LVPtateJLbXDzz2K36uGt/xDYotgIVilQsnLAX
3301
+ c47QN6MUPJiVAAwpBVueSUmxX8fjy88nZY41F7dXyDDZQVu5FLbowg+UMaeUmMxq67XhJ/UQqAHo
3302
+ jhJi6IjMtX9Gl8CbEGY4GjZGXyJoPd/JxhMnq1MGrKI8hgZlb7F+sSlEmqO6SWkoaY/X5V+tBIZk
3303
+ bxqgDMUIYs6Ao9Dz7GjevjPHF1t/gMRMTLGmhIrDO7gJzRSBuhjjVFc2/tsvfEehOjPI+Vg7RE+x
3304
+ ygKJBJYoaMVLuCaJu9YzL1DV/pqJuhgyklTGW+Cd+V7lDSKb9triyCGyYiGqhkCyLmTTX8jjfhFn
3305
+ RR8F/uOi77Oos/N9j/gMHyIfLXC0uAE0djAA5SN4p1bXUB+K+wb1whnw0A==
3306
+ -----END CERTIFICATE-----
3307
+
3308
+ UCA Extended Validation Root
3309
+ ============================
3310
+ -----BEGIN CERTIFICATE-----
3311
+ MIIFWjCCA0KgAwIBAgIQT9Irj/VkyDOeTzRYZiNwYDANBgkqhkiG9w0BAQsFADBHMQswCQYDVQQG
3312
+ EwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9u
3313
+ IFJvb3QwHhcNMTUwMzEzMDAwMDAwWhcNMzgxMjMxMDAwMDAwWjBHMQswCQYDVQQGEwJDTjERMA8G
3314
+ A1UECg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8lTwEpcOPlDOHqWnzcSbvBHiqB9RZLcpHIojG5qtr8nR/zXUACE/xOHAbKsxSQVBcZEhrxH9cM
3328
+ aVr2cXj0lH2RC47skFSOvG+hTKv8dGT9cZr4QQehzZHkPJrgmzI5c6sq1WnIeJEmMX3ixzDx/BR4
3329
+ dxIOE/TdFpS/S2d7cFOFyrC78zhNLJA5wA3CXWvp4uXViI3WLL+rG761KIcSF3Ru/H38j9CHJrAb
3330
+ +7lsq+KePRXBOy5nAliRn+/4Qh8st2j1da3Ptfb/EX3C8CSlrdP6oDyp+l3cpaDvRKS+1ujl5BOW
3331
+ F3sGPjLtx7dCvHaj2GU4Kzg1USEODm8uNBNA4StnDG1KQTAYI1oyVZnJF+A83vbsea0rWBmirSwi
3332
+ GpWOvpaQXUJXxPkUAzUrHC1RVwinOt4/5Mi0A3PCwSaAuwtCH60NryZy2sy+s6ODWA2CxR9GUeOc
3333
+ GMyNm43sSet1UNWMKFnKdDTajAshqx7qG+XH/RU+wBeq+yNuJkbL+vmxcmtpzyKEC2IPrNkZAJSi
3334
+ djzULZrtBJ4tBmIQN1IchXIbJ+XMxjHsN+xjWZsLHXbMfjKaiJUINlK73nZfdklJrX+9ZSCyycEr
3335
+ dhh2n1ax
3336
+ -----END CERTIFICATE-----
3337
+
3338
+ Certigna Root CA
3339
+ ================
3340
+ -----BEGIN CERTIFICATE-----
3341
+ MIIGWzCCBEOgAwIBAgIRAMrpG4nxVQMNo+ZBbcTjpuEwDQYJKoZIhvcNAQELBQAwWjELMAkGA1UE
3342
+ BhMCRlIxEjAQBgNVBAoMCURoaW15b3RpczEcMBoGA1UECwwTMDAwMiA0ODE0NjMwODEwMDAzNjEZ
3343
+ MBcGA1UEAwwQQ2VydGlnbmEgUm9vdCBDQTAeFw0xMzEwMDEwODMyMjdaFw0zMzEwMDEwODMyMjda
3344
+ MFoxCzAJBgNVBAYTAkZSMRIwEAYDVQQKDAlEaGlteW90aXMxHDAaBgNVBAsMEzAwMDIgNDgxNDYz
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dGlnbmEuZnIvYXV0b3JpdGVzLzBtBgNVHR8EZjBkMC+gLaArhilodHRwOi8vY3JsLmNlcnRpZ25h
3359
+ LmZyL2NlcnRpZ25hcm9vdGNhLmNybDAxoC+gLYYraHR0cDovL2NybC5kaGlteW90aXMuY29tL2Nl
3360
+ cnRpZ25hcm9vdGNhLmNybDANBgkqhkiG9w0BAQsFAAOCAgEAlLieT/DjlQgi581oQfccVdV8AOIt
3361
+ OoldaDgvUSILSo3L6btdPrtcPbEo/uRTVRPPoZAbAh1fZkYJMyjhDSSXcNMQH+pkV5a7XdrnxIxP
3362
+ TGRGHVyH41neQtGbqH6mid2PHMkwgu07nM3A6RngatgCdTer9zQoKJHyBApPNeNgJgH60BGM+RFq
3363
+ 7q89w1DTj18zeTyGqHNFkIwgtnJzFyO+B2XleJINugHA64wcZr+shncBlA2c5uk5jR+mUYyZDDl3
3364
+ 4bSb+hxnV29qao6pK0xXeXpXIs/NX2NGjVxZOob4Mkdio2cNGJHc+6Zr9UhhcyNZjgKnvETq9Emd
3365
+ 8VRY+WCv2hikLyhF3HqgiIZd8zvn/yk1gPxkQ5Tm4xxvvq0OKmOZK8l+hfZx6AYDlf7ej0gcWtSS
3366
+ 6Cvu5zHbugRqh5jnxV/vfaci9wHYTfmJ0A6aBVmknpjZbyvKcL5kwlWj9Omvw5Ip3IgWJJk8jSaY
3367
+ tlu3zM63Nwf9JtmYhST/WSMDmu2dnajkXjjO11INb9I/bbEFa0nOipFGc/T2L/Coc3cOZayhjWZS
3368
+ aX5LaAzHHjcng6WMxwLkFM1JAbBzs/3GkDpv0mztO+7skb6iQ12LAEpmJURw3kAP+HwV96LOPNde
3369
+ E4yBFxgX0b3xdxA61GU5wSesVywlVP+i2k+KYTlerj1KjL0=
3370
+ -----END CERTIFICATE-----
3371
+
3372
+ emSign Root CA - G1
3373
+ ===================
3374
+ -----BEGIN CERTIFICATE-----
3375
+ MIIDlDCCAnygAwIBAgIKMfXkYgxsWO3W2DANBgkqhkiG9w0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DgfrbESQRRfXBgvKqy/3lyeqYdPV8q
3389
+ +Mri/Tm3R7nrft8EI6/6nAYH6ftjk4BAtcZsCjEozgyfz7MjNYBBjWzEN3uBL4ChQEKF6dk4jeih
3390
+ U80Bv2noWgbyRQuQ+q7hv53yrlc8pa6yVvSLZUDp/TGBLPQ5Cdjua6e0ph0VpZj3AYHYhX3zUVxx
3391
+ iN66zB+Afko=
3392
+ -----END CERTIFICATE-----
3393
+
3394
+ emSign ECC Root CA - G3
3395
+ =======================
3396
+ -----BEGIN CERTIFICATE-----
3397
+ MIICTjCCAdOgAwIBAgIKPPYHqWhwDtqLhDAKBggqhkjOPQQDAzBrMQswCQYDVQQGEwJJTjETMBEG
3398
+ A1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEg
3399
+ MB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0gRzMwHhcNMTgwMjE4MTgzMDAwWhcNNDMwMjE4
3400
+ MTgzMDAwWjBrMQswCQYDVQQGEwJJTjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11
3401
+ ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEgMB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0g
3402
+ RzMwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQjpQy4LRL1KPOxst3iAhKAnjlfSU2fySU0WXTsuwYc
3403
+ 58Byr+iuL+FBVIcUqEqy6HyC5ltqtdyzdc6LBtCGI79G1Y4PPwT01xySfvalY8L1X44uT6EYGQIr
3404
+ MgqCZH0Wk9GjQjBAMB0GA1UdDgQWBBR8XQKEE9TMipuBzhccLikenEhjQjAOBgNVHQ8BAf8EBAMC
3405
+ AQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNpADBmAjEAvvNhzwIQHWSVB7gYboiFBS+D
3406
+ CBeQyh+KTOgNG3qxrdWBCUfvO6wIBHxcmbHtRwfSAjEAnbpV/KlK6O3t5nYBQnvI+GDZjVGLVTv7
3407
+ jHvrZQnD+JbNR6iC8hZVdyR+EhCVBCyj
3408
+ -----END CERTIFICATE-----
3409
+
3410
+ emSign Root CA - C1
3411
+ ===================
3412
+ -----BEGIN CERTIFICATE-----
3413
+ MIIDczCCAlugAwIBAgILAK7PALrEzzL4Q7IwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCVVMx
3414
+ EzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQDExNlbVNp
3415
+ Z24gUm9vdCBDQSAtIEMxMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowVjELMAkGA1UE
3416
+ BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQD
3417
+ ExNlbVNpZ24gUm9vdCBDQSAtIEMxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz+up
3418
+ ufGZBczYKCFK83M0UYRWEPWgTywS4/oTmifQz/l5GnRfHXk5/Fv4cI7gklL35CX5VIPZHdPIWoU/
3419
+ Xse2B+4+wM6ar6xWQio5JXDWv7V7Nq2s9nPczdcdioOl+yuQFTdrHCZH3DspVpNqs8FqOp099cGX
3420
+ OFgFixwR4+S0uF2FHYP+eF8LRWgYSKVGczQ7/g/IdrvHGPMF0Ybzhe3nudkyrVWIzqa2kbBPrH4V
3421
+ I5b2P/AgNBbeCsbEBEV5f6f9vtKppa+cxSMq9zwhbL2vj07FOrLzNBL834AaSaTUqZX3noleooms
3422
+ lMuoaJuvimUnzYnu3Yy1aylwQ6BpC+S5DwIDAQABo0IwQDAdBgNVHQ4EFgQU/qHgcB4qAzlSWkK+
3423
+ XJGFehiqTbUwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQAD
3424
+ ggEBAMJKVvoVIXsoounlHfv4LcQ5lkFMOycsxGwYFYDGrK9HWS8mC+M2sO87/kOXSTKZEhVb3xEp
3425
+ /6tT+LvBeA+snFOvV71ojD1pM/CjoCNjO2RnIkSt1XHLVip4kqNPEjE2NuLe/gDEo2APJ62gsIq1
3426
+ NnpSob0n9CAnYuhNlCQT5AoE6TyrLshDCUrGYQTlSTR+08TI9Q/Aqum6VF7zYytPT1DU/rl7mYw9
3427
+ wC68AivTxEDkigcxHpvOJpkT+xHqmiIMERnHXhuBUDDIlhJu58tBf5E7oke3VIAb3ADMmpDqw8NQ
3428
+ BmIMMMAVSKeoWXzhriKi4gp6D/piq1JM4fHfyr6DDUI=
3429
+ -----END CERTIFICATE-----
3430
+
3431
+ emSign ECC Root CA - C3
3432
+ =======================
3433
+ -----BEGIN CERTIFICATE-----
3434
+ MIICKzCCAbGgAwIBAgIKe3G2gla4EnycqDAKBggqhkjOPQQDAzBaMQswCQYDVQQGEwJVUzETMBEG
3435
+ A1UECxMKZW1TaWduIFBLSTEUMBIGA1UEChMLZU11ZGhyYSBJbmMxIDAeBgNVBAMTF2VtU2lnbiBF
3436
+ Q0MgUm9vdCBDQSAtIEMzMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowWjELMAkGA1UE
3437
+ BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMSAwHgYDVQQD
3438
+ ExdlbVNpZ24gRUNDIFJvb3QgQ0EgLSBDMzB2MBAGByqGSM49AgEGBSuBBAAiA2IABP2lYa57JhAd
3439
+ 6bciMK4G9IGzsUJxlTm801Ljr6/58pc1kjZGDoeVjbk5Wum739D+yAdBPLtVb4OjavtisIGJAnB9
3440
+ SMVK4+kiVCJNk7tCDK93nCOmfddhEc5lx/h//vXyqaNCMEAwHQYDVR0OBBYEFPtaSNCAIEDyqOkA
3441
+ B2kZd6fmw/TPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gA
3442
+ MGUCMQC02C8Cif22TGK6Q04ThHK1rt0c3ta13FaPWEBaLd4gTCKDypOofu4SQMfWh0/434UCMBwU
3443
+ ZOR8loMRnLDRWmFLpg9J0wD8ofzkpf9/rdcw0Md3f76BB1UwUCAU9Vc4CqgxUQ==
3444
+ -----END CERTIFICATE-----
3445
+
3446
+ Hongkong Post Root CA 3
3447
+ =======================
3448
+ -----BEGIN CERTIFICATE-----
3449
+ MIIFzzCCA7egAwIBAgIUCBZfikyl7ADJk0DfxMauI7gcWqQwDQYJKoZIhvcNAQELBQAwbzELMAkG
3450
+ A1UEBhMCSEsxEjAQBgNVBAgTCUhvbmcgS29uZzESMBAGA1UEBxMJSG9uZyBLb25nMRYwFAYDVQQK
3451
+ Ew1Ib25na29uZyBQb3N0MSAwHgYDVQQDExdIb25na29uZyBQb3N0IFJvb3QgQ0EgMzAeFw0xNzA2
3452
+ MDMwMjI5NDZaFw00MjA2MDMwMjI5NDZaMG8xCzAJBgNVBAYTAkhLMRIwEAYDVQQIEwlIb25nIEtv
3453
+ bmcxEjAQBgNVBAcTCUhvbmcgS29uZzEWMBQGA1UEChMNSG9uZ2tvbmcgUG9zdDEgMB4GA1UEAxMX
3454
+ SG9uZ2tvbmcgUG9zdCBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCz
3455
+ iNfqzg8gTr7m1gNt7ln8wlffKWihgw4+aMdoWJwcYEuJQwy51BWy7sFOdem1p+/l6TWZ5Mwc50tf
3456
+ jTMwIDNT2aa71T4Tjukfh0mtUC1Qyhi+AViiE3CWu4mIVoBc+L0sPOFMV4i707mV78vH9toxdCim
3457
+ 5lSJ9UExyuUmGs2C4HDaOym71QP1mbpV9WTRYA6ziUm4ii8F0oRFKHyPaFASePwLtVPLwpgchKOe
3458
+ sL4jpNrcyCse2m5FHomY2vkALgbpDDtw1VAliJnLzXNg99X/NWfFobxeq81KuEXryGgeDQ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k7
3472
+ nwNT7u56AQIWeNTowr5GdogTPyK7SBIdUgC0An4hGh6cJfTzPV4e0hz5sy229zdcxsshTrD3mUcY
3473
+ hcErulWuBurQB7Lcq9CClnXO0lD+mefPL5/ndtFhKvshuzHQqp9HpLIiyhY6UFfEW0NnxWViA0kB
3474
+ 60PZ2Pierc+xYw5F9KBaLJstxabArahH9CdMOA0uG0k7UvToiIMrVCjU8jVStDKDYmlkDJGcn5fq
3475
+ dBb9HxEGmpv0
3476
+ -----END CERTIFICATE-----
lib/stripe-php/init.php ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ // Stripe singleton
6
+ require __DIR__ . '/lib/Stripe.php';
7
+
8
+ // Utilities
9
+ require __DIR__ . '/lib/Util/CaseInsensitiveArray.php';
10
+ require __DIR__ . '/lib/Util/LoggerInterface.php';
11
+ require __DIR__ . '/lib/Util/DefaultLogger.php';
12
+ require __DIR__ . '/lib/Util/RandomGenerator.php';
13
+ require __DIR__ . '/lib/Util/RequestOptions.php';
14
+ require __DIR__ . '/lib/Util/Set.php';
15
+ require __DIR__ . '/lib/Util/Util.php';
16
+ require __DIR__ . '/lib/Util/ObjectTypes.php';
17
+
18
+ // HttpClient
19
+ require __DIR__ . '/lib/HttpClient/ClientInterface.php';
20
+ require __DIR__ . '/lib/HttpClient/StreamingClientInterface.php';
21
+ require __DIR__ . '/lib/HttpClient/CurlClient.php';
22
+
23
+ // Exceptions
24
+ require __DIR__ . '/lib/Exception/ExceptionInterface.php';
25
+ require __DIR__ . '/lib/Exception/ApiErrorException.php';
26
+ require __DIR__ . '/lib/Exception/ApiConnectionException.php';
27
+ require __DIR__ . '/lib/Exception/AuthenticationException.php';
28
+ require __DIR__ . '/lib/Exception/BadMethodCallException.php';
29
+ require __DIR__ . '/lib/Exception/CardException.php';
30
+ require __DIR__ . '/lib/Exception/IdempotencyException.php';
31
+ require __DIR__ . '/lib/Exception/InvalidArgumentException.php';
32
+ require __DIR__ . '/lib/Exception/InvalidRequestException.php';
33
+ require __DIR__ . '/lib/Exception/PermissionException.php';
34
+ require __DIR__ . '/lib/Exception/RateLimitException.php';
35
+ require __DIR__ . '/lib/Exception/SignatureVerificationException.php';
36
+ require __DIR__ . '/lib/Exception/UnexpectedValueException.php';
37
+ require __DIR__ . '/lib/Exception/UnknownApiErrorException.php';
38
+
39
+ // OAuth exceptions
40
+ require __DIR__ . '/lib/Exception/OAuth/ExceptionInterface.php';
41
+ require __DIR__ . '/lib/Exception/OAuth/OAuthErrorException.php';
42
+ require __DIR__ . '/lib/Exception/OAuth/InvalidClientException.php';
43
+ require __DIR__ . '/lib/Exception/OAuth/InvalidGrantException.php';
44
+ require __DIR__ . '/lib/Exception/OAuth/InvalidRequestException.php';
45
+ require __DIR__ . '/lib/Exception/OAuth/InvalidScopeException.php';
46
+ require __DIR__ . '/lib/Exception/OAuth/UnknownOAuthErrorException.php';
47
+ require __DIR__ . '/lib/Exception/OAuth/UnsupportedGrantTypeException.php';
48
+ require __DIR__ . '/lib/Exception/OAuth/UnsupportedResponseTypeException.php';
49
+
50
+ // API operations
51
+ require __DIR__ . '/lib/ApiOperations/All.php';
52
+ require __DIR__ . '/lib/ApiOperations/Create.php';
53
+ require __DIR__ . '/lib/ApiOperations/Delete.php';
54
+ require __DIR__ . '/lib/ApiOperations/NestedResource.php';
55
+ require __DIR__ . '/lib/ApiOperations/Request.php';
56
+ require __DIR__ . '/lib/ApiOperations/Retrieve.php';
57
+ require __DIR__ . '/lib/ApiOperations/Update.php';
58
+
59
+ // Plumbing
60
+ require __DIR__ . '/lib/ApiResponse.php';
61
+ require __DIR__ . '/lib/RequestTelemetry.php';
62
+ require __DIR__ . '/lib/StripeObject.php';
63
+ require __DIR__ . '/lib/ApiRequestor.php';
64
+ require __DIR__ . '/lib/ApiResource.php';
65
+ require __DIR__ . '/lib/SingletonApiResource.php';
66
+ require __DIR__ . '/lib/Service/AbstractService.php';
67
+ require __DIR__ . '/lib/Service/AbstractServiceFactory.php';
68
+
69
+ // StripeClient
70
+ require __DIR__ . '/lib/BaseStripeClientInterface.php';
71
+ require __DIR__ . '/lib/StripeClientInterface.php';
72
+ require __DIR__ . '/lib/StripeStreamingClientInterface.php';
73
+ require __DIR__ . '/lib/BaseStripeClient.php';
74
+ require __DIR__ . '/lib/StripeClient.php';
75
+
76
+ // Stripe API Resources
77
+ require __DIR__ . '/lib/Account.php';
78
+ require __DIR__ . '/lib/AccountLink.php';
79
+ require __DIR__ . '/lib/AlipayAccount.php';
80
+ require __DIR__ . '/lib/ApplePayDomain.php';
81
+ require __DIR__ . '/lib/ApplicationFee.php';
82
+ require __DIR__ . '/lib/ApplicationFeeRefund.php';
83
+ require __DIR__ . '/lib/Balance.php';
84
+ require __DIR__ . '/lib/BalanceTransaction.php';
85
+ require __DIR__ . '/lib/BankAccount.php';
86
+ require __DIR__ . '/lib/BillingPortal/Configuration.php';
87
+ require __DIR__ . '/lib/BillingPortal/Session.php';
88
+ require __DIR__ . '/lib/BitcoinReceiver.php';
89
+ require __DIR__ . '/lib/BitcoinTransaction.php';
90
+ require __DIR__ . '/lib/Capability.php';
91
+ require __DIR__ . '/lib/Card.php';
92
+ require __DIR__ . '/lib/Charge.php';
93
+ require __DIR__ . '/lib/Checkout/Session.php';
94
+ require __DIR__ . '/lib/Collection.php';
95
+ require __DIR__ . '/lib/CountrySpec.php';
96
+ require __DIR__ . '/lib/Coupon.php';
97
+ require __DIR__ . '/lib/CreditNote.php';
98
+ require __DIR__ . '/lib/CreditNoteLineItem.php';
99
+ require __DIR__ . '/lib/Customer.php';
100
+ require __DIR__ . '/lib/CustomerBalanceTransaction.php';
101
+ require __DIR__ . '/lib/Discount.php';
102
+ require __DIR__ . '/lib/Dispute.php';
103
+ require __DIR__ . '/lib/EphemeralKey.php';
104
+ require __DIR__ . '/lib/ErrorObject.php';
105
+ require __DIR__ . '/lib/Event.php';
106
+ require __DIR__ . '/lib/ExchangeRate.php';
107
+ require __DIR__ . '/lib/File.php';
108
+ require __DIR__ . '/lib/FileLink.php';
109
+ require __DIR__ . '/lib/Identity/VerificationReport.php';
110
+ require __DIR__ . '/lib/Identity/VerificationSession.php';
111
+ require __DIR__ . '/lib/Invoice.php';
112
+ require __DIR__ . '/lib/InvoiceItem.php';
113
+ require __DIR__ . '/lib/InvoiceLineItem.php';
114
+ require __DIR__ . '/lib/Issuing/Authorization.php';
115
+ require __DIR__ . '/lib/Issuing/Card.php';
116
+ require __DIR__ . '/lib/Issuing/CardDetails.php';
117
+ require __DIR__ . '/lib/Issuing/Cardholder.php';
118
+ require __DIR__ . '/lib/Issuing/Dispute.php';
119
+ require __DIR__ . '/lib/Issuing/Transaction.php';
120
+ require __DIR__ . '/lib/LineItem.php';
121
+ require __DIR__ . '/lib/LoginLink.php';
122
+ require __DIR__ . '/lib/Mandate.php';
123
+ require __DIR__ . '/lib/Order.php';
124
+ require __DIR__ . '/lib/OrderItem.php';
125
+ require __DIR__ . '/lib/OrderReturn.php';
126
+ require __DIR__ . '/lib/PaymentIntent.php';
127
+ require __DIR__ . '/lib/PaymentMethod.php';
128
+ require __DIR__ . '/lib/Payout.php';
129
+ require __DIR__ . '/lib/Person.php';
130
+ require __DIR__ . '/lib/Plan.php';
131
+ require __DIR__ . '/lib/Price.php';
132
+ require __DIR__ . '/lib/Product.php';
133
+ require __DIR__ . '/lib/PromotionCode.php';
134
+ require __DIR__ . '/lib/Quote.php';
135
+ require __DIR__ . '/lib/Radar/EarlyFraudWarning.php';
136
+ require __DIR__ . '/lib/Radar/ValueList.php';
137
+ require __DIR__ . '/lib/Radar/ValueListItem.php';
138
+ require __DIR__ . '/lib/Recipient.php';
139
+ require __DIR__ . '/lib/RecipientTransfer.php';
140
+ require __DIR__ . '/lib/Refund.php';
141
+ require __DIR__ . '/lib/Reporting/ReportRun.php';
142
+ require __DIR__ . '/lib/Reporting/ReportType.php';
143
+ require __DIR__ . '/lib/Review.php';
144
+ require __DIR__ . '/lib/SetupAttempt.php';
145
+ require __DIR__ . '/lib/SetupIntent.php';
146
+ require __DIR__ . '/lib/Sigma/ScheduledQueryRun.php';
147
+ require __DIR__ . '/lib/SKU.php';
148
+ require __DIR__ . '/lib/Source.php';
149
+ require __DIR__ . '/lib/SourceTransaction.php';
150
+ require __DIR__ . '/lib/Subscription.php';
151
+ require __DIR__ . '/lib/SubscriptionItem.php';
152
+ require __DIR__ . '/lib/SubscriptionSchedule.php';
153
+ require __DIR__ . '/lib/TaxCode.php';
154
+ require __DIR__ . '/lib/TaxId.php';
155
+ require __DIR__ . '/lib/TaxRate.php';
156
+ require __DIR__ . '/lib/Terminal/ConnectionToken.php';
157
+ require __DIR__ . '/lib/Terminal/Location.php';
158
+ require __DIR__ . '/lib/Terminal/Reader.php';
159
+ require __DIR__ . '/lib/ThreeDSecure.php';
160
+ require __DIR__ . '/lib/Token.php';
161
+ require __DIR__ . '/lib/Topup.php';
162
+ require __DIR__ . '/lib/Transfer.php';
163
+ require __DIR__ . '/lib/TransferReversal.php';
164
+ require __DIR__ . '/lib/UsageRecord.php';
165
+ require __DIR__ . '/lib/UsageRecordSummary.php';
166
+ require __DIR__ . '/lib/WebhookEndpoint.php';
167
+
168
+ // Services
169
+ require __DIR__ . '/lib/Service/AccountService.php';
170
+ require __DIR__ . '/lib/Service/AccountLinkService.php';
171
+ require __DIR__ . '/lib/Service/ApplePayDomainService.php';
172
+ require __DIR__ . '/lib/Service/ApplicationFeeService.php';
173
+ require __DIR__ . '/lib/Service/BalanceService.php';
174
+ require __DIR__ . '/lib/Service/BalanceTransactionService.php';
175
+ require __DIR__ . '/lib/Service/BillingPortal/ConfigurationService.php';
176
+ require __DIR__ . '/lib/Service/BillingPortal/SessionService.php';
177
+ require __DIR__ . '/lib/Service/ChargeService.php';
178
+ require __DIR__ . '/lib/Service/Checkout/SessionService.php';
179
+ require __DIR__ . '/lib/Service/CountrySpecService.php';
180
+ require __DIR__ . '/lib/Service/CouponService.php';
181
+ require __DIR__ . '/lib/Service/CreditNoteService.php';
182
+ require __DIR__ . '/lib/Service/CustomerService.php';
183
+ require __DIR__ . '/lib/Service/DisputeService.php';
184
+ require __DIR__ . '/lib/Service/EphemeralKeyService.php';
185
+ require __DIR__ . '/lib/Service/EventService.php';
186
+ require __DIR__ . '/lib/Service/ExchangeRateService.php';
187
+ require __DIR__ . '/lib/Service/FileService.php';
188
+ require __DIR__ . '/lib/Service/FileLinkService.php';
189
+ require __DIR__ . '/lib/Service/Identity/VerificationReportService.php';
190
+ require __DIR__ . '/lib/Service/Identity/VerificationSessionService.php';
191
+ require __DIR__ . '/lib/Service/InvoiceService.php';
192
+ require __DIR__ . '/lib/Service/InvoiceItemService.php';
193
+ require __DIR__ . '/lib/Service/Issuing/AuthorizationService.php';
194
+ require __DIR__ . '/lib/Service/Issuing/CardService.php';
195
+ require __DIR__ . '/lib/Service/Issuing/CardholderService.php';
196
+ require __DIR__ . '/lib/Service/Issuing/DisputeService.php';
197
+ require __DIR__ . '/lib/Service/Issuing/TransactionService.php';
198
+ require __DIR__ . '/lib/Service/MandateService.php';
199
+ require __DIR__ . '/lib/Service/OrderService.php';
200
+ require __DIR__ . '/lib/Service/OrderReturnService.php';
201
+ require __DIR__ . '/lib/Service/PaymentIntentService.php';
202
+ require __DIR__ . '/lib/Service/PaymentMethodService.php';
203
+ require __DIR__ . '/lib/Service/PayoutService.php';
204
+ require __DIR__ . '/lib/Service/PlanService.php';
205
+ require __DIR__ . '/lib/Service/PriceService.php';
206
+ require __DIR__ . '/lib/Service/ProductService.php';
207
+ require __DIR__ . '/lib/Service/PromotionCodeService.php';
208
+ require __DIR__ . '/lib/Service/QuoteService.php';
209
+ require __DIR__ . '/lib/Service/Radar/EarlyFraudWarningService.php';
210
+ require __DIR__ . '/lib/Service/Radar/ValueListService.php';
211
+ require __DIR__ . '/lib/Service/Radar/ValueListItemService.php';
212
+ require __DIR__ . '/lib/Service/RefundService.php';
213
+ require __DIR__ . '/lib/Service/Reporting/ReportRunService.php';
214
+ require __DIR__ . '/lib/Service/Reporting/ReportTypeService.php';
215
+ require __DIR__ . '/lib/Service/ReviewService.php';
216
+ require __DIR__ . '/lib/Service/SetupAttemptService.php';
217
+ require __DIR__ . '/lib/Service/SetupIntentService.php';
218
+ require __DIR__ . '/lib/Service/Sigma/ScheduledQueryRunService.php';
219
+ require __DIR__ . '/lib/Service/SkuService.php';
220
+ require __DIR__ . '/lib/Service/SourceService.php';
221
+ require __DIR__ . '/lib/Service/SubscriptionService.php';
222
+ require __DIR__ . '/lib/Service/SubscriptionItemService.php';
223
+ require __DIR__ . '/lib/Service/SubscriptionScheduleService.php';
224
+ require __DIR__ . '/lib/Service/TaxCodeService.php';
225
+ require __DIR__ . '/lib/Service/TaxRateService.php';
226
+ require __DIR__ . '/lib/Service/Terminal/ConnectionTokenService.php';
227
+ require __DIR__ . '/lib/Service/Terminal/LocationService.php';
228
+ require __DIR__ . '/lib/Service/Terminal/ReaderService.php';
229
+ require __DIR__ . '/lib/Service/TokenService.php';
230
+ require __DIR__ . '/lib/Service/TopupService.php';
231
+ require __DIR__ . '/lib/Service/TransferService.php';
232
+ require __DIR__ . '/lib/Service/WebhookEndpointService.php';
233
+
234
+ // Service factories
235
+ require __DIR__ . '/lib/Service/CoreServiceFactory.php';
236
+ require __DIR__ . '/lib/Service/BillingPortal/BillingPortalServiceFactory.php';
237
+ require __DIR__ . '/lib/Service/Checkout/CheckoutServiceFactory.php';
238
+ require __DIR__ . '/lib/Service/Identity/IdentityServiceFactory.php';
239
+ require __DIR__ . '/lib/Service/Issuing/IssuingServiceFactory.php';
240
+ require __DIR__ . '/lib/Service/Radar/RadarServiceFactory.php';
241
+ require __DIR__ . '/lib/Service/Reporting/ReportingServiceFactory.php';
242
+ require __DIR__ . '/lib/Service/Sigma/SigmaServiceFactory.php';
243
+ require __DIR__ . '/lib/Service/Terminal/TerminalServiceFactory.php';
244
+
245
+ // OAuth
246
+ require __DIR__ . '/lib/OAuth.php';
247
+ require __DIR__ . '/lib/OAuthErrorObject.php';
248
+ require __DIR__ . '/lib/Service/OAuthService.php';
249
+
250
+ // Webhooks
251
+ require __DIR__ . '/lib/Webhook.php';
252
+ require __DIR__ . '/lib/WebhookSignature.php';
lib/stripe-php/lib/Account.php ADDED
@@ -0,0 +1,433 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * This is an object representing a Stripe account. You can retrieve it to see
9
+ * properties on the account like its current e-mail address or if the account is
10
+ * enabled yet to make live charges.
11
+ *
12
+ * Some properties, marked below, are available only to platforms that want to <a
13
+ * href="https://stripe.com/docs/connect/accounts">create and manage Express or
14
+ * Custom accounts</a>.
15
+ *
16
+ * @property string $id Unique identifier for the object.
17
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
18
+ * @property null|\Stripe\StripeObject $business_profile Business information about the account.
19
+ * @property null|string $business_type The business type.
20
+ * @property \Stripe\StripeObject $capabilities
21
+ * @property bool $charges_enabled Whether the account can create live charges.
22
+ * @property \Stripe\StripeObject $company
23
+ * @property \Stripe\StripeObject $controller
24
+ * @property string $country The account's country.
25
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
26
+ * @property string $default_currency Three-letter ISO currency code representing the default currency for the account. This must be a currency that <a href="https://stripe.com/docs/payouts">Stripe supports in the account's country</a>.
27
+ * @property bool $details_submitted Whether account details have been submitted. Standard accounts cannot receive payouts before this is true.
28
+ * @property null|string $email An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders.
29
+ * @property \Stripe\Collection $external_accounts External accounts (bank accounts and debit cards) currently attached to this account
30
+ * @property \Stripe\StripeObject $future_requirements
31
+ * @property \Stripe\Person $individual <p>This is an object representing a person associated with a Stripe account.</p><p>A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the <a href="https://stripe.com/docs/connect/standard-accounts">Standard onboarding</a> or <a href="https://stripe.com/docs/connect/express-accounts">Express onboarding documentation</a> for information about platform pre-filling and account onboarding steps.</p><p>Related guide: <a href="https://stripe.com/docs/connect/identity-verification-api#person-information">Handling Identity Verification with the API</a>.</p>
32
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
33
+ * @property bool $payouts_enabled Whether Stripe can send payouts to this account.
34
+ * @property \Stripe\StripeObject $requirements
35
+ * @property null|\Stripe\StripeObject $settings Options for customizing how the account functions within Stripe.
36
+ * @property \Stripe\StripeObject $tos_acceptance
37
+ * @property string $type The Stripe account type. Can be <code>standard</code>, <code>express</code>, or <code>custom</code>.
38
+ */
39
+ class Account extends ApiResource
40
+ {
41
+ const OBJECT_NAME = 'account';
42
+
43
+ use ApiOperations\All;
44
+ use ApiOperations\Create;
45
+ use ApiOperations\Delete;
46
+ use ApiOperations\NestedResource;
47
+ use ApiOperations\Update;
48
+
49
+ const BUSINESS_TYPE_COMPANY = 'company';
50
+ const BUSINESS_TYPE_GOVERNMENT_ENTITY = 'government_entity';
51
+ const BUSINESS_TYPE_INDIVIDUAL = 'individual';
52
+ const BUSINESS_TYPE_NON_PROFIT = 'non_profit';
53
+
54
+ const CAPABILITY_CARD_PAYMENTS = 'card_payments';
55
+ const CAPABILITY_LEGACY_PAYMENTS = 'legacy_payments';
56
+ const CAPABILITY_PLATFORM_PAYMENTS = 'platform_payments';
57
+ const CAPABILITY_TRANSFERS = 'transfers';
58
+
59
+ const CAPABILITY_STATUS_ACTIVE = 'active';
60
+ const CAPABILITY_STATUS_INACTIVE = 'inactive';
61
+ const CAPABILITY_STATUS_PENDING = 'pending';
62
+
63
+ const TYPE_CUSTOM = 'custom';
64
+ const TYPE_EXPRESS = 'express';
65
+ const TYPE_STANDARD = 'standard';
66
+
67
+ use ApiOperations\Retrieve {
68
+ retrieve as protected _retrieve;
69
+ }
70
+
71
+ public static function getSavedNestedResources()
72
+ {
73
+ static $savedNestedResources = null;
74
+ if (null === $savedNestedResources) {
75
+ $savedNestedResources = new Util\Set([
76
+ 'external_account',
77
+ 'bank_account',
78
+ ]);
79
+ }
80
+
81
+ return $savedNestedResources;
82
+ }
83
+
84
+ public function instanceUrl()
85
+ {
86
+ if (null === $this['id']) {
87
+ return '/v1/account';
88
+ }
89
+
90
+ return parent::instanceUrl();
91
+ }
92
+
93
+ public function serializeParameters($force = false)
94
+ {
95
+ $update = parent::serializeParameters($force);
96
+ if (isset($this->_values['legal_entity'])) {
97
+ $entity = $this['legal_entity'];
98
+ if (isset($entity->_values['additional_owners'])) {
99
+ $owners = $entity['additional_owners'];
100
+ $entityUpdate = isset($update['legal_entity']) ? $update['legal_entity'] : [];
101
+ $entityUpdate['additional_owners'] = $this->serializeAdditionalOwners($entity, $owners);
102
+ $update['legal_entity'] = $entityUpdate;
103
+ }
104
+ }
105
+ if (isset($this->_values['individual'])) {
106
+ $individual = $this['individual'];
107
+ if (($individual instanceof Person) && !isset($update['individual'])) {
108
+ $update['individual'] = $individual->serializeParameters($force);
109
+ }
110
+ }
111
+
112
+ return $update;
113
+ }
114
+
115
+ private function serializeAdditionalOwners($legalEntity, $additionalOwners)
116
+ {
117
+ if (isset($legalEntity->_originalValues['additional_owners'])) {
118
+ $originalValue = $legalEntity->_originalValues['additional_owners'];
119
+ } else {
120
+ $originalValue = [];
121
+ }
122
+ if (($originalValue) && (\count($originalValue) > \count($additionalOwners))) {
123
+ throw new Exception\InvalidArgumentException(
124
+ 'You cannot delete an item from an array, you must instead set a new array'
125
+ );
126
+ }
127
+
128
+ $updateArr = [];
129
+ foreach ($additionalOwners as $i => $v) {
130
+ $update = ($v instanceof StripeObject) ? $v->serializeParameters() : $v;
131
+
132
+ if ([] !== $update) {
133
+ if (!$originalValue
134
+ || !\array_key_exists($i, $originalValue)
135
+ || ($update !== $legalEntity->serializeParamsValue($originalValue[$i], null, false, true))) {
136
+ $updateArr[$i] = $update;
137
+ }
138
+ }
139
+ }
140
+
141
+ return $updateArr;
142
+ }
143
+
144
+ /**
145
+ * @param null|array|string $id the ID of the account to retrieve, or an
146
+ * options array containing an `id` key
147
+ * @param null|array|string $opts
148
+ *
149
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
150
+ *
151
+ * @return \Stripe\Account
152
+ */
153
+ public static function retrieve($id = null, $opts = null)
154
+ {
155
+ if (!$opts && \is_string($id) && 'sk_' === \substr($id, 0, 3)) {
156
+ $opts = $id;
157
+ $id = null;
158
+ }
159
+
160
+ return self::_retrieve($id, $opts);
161
+ }
162
+
163
+ /**
164
+ * @param null|array $clientId
165
+ * @param null|array|string $opts
166
+ *
167
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
168
+ *
169
+ * @return \Stripe\StripeObject object containing the response from the API
170
+ */
171
+ public function deauthorize($clientId = null, $opts = null)
172
+ {
173
+ $params = [
174
+ 'client_id' => $clientId,
175
+ 'stripe_user_id' => $this->id,
176
+ ];
177
+
178
+ return OAuth::deauthorize($params, $opts);
179
+ }
180
+
181
+ /**
182
+ * @param null|array $params
183
+ * @param null|array|string $opts
184
+ *
185
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
186
+ *
187
+ * @return \Stripe\Collection the list of persons
188
+ */
189
+ public function persons($params = null, $opts = null)
190
+ {
191
+ $url = $this->instanceUrl() . '/persons';
192
+ list($response, $opts) = $this->_request('get', $url, $params, $opts);
193
+ $obj = Util\Util::convertToStripeObject($response, $opts);
194
+ $obj->setLastResponse($response);
195
+
196
+ return $obj;
197
+ }
198
+
199
+ /**
200
+ * @param null|array $params
201
+ * @param null|array|string $opts
202
+ *
203
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
204
+ *
205
+ * @return \Stripe\Account the rejected account
206
+ */
207
+ public function reject($params = null, $opts = null)
208
+ {
209
+ $url = $this->instanceUrl() . '/reject';
210
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
211
+ $this->refreshFrom($response, $opts);
212
+
213
+ return $this;
214
+ }
215
+
216
+ /*
217
+ * Capabilities methods
218
+ * We can not add the capabilities() method today as the Account object already has a
219
+ * capabilities property which is a hash and not the sub-list of capabilities.
220
+ */
221
+
222
+ const PATH_CAPABILITIES = '/capabilities';
223
+
224
+ /**
225
+ * @param string $id the ID of the account on which to retrieve the capabilities
226
+ * @param null|array $params
227
+ * @param null|array|string $opts
228
+ *
229
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
230
+ *
231
+ * @return \Stripe\Collection the list of capabilities
232
+ */
233
+ public static function allCapabilities($id, $params = null, $opts = null)
234
+ {
235
+ return self::_allNestedResources($id, static::PATH_CAPABILITIES, $params, $opts);
236
+ }
237
+
238
+ /**
239
+ * @param string $id the ID of the account to which the capability belongs
240
+ * @param string $capabilityId the ID of the capability to retrieve
241
+ * @param null|array $params
242
+ * @param null|array|string $opts
243
+ *
244
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
245
+ *
246
+ * @return \Stripe\Capability
247
+ */
248
+ public static function retrieveCapability($id, $capabilityId, $params = null, $opts = null)
249
+ {
250
+ return self::_retrieveNestedResource($id, static::PATH_CAPABILITIES, $capabilityId, $params, $opts);
251
+ }
252
+
253
+ /**
254
+ * @param string $id the ID of the account to which the capability belongs
255
+ * @param string $capabilityId the ID of the capability to update
256
+ * @param null|array $params
257
+ * @param null|array|string $opts
258
+ *
259
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
260
+ *
261
+ * @return \Stripe\Capability
262
+ */
263
+ public static function updateCapability($id, $capabilityId, $params = null, $opts = null)
264
+ {
265
+ return self::_updateNestedResource($id, static::PATH_CAPABILITIES, $capabilityId, $params, $opts);
266
+ }
267
+
268
+ const PATH_EXTERNAL_ACCOUNTS = '/external_accounts';
269
+
270
+ /**
271
+ * @param string $id the ID of the account on which to retrieve the external accounts
272
+ * @param null|array $params
273
+ * @param null|array|string $opts
274
+ *
275
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
276
+ *
277
+ * @return \Stripe\Collection the list of external accounts (BankAccount or Card)
278
+ */
279
+ public static function allExternalAccounts($id, $params = null, $opts = null)
280
+ {
281
+ return self::_allNestedResources($id, static::PATH_EXTERNAL_ACCOUNTS, $params, $opts);
282
+ }
283
+
284
+ /**
285
+ * @param string $id the ID of the account on which to create the external account
286
+ * @param null|array $params
287
+ * @param null|array|string $opts
288
+ *
289
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
290
+ *
291
+ * @return \Stripe\BankAccount|\Stripe\Card
292
+ */
293
+ public static function createExternalAccount($id, $params = null, $opts = null)
294
+ {
295
+ return self::_createNestedResource($id, static::PATH_EXTERNAL_ACCOUNTS, $params, $opts);
296
+ }
297
+
298
+ /**
299
+ * @param string $id the ID of the account to which the external account belongs
300
+ * @param string $externalAccountId the ID of the external account to delete
301
+ * @param null|array $params
302
+ * @param null|array|string $opts
303
+ *
304
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
305
+ *
306
+ * @return \Stripe\BankAccount|\Stripe\Card
307
+ */
308
+ public static function deleteExternalAccount($id, $externalAccountId, $params = null, $opts = null)
309
+ {
310
+ return self::_deleteNestedResource($id, static::PATH_EXTERNAL_ACCOUNTS, $externalAccountId, $params, $opts);
311
+ }
312
+
313
+ /**
314
+ * @param string $id the ID of the account to which the external account belongs
315
+ * @param string $externalAccountId the ID of the external account to retrieve
316
+ * @param null|array $params
317
+ * @param null|array|string $opts
318
+ *
319
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
320
+ *
321
+ * @return \Stripe\BankAccount|\Stripe\Card
322
+ */
323
+ public static function retrieveExternalAccount($id, $externalAccountId, $params = null, $opts = null)
324
+ {
325
+ return self::_retrieveNestedResource($id, static::PATH_EXTERNAL_ACCOUNTS, $externalAccountId, $params, $opts);
326
+ }
327
+
328
+ /**
329
+ * @param string $id the ID of the account to which the external account belongs
330
+ * @param string $externalAccountId the ID of the external account to update
331
+ * @param null|array $params
332
+ * @param null|array|string $opts
333
+ *
334
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
335
+ *
336
+ * @return \Stripe\BankAccount|\Stripe\Card
337
+ */
338
+ public static function updateExternalAccount($id, $externalAccountId, $params = null, $opts = null)
339
+ {
340
+ return self::_updateNestedResource($id, static::PATH_EXTERNAL_ACCOUNTS, $externalAccountId, $params, $opts);
341
+ }
342
+
343
+ const PATH_LOGIN_LINKS = '/login_links';
344
+
345
+ /**
346
+ * @param string $id the ID of the account on which to create the login link
347
+ * @param null|array $params
348
+ * @param null|array|string $opts
349
+ *
350
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
351
+ *
352
+ * @return \Stripe\LoginLink
353
+ */
354
+ public static function createLoginLink($id, $params = null, $opts = null)
355
+ {
356
+ return self::_createNestedResource($id, static::PATH_LOGIN_LINKS, $params, $opts);
357
+ }
358
+
359
+ const PATH_PERSONS = '/persons';
360
+
361
+ /**
362
+ * @param string $id the ID of the account on which to retrieve the persons
363
+ * @param null|array $params
364
+ * @param null|array|string $opts
365
+ *
366
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
367
+ *
368
+ * @return \Stripe\Collection the list of persons
369
+ */
370
+ public static function allPersons($id, $params = null, $opts = null)
371
+ {
372
+ return self::_allNestedResources($id, static::PATH_PERSONS, $params, $opts);
373
+ }
374
+
375
+ /**
376
+ * @param string $id the ID of the account on which to create the person
377
+ * @param null|array $params
378
+ * @param null|array|string $opts
379
+ *
380
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
381
+ *
382
+ * @return \Stripe\Person
383
+ */
384
+ public static function createPerson($id, $params = null, $opts = null)
385
+ {
386
+ return self::_createNestedResource($id, static::PATH_PERSONS, $params, $opts);
387
+ }
388
+
389
+ /**
390
+ * @param string $id the ID of the account to which the person belongs
391
+ * @param string $personId the ID of the person to delete
392
+ * @param null|array $params
393
+ * @param null|array|string $opts
394
+ *
395
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
396
+ *
397
+ * @return \Stripe\Person
398
+ */
399
+ public static function deletePerson($id, $personId, $params = null, $opts = null)
400
+ {
401
+ return self::_deleteNestedResource($id, static::PATH_PERSONS, $personId, $params, $opts);
402
+ }
403
+
404
+ /**
405
+ * @param string $id the ID of the account to which the person belongs
406
+ * @param string $personId the ID of the person to retrieve
407
+ * @param null|array $params
408
+ * @param null|array|string $opts
409
+ *
410
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
411
+ *
412
+ * @return \Stripe\Person
413
+ */
414
+ public static function retrievePerson($id, $personId, $params = null, $opts = null)
415
+ {
416
+ return self::_retrieveNestedResource($id, static::PATH_PERSONS, $personId, $params, $opts);
417
+ }
418
+
419
+ /**
420
+ * @param string $id the ID of the account to which the person belongs
421
+ * @param string $personId the ID of the person to update
422
+ * @param null|array $params
423
+ * @param null|array|string $opts
424
+ *
425
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
426
+ *
427
+ * @return \Stripe\Person
428
+ */
429
+ public static function updatePerson($id, $personId, $params = null, $opts = null)
430
+ {
431
+ return self::_updateNestedResource($id, static::PATH_PERSONS, $personId, $params, $opts);
432
+ }
433
+ }
lib/stripe-php/lib/AccountLink.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Account Links are the means by which a Connect platform grants a connected
9
+ * account permission to access Stripe-hosted applications, such as Connect
10
+ * Onboarding.
11
+ *
12
+ * Related guide: <a
13
+ * href="https://stripe.com/docs/connect/connect-onboarding">Connect
14
+ * Onboarding</a>.
15
+ *
16
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
17
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
18
+ * @property int $expires_at The timestamp at which this account link will expire.
19
+ * @property string $url The URL for the account link.
20
+ */
21
+ class AccountLink extends ApiResource
22
+ {
23
+ const OBJECT_NAME = 'account_link';
24
+
25
+ use ApiOperations\Create;
26
+ }
lib/stripe-php/lib/AlipayAccount.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Class AlipayAccount.
7
+ *
8
+ * @deprecated Alipay accounts are deprecated. Please use the sources API instead.
9
+ * @see https://stripe.com/docs/sources/alipay
10
+ */
11
+ class AlipayAccount extends ApiResource
12
+ {
13
+ const OBJECT_NAME = 'alipay_account';
14
+
15
+ use ApiOperations\Delete;
16
+ use ApiOperations\Update;
17
+
18
+ /**
19
+ * @return string The instance URL for this resource. It needs to be special
20
+ * cased because it doesn't fit into the standard resource pattern.
21
+ */
22
+ public function instanceUrl()
23
+ {
24
+ if ($this['customer']) {
25
+ $base = Customer::classUrl();
26
+ $parent = $this['customer'];
27
+ $path = 'sources';
28
+ } else {
29
+ $msg = 'Alipay accounts cannot be accessed without a customer ID.';
30
+
31
+ throw new Exception\UnexpectedValueException($msg);
32
+ }
33
+ $parentExtn = \urlencode(Util\Util::utf8($parent));
34
+ $extn = \urlencode(Util\Util::utf8($this['id']));
35
+
36
+ return "{$base}/{$parentExtn}/{$path}/{$extn}";
37
+ }
38
+
39
+ /**
40
+ * @param array|string $_id
41
+ * @param null|array|string $_opts
42
+ *
43
+ * @throws \Stripe\Exception\BadMethodCallException
44
+ *
45
+ * @deprecated Alipay accounts are deprecated. Please use the sources API instead.
46
+ * @see https://stripe.com/docs/sources/alipay
47
+ */
48
+ public static function retrieve($_id, $_opts = null)
49
+ {
50
+ $msg = 'Alipay accounts cannot be retrieved without a customer ID. ' .
51
+ 'Retrieve an Alipay account using `Customer::retrieveSource(' .
52
+ "'customer_id', 'alipay_account_id')`.";
53
+
54
+ throw new Exception\BadMethodCallException($msg);
55
+ }
56
+
57
+ /**
58
+ * @param string $_id
59
+ * @param null|array $_params
60
+ * @param null|array|string $_options
61
+ *
62
+ * @throws \Stripe\Exception\BadMethodCallException
63
+ *
64
+ * @deprecated Alipay accounts are deprecated. Please use the sources API instead.
65
+ * @see https://stripe.com/docs/sources/alipay
66
+ */
67
+ public static function update($_id, $_params = null, $_options = null)
68
+ {
69
+ $msg = 'Alipay accounts cannot be updated without a customer ID. ' .
70
+ 'Update an Alipay account using `Customer::updateSource(' .
71
+ "'customer_id', 'alipay_account_id', \$updateParams)`.";
72
+
73
+ throw new Exception\BadMethodCallException($msg);
74
+ }
75
+ }
lib/stripe-php/lib/ApiOperations/All.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\ApiOperations;
4
+
5
+ /**
6
+ * Trait for listable resources. Adds a `all()` static method to the class.
7
+ *
8
+ * This trait should only be applied to classes that derive from StripeObject.
9
+ */
10
+ trait All
11
+ {
12
+ /**
13
+ * @param null|array $params
14
+ * @param null|array|string $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\Collection of ApiResources
19
+ */
20
+ public static function all($params = null, $opts = null)
21
+ {
22
+ self::_validateParams($params);
23
+ $url = static::classUrl();
24
+
25
+ list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
26
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
27
+ if (!($obj instanceof \Stripe\Collection)) {
28
+ throw new \Stripe\Exception\UnexpectedValueException(
29
+ 'Expected type ' . \Stripe\Collection::class . ', got "' . \get_class($obj) . '" instead.'
30
+ );
31
+ }
32
+ $obj->setLastResponse($response);
33
+ $obj->setFilters($params);
34
+
35
+ return $obj;
36
+ }
37
+ }
lib/stripe-php/lib/ApiOperations/Create.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\ApiOperations;
4
+
5
+ /**
6
+ * Trait for creatable resources. Adds a `create()` static method to the class.
7
+ *
8
+ * This trait should only be applied to classes that derive from StripeObject.
9
+ */
10
+ trait Create
11
+ {
12
+ /**
13
+ * @param null|array $params
14
+ * @param null|array|string $options
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return static the created resource
19
+ */
20
+ public static function create($params = null, $options = null)
21
+ {
22
+ self::_validateParams($params);
23
+ $url = static::classUrl();
24
+
25
+ list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
26
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
27
+ $obj->setLastResponse($response);
28
+
29
+ return $obj;
30
+ }
31
+ }
lib/stripe-php/lib/ApiOperations/Delete.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\ApiOperations;
4
+
5
+ /**
6
+ * Trait for deletable resources. Adds a `delete()` method to the class.
7
+ *
8
+ * This trait should only be applied to classes that derive from StripeObject.
9
+ */
10
+ trait Delete
11
+ {
12
+ /**
13
+ * @param null|array $params
14
+ * @param null|array|string $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return static the deleted resource
19
+ */
20
+ public function delete($params = null, $opts = null)
21
+ {
22
+ self::_validateParams($params);
23
+
24
+ $url = $this->instanceUrl();
25
+ list($response, $opts) = $this->_request('delete', $url, $params, $opts);
26
+ $this->refreshFrom($response, $opts);
27
+
28
+ return $this;
29
+ }
30
+ }
lib/stripe-php/lib/ApiOperations/NestedResource.php ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\ApiOperations;
4
+
5
+ /**
6
+ * Trait for resources that have nested resources.
7
+ *
8
+ * This trait should only be applied to classes that derive from StripeObject.
9
+ */
10
+ trait NestedResource
11
+ {
12
+ /**
13
+ * @param string $method
14
+ * @param string $url
15
+ * @param null|array $params
16
+ * @param null|array|string $options
17
+ *
18
+ * @return \Stripe\StripeObject
19
+ */
20
+ protected static function _nestedResourceOperation($method, $url, $params = null, $options = null)
21
+ {
22
+ self::_validateParams($params);
23
+
24
+ list($response, $opts) = static::_staticRequest($method, $url, $params, $options);
25
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
26
+ $obj->setLastResponse($response);
27
+
28
+ return $obj;
29
+ }
30
+
31
+ /**
32
+ * @param string $id
33
+ * @param string $nestedPath
34
+ * @param null|string $nestedId
35
+ *
36
+ * @return string
37
+ */
38
+ protected static function _nestedResourceUrl($id, $nestedPath, $nestedId = null)
39
+ {
40
+ $url = static::resourceUrl($id) . $nestedPath;
41
+ if (null !== $nestedId) {
42
+ $url .= "/{$nestedId}";
43
+ }
44
+
45
+ return $url;
46
+ }
47
+
48
+ /**
49
+ * @param string $id
50
+ * @param string $nestedPath
51
+ * @param null|array $params
52
+ * @param null|array|string $options
53
+ *
54
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
55
+ *
56
+ * @return \Stripe\StripeObject
57
+ */
58
+ protected static function _createNestedResource($id, $nestedPath, $params = null, $options = null)
59
+ {
60
+ $url = static::_nestedResourceUrl($id, $nestedPath);
61
+
62
+ return self::_nestedResourceOperation('post', $url, $params, $options);
63
+ }
64
+
65
+ /**
66
+ * @param string $id
67
+ * @param string $nestedPath
68
+ * @param null|string $nestedId
69
+ * @param null|array $params
70
+ * @param null|array|string $options
71
+ *
72
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
73
+ *
74
+ * @return \Stripe\StripeObject
75
+ */
76
+ protected static function _retrieveNestedResource($id, $nestedPath, $nestedId, $params = null, $options = null)
77
+ {
78
+ $url = static::_nestedResourceUrl($id, $nestedPath, $nestedId);
79
+
80
+ return self::_nestedResourceOperation('get', $url, $params, $options);
81
+ }
82
+
83
+ /**
84
+ * @param string $id
85
+ * @param string $nestedPath
86
+ * @param null|string $nestedId
87
+ * @param null|array $params
88
+ * @param null|array|string $options
89
+ *
90
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
91
+ *
92
+ * @return \Stripe\StripeObject
93
+ */
94
+ protected static function _updateNestedResource($id, $nestedPath, $nestedId, $params = null, $options = null)
95
+ {
96
+ $url = static::_nestedResourceUrl($id, $nestedPath, $nestedId);
97
+
98
+ return self::_nestedResourceOperation('post', $url, $params, $options);
99
+ }
100
+
101
+ /**
102
+ * @param string $id
103
+ * @param string $nestedPath
104
+ * @param null|string $nestedId
105
+ * @param null|array $params
106
+ * @param null|array|string $options
107
+ *
108
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
109
+ *
110
+ * @return \Stripe\StripeObject
111
+ */
112
+ protected static function _deleteNestedResource($id, $nestedPath, $nestedId, $params = null, $options = null)
113
+ {
114
+ $url = static::_nestedResourceUrl($id, $nestedPath, $nestedId);
115
+
116
+ return self::_nestedResourceOperation('delete', $url, $params, $options);
117
+ }
118
+
119
+ /**
120
+ * @param string $id
121
+ * @param string $nestedPath
122
+ * @param null|array $params
123
+ * @param null|array|string $options
124
+ *
125
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
126
+ *
127
+ * @return \Stripe\StripeObject
128
+ */
129
+ protected static function _allNestedResources($id, $nestedPath, $params = null, $options = null)
130
+ {
131
+ $url = static::_nestedResourceUrl($id, $nestedPath);
132
+
133
+ return self::_nestedResourceOperation('get', $url, $params, $options);
134
+ }
135
+ }
lib/stripe-php/lib/ApiOperations/Request.php ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\ApiOperations;
4
+
5
+ /**
6
+ * Trait for resources that need to make API requests.
7
+ *
8
+ * This trait should only be applied to classes that derive from StripeObject.
9
+ */
10
+ trait Request
11
+ {
12
+ /**
13
+ * @param null|array|mixed $params The list of parameters to validate
14
+ *
15
+ * @throws \Stripe\Exception\InvalidArgumentException if $params exists and is not an array
16
+ */
17
+ protected static function _validateParams($params = null)
18
+ {
19
+ if ($params && !\is_array($params)) {
20
+ $message = 'You must pass an array as the first argument to Stripe API '
21
+ . 'method calls. (HINT: an example call to create a charge '
22
+ . "would be: \"Stripe\\Charge::create(['amount' => 100, "
23
+ . "'currency' => 'usd', 'source' => 'tok_1234'])\")";
24
+
25
+ throw new \Stripe\Exception\InvalidArgumentException($message);
26
+ }
27
+ }
28
+
29
+ /**
30
+ * @param string $method HTTP method ('get', 'post', etc.)
31
+ * @param string $url URL for the request
32
+ * @param array $params list of parameters for the request
33
+ * @param null|array|string $options
34
+ *
35
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
36
+ *
37
+ * @return array tuple containing (the JSON response, $options)
38
+ */
39
+ protected function _request($method, $url, $params = [], $options = null)
40
+ {
41
+ $opts = $this->_opts->merge($options);
42
+ list($resp, $options) = static::_staticRequest($method, $url, $params, $opts);
43
+ $this->setLastResponse($resp);
44
+
45
+ return [$resp->json, $options];
46
+ }
47
+
48
+ /**
49
+ * @param string $method HTTP method ('get', 'post', etc.)
50
+ * @param string $url URL for the request
51
+ * @param callable $readBodyChunk function that will receive chunks of data from a successful request body
52
+ * @param array $params list of parameters for the request
53
+ * @param null|array|string $options
54
+ *
55
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
56
+ *
57
+ * @return array tuple containing (the JSON response, $options)
58
+ */
59
+ protected function _requestStream($method, $url, $readBodyChunk, $params = [], $options = null)
60
+ {
61
+ $opts = $this->_opts->merge($options);
62
+ static::_staticStreamingRequest($method, $url, $readBodyChunk, $params, $opts);
63
+ }
64
+
65
+ /**
66
+ * @param string $method HTTP method ('get', 'post', etc.)
67
+ * @param string $url URL for the request
68
+ * @param array $params list of parameters for the request
69
+ * @param null|array|string $options
70
+ *
71
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
72
+ *
73
+ * @return array tuple containing (the JSON response, $options)
74
+ */
75
+ protected static function _staticRequest($method, $url, $params, $options)
76
+ {
77
+ $opts = \Stripe\Util\RequestOptions::parse($options);
78
+ $baseUrl = isset($opts->apiBase) ? $opts->apiBase : static::baseUrl();
79
+ $requestor = new \Stripe\ApiRequestor($opts->apiKey, $baseUrl);
80
+ list($response, $opts->apiKey) = $requestor->request($method, $url, $params, $opts->headers);
81
+ $opts->discardNonPersistentHeaders();
82
+
83
+ return [$response, $opts];
84
+ }
85
+
86
+ /**
87
+ * @param string $method HTTP method ('get', 'post', etc.)
88
+ * @param string $url URL for the request
89
+ * @param callable $readBodyChunk function that will receive chunks of data from a successful request body
90
+ * @param array $params list of parameters for the request
91
+ * @param null|array|string $options
92
+ *
93
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
94
+ */
95
+ protected static function _staticStreamingRequest($method, $url, $readBodyChunk, $params, $options)
96
+ {
97
+ $opts = \Stripe\Util\RequestOptions::parse($options);
98
+ $baseUrl = isset($opts->apiBase) ? $opts->apiBase : static::baseUrl();
99
+ $requestor = new \Stripe\ApiRequestor($opts->apiKey, $baseUrl);
100
+ $requestor->requestStream($method, $url, $readBodyChunk, $params, $opts->headers);
101
+ }
102
+ }
lib/stripe-php/lib/ApiOperations/Retrieve.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\ApiOperations;
4
+
5
+ /**
6
+ * Trait for retrievable resources. Adds a `retrieve()` static method to the
7
+ * class.
8
+ *
9
+ * This trait should only be applied to classes that derive from StripeObject.
10
+ */
11
+ trait Retrieve
12
+ {
13
+ /**
14
+ * @param array|string $id the ID of the API resource to retrieve,
15
+ * or an options array containing an `id` key
16
+ * @param null|array|string $opts
17
+ *
18
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
19
+ *
20
+ * @return static
21
+ */
22
+ public static function retrieve($id, $opts = null)
23
+ {
24
+ $opts = \Stripe\Util\RequestOptions::parse($opts);
25
+ $instance = new static($id, $opts);
26
+ $instance->refresh();
27
+
28
+ return $instance;
29
+ }
30
+ }
lib/stripe-php/lib/ApiOperations/Update.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\ApiOperations;
4
+
5
+ /**
6
+ * Trait for updatable resources. Adds an `update()` static method and a
7
+ * `save()` method to the class.
8
+ *
9
+ * This trait should only be applied to classes that derive from StripeObject.
10
+ */
11
+ trait Update
12
+ {
13
+ /**
14
+ * @param string $id the ID of the resource to update
15
+ * @param null|array $params
16
+ * @param null|array|string $opts
17
+ *
18
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
19
+ *
20
+ * @return static the updated resource
21
+ */
22
+ public static function update($id, $params = null, $opts = null)
23
+ {
24
+ self::_validateParams($params);
25
+ $url = static::resourceUrl($id);
26
+
27
+ list($response, $opts) = static::_staticRequest('post', $url, $params, $opts);
28
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
29
+ $obj->setLastResponse($response);
30
+
31
+ return $obj;
32
+ }
33
+
34
+ /**
35
+ * @param null|array|string $opts
36
+ *
37
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
38
+ *
39
+ * @return static the saved resource
40
+ */
41
+ public function save($opts = null)
42
+ {
43
+ $params = $this->serializeParameters();
44
+ if (\count($params) > 0) {
45
+ $url = $this->instanceUrl();
46
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
47
+ $this->refreshFrom($response, $opts);
48
+ }
49
+
50
+ return $this;
51
+ }
52
+ }
lib/stripe-php/lib/ApiRequestor.php ADDED
@@ -0,0 +1,621 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
20
+ /**
21
+ * @var HttpClient\ClientInterface
22
+ */
23
+ private static $_httpClient;
24
+ /**
25
+ * @var HttpClient\StreamingClientInterface
26
+ */
27
+ private static $_streamingHttpClient;
28
+
29
+ /**
30
+ * @var RequestTelemetry
31
+ */
32
+ private static $requestTelemetry;
33
+
34
+ private static $OPTIONS_KEYS = ['api_key', 'idempotency_key', 'stripe_account', 'stripe_version', 'api_base'];
35
+
36
+ /**
37
+ * ApiRequestor constructor.
38
+ *
39
+ * @param null|string $apiKey
40
+ * @param null|string $apiBase
41
+ */
42
+ public function __construct($apiKey = null, $apiBase = null)
43
+ {
44
+ $this->_apiKey = $apiKey;
45
+ if (!$apiBase) {
46
+ $apiBase = Stripe::$apiBase;
47
+ }
48
+ $this->_apiBase = $apiBase;
49
+ }
50
+
51
+ /**
52
+ * Creates a telemetry json blob for use in 'X-Stripe-Client-Telemetry' headers.
53
+ *
54
+ * @static
55
+ *
56
+ * @param RequestTelemetry $requestTelemetry
57
+ *
58
+ * @return string
59
+ */
60
+ private static function _telemetryJson($requestTelemetry)
61
+ {
62
+ $payload = [
63
+ 'last_request_metrics' => [
64
+ 'request_id' => $requestTelemetry->requestId,
65
+ 'request_duration_ms' => $requestTelemetry->requestDuration,
66
+ ],
67
+ ];
68
+
69
+ $result = \json_encode($payload);
70
+ if (false !== $result) {
71
+ return $result;
72
+ }
73
+ Stripe::getLogger()->error('Serializing telemetry payload failed!');
74
+
75
+ return '{}';
76
+ }
77
+
78
+ /**
79
+ * @static
80
+ *
81
+ * @param ApiResource|array|bool|mixed $d
82
+ *
83
+ * @return ApiResource|array|mixed|string
84
+ */
85
+ private static function _encodeObjects($d)
86
+ {
87
+ if ($d instanceof ApiResource) {
88
+ return Util\Util::utf8($d->id);
89
+ }
90
+ if (true === $d) {
91
+ return 'true';
92
+ }
93
+ if (false === $d) {
94
+ return 'false';
95
+ }
96
+ if (\is_array($d)) {
97
+ $res = [];
98
+ foreach ($d as $k => $v) {
99
+ $res[$k] = self::_encodeObjects($v);
100
+ }
101
+
102
+ return $res;
103
+ }
104
+
105
+ return Util\Util::utf8($d);
106
+ }
107
+
108
+ /**
109
+ * @param string $method
110
+ * @param string $url
111
+ * @param null|array $params
112
+ * @param null|array $headers
113
+ *
114
+ * @throws Exception\ApiErrorException
115
+ *
116
+ * @return array tuple containing (ApiReponse, API key)
117
+ */
118
+ public function request($method, $url, $params = null, $headers = null)
119
+ {
120
+ $params = $params ?: [];
121
+ $headers = $headers ?: [];
122
+ list($rbody, $rcode, $rheaders, $myApiKey) =
123
+ $this->_requestRaw($method, $url, $params, $headers);
124
+ $json = $this->_interpretResponse($rbody, $rcode, $rheaders);
125
+ $resp = new ApiResponse($rbody, $rcode, $rheaders, $json);
126
+
127
+ return [$resp, $myApiKey];
128
+ }
129
+
130
+ /**
131
+ * @param string $method
132
+ * @param string $url
133
+ * @param callable $readBodyChunkCallable
134
+ * @param null|array $params
135
+ * @param null|array $headers
136
+ *
137
+ * @throws Exception\ApiErrorException
138
+ *
139
+ * @return array tuple containing (ApiReponse, API key)
140
+ */
141
+ public function requestStream($method, $url, $readBodyChunkCallable, $params = null, $headers = null)
142
+ {
143
+ $params = $params ?: [];
144
+ $headers = $headers ?: [];
145
+ list($rbody, $rcode, $rheaders, $myApiKey) =
146
+ $this->_requestRawStreaming($method, $url, $params, $headers, $readBodyChunkCallable);
147
+ if ($rcode >= 300) {
148
+ $this->_interpretResponse($rbody, $rcode, $rheaders);
149
+ }
150
+ }
151
+
152
+ /**
153
+ * @param string $rbody a JSON string
154
+ * @param int $rcode
155
+ * @param array $rheaders
156
+ * @param array $resp
157
+ *
158
+ * @throws Exception\UnexpectedValueException
159
+ * @throws Exception\ApiErrorException
160
+ */
161
+ public function handleErrorResponse($rbody, $rcode, $rheaders, $resp)
162
+ {
163
+ if (!\is_array($resp) || !isset($resp['error'])) {
164
+ $msg = "Invalid response object from API: {$rbody} "
165
+ . "(HTTP response code was {$rcode})";
166
+
167
+ throw new Exception\UnexpectedValueException($msg);
168
+ }
169
+
170
+ $errorData = $resp['error'];
171
+
172
+ $error = null;
173
+ if (\is_string($errorData)) {
174
+ $error = self::_specificOAuthError($rbody, $rcode, $rheaders, $resp, $errorData);
175
+ }
176
+ if (!$error) {
177
+ $error = self::_specificAPIError($rbody, $rcode, $rheaders, $resp, $errorData);
178
+ }
179
+
180
+ throw $error;
181
+ }
182
+
183
+ /**
184
+ * @static
185
+ *
186
+ * @param string $rbody
187
+ * @param int $rcode
188
+ * @param array $rheaders
189
+ * @param array $resp
190
+ * @param array $errorData
191
+ *
192
+ * @return Exception\ApiErrorException
193
+ */
194
+ private static function _specificAPIError($rbody, $rcode, $rheaders, $resp, $errorData)
195
+ {
196
+ $msg = isset($errorData['message']) ? $errorData['message'] : null;
197
+ $param = isset($errorData['param']) ? $errorData['param'] : null;
198
+ $code = isset($errorData['code']) ? $errorData['code'] : null;
199
+ $type = isset($errorData['type']) ? $errorData['type'] : null;
200
+ $declineCode = isset($errorData['decline_code']) ? $errorData['decline_code'] : null;
201
+
202
+ switch ($rcode) {
203
+ case 400:
204
+ // 'rate_limit' code is deprecated, but left here for backwards compatibility
205
+ // for API versions earlier than 2015-09-08
206
+ if ('rate_limit' === $code) {
207
+ return Exception\RateLimitException::factory($msg, $rcode, $rbody, $resp, $rheaders, $code, $param);
208
+ }
209
+ if ('idempotency_error' === $type) {
210
+ return Exception\IdempotencyException::factory($msg, $rcode, $rbody, $resp, $rheaders, $code);
211
+ }
212
+
213
+ // no break
214
+ case 404:
215
+ return Exception\InvalidRequestException::factory($msg, $rcode, $rbody, $resp, $rheaders, $code, $param);
216
+
217
+ case 401:
218
+ return Exception\AuthenticationException::factory($msg, $rcode, $rbody, $resp, $rheaders, $code);
219
+
220
+ case 402:
221
+ return Exception\CardException::factory($msg, $rcode, $rbody, $resp, $rheaders, $code, $declineCode, $param);
222
+
223
+ case 403:
224
+ return Exception\PermissionException::factory($msg, $rcode, $rbody, $resp, $rheaders, $code);
225
+
226
+ case 429:
227
+ return Exception\RateLimitException::factory($msg, $rcode, $rbody, $resp, $rheaders, $code, $param);
228
+
229
+ default:
230
+ return Exception\UnknownApiErrorException::factory($msg, $rcode, $rbody, $resp, $rheaders, $code);
231
+ }
232
+ }
233
+
234
+ /**
235
+ * @static
236
+ *
237
+ * @param bool|string $rbody
238
+ * @param int $rcode
239
+ * @param array $rheaders
240
+ * @param array $resp
241
+ * @param string $errorCode
242
+ *
243
+ * @return Exception\OAuth\OAuthErrorException
244
+ */
245
+ private static function _specificOAuthError($rbody, $rcode, $rheaders, $resp, $errorCode)
246
+ {
247
+ $description = isset($resp['error_description']) ? $resp['error_description'] : $errorCode;
248
+
249
+ switch ($errorCode) {
250
+ case 'invalid_client':
251
+ return Exception\OAuth\InvalidClientException::factory($description, $rcode, $rbody, $resp, $rheaders, $errorCode);
252
+
253
+ case 'invalid_grant':
254
+ return Exception\OAuth\InvalidGrantException::factory($description, $rcode, $rbody, $resp, $rheaders, $errorCode);
255
+
256
+ case 'invalid_request':
257
+ return Exception\OAuth\InvalidRequestException::factory($description, $rcode, $rbody, $resp, $rheaders, $errorCode);
258
+
259
+ case 'invalid_scope':
260
+ return Exception\OAuth\InvalidScopeException::factory($description, $rcode, $rbody, $resp, $rheaders, $errorCode);
261
+
262
+ case 'unsupported_grant_type':
263
+ return Exception\OAuth\UnsupportedGrantTypeException::factory($description, $rcode, $rbody, $resp, $rheaders, $errorCode);
264
+
265
+ case 'unsupported_response_type':
266
+ return Exception\OAuth\UnsupportedResponseTypeException::factory($description, $rcode, $rbody, $resp, $rheaders, $errorCode);
267
+
268
+ default:
269
+ return Exception\OAuth\UnknownOAuthErrorException::factory($description, $rcode, $rbody, $resp, $rheaders, $errorCode);
270
+ }
271
+ }
272
+
273
+ /**
274
+ * @static
275
+ *
276
+ * @param null|array $appInfo
277
+ *
278
+ * @return null|string
279
+ */
280
+ private static function _formatAppInfo($appInfo)
281
+ {
282
+ if (null !== $appInfo) {
283
+ $string = $appInfo['name'];
284
+ if (null !== $appInfo['version']) {
285
+ $string .= '/' . $appInfo['version'];
286
+ }
287
+ if (null !== $appInfo['url']) {
288
+ $string .= ' (' . $appInfo['url'] . ')';
289
+ }
290
+
291
+ return $string;
292
+ }
293
+
294
+ return null;
295
+ }
296
+
297
+ /**
298
+ * @static
299
+ *
300
+ * @param string $disabledFunctionsOutput - String value of the 'disable_function' setting, as output by \ini_get('disable_functions')
301
+ * @param string $functionName - Name of the function we are interesting in seeing whether or not it is disabled
302
+ * @param mixed $disableFunctionsOutput
303
+ *
304
+ * @return bool
305
+ */
306
+ private static function _isDisabled($disableFunctionsOutput, $functionName)
307
+ {
308
+ $disabledFunctions = \explode(',', $disableFunctionsOutput);
309
+ foreach ($disabledFunctions as $disabledFunction) {
310
+ if (\trim($disabledFunction) === $functionName) {
311
+ return true;
312
+ }
313
+ }
314
+
315
+ return false;
316
+ }
317
+
318
+ /**
319
+ * @static
320
+ *
321
+ * @param string $apiKey
322
+ * @param null $clientInfo
323
+ *
324
+ * @return array
325
+ */
326
+ private static function _defaultHeaders($apiKey, $clientInfo = null)
327
+ {
328
+ $uaString = 'Stripe/v1 PhpBindings/' . Stripe::VERSION;
329
+
330
+ $langVersion = \PHP_VERSION;
331
+ $uname_disabled = static::_isDisabled(\ini_get('disable_functions'), 'php_uname');
332
+ $uname = $uname_disabled ? '(disabled)' : \php_uname();
333
+
334
+ $appInfo = Stripe::getAppInfo();
335
+ $ua = [
336
+ 'bindings_version' => Stripe::VERSION,
337
+ 'lang' => 'php',
338
+ 'lang_version' => $langVersion,
339
+ 'publisher' => 'stripe',
340
+ 'uname' => $uname,
341
+ ];
342
+ if ($clientInfo) {
343
+ $ua = \array_merge($clientInfo, $ua);
344
+ }
345
+ if (null !== $appInfo) {
346
+ $uaString .= ' ' . self::_formatAppInfo($appInfo);
347
+ $ua['application'] = $appInfo;
348
+ }
349
+
350
+ return [
351
+ 'X-Stripe-Client-User-Agent' => \json_encode($ua),
352
+ 'User-Agent' => $uaString,
353
+ 'Authorization' => 'Bearer ' . $apiKey,
354
+ ];
355
+ }
356
+
357
+ private function _prepareRequest($method, $url, $params, $headers)
358
+ {
359
+ $myApiKey = $this->_apiKey;
360
+ if (!$myApiKey) {
361
+ $myApiKey = Stripe::$apiKey;
362
+ }
363
+
364
+ if (!$myApiKey) {
365
+ $msg = 'No API key provided. (HINT: set your API key using '
366
+ . '"Stripe::setApiKey(<API-KEY>)". You can generate API keys from '
367
+ . 'the Stripe web interface. See https://stripe.com/api for '
368
+ . 'details, or email support@stripe.com if you have any questions.';
369
+
370
+ throw new Exception\AuthenticationException($msg);
371
+ }
372
+
373
+ // Clients can supply arbitrary additional keys to be included in the
374
+ // X-Stripe-Client-User-Agent header via the optional getUserAgentInfo()
375
+ // method
376
+ $clientUAInfo = null;
377
+ if (\method_exists($this->httpClient(), 'getUserAgentInfo')) {
378
+ $clientUAInfo = $this->httpClient()->getUserAgentInfo();
379
+ }
380
+
381
+ if ($params && \is_array($params)) {
382
+ $optionKeysInParams = \array_filter(
383
+ static::$OPTIONS_KEYS,
384
+ function ($key) use ($params) {
385
+ return \array_key_exists($key, $params);
386
+ }
387
+ );
388
+ if (\count($optionKeysInParams) > 0) {
389
+ $message = \sprintf('Options found in $params: %s. Options should '
390
+ . 'be passed in their own array after $params. (HINT: pass an '
391
+ . 'empty array to $params if you do not have any.)', \implode(', ', $optionKeysInParams));
392
+ \trigger_error($message, \E_USER_WARNING);
393
+ }
394
+ }
395
+
396
+ $absUrl = $this->_apiBase . $url;
397
+ $params = self::_encodeObjects($params);
398
+ $defaultHeaders = $this->_defaultHeaders($myApiKey, $clientUAInfo);
399
+ if (Stripe::$apiVersion) {
400
+ $defaultHeaders['Stripe-Version'] = Stripe::$apiVersion;
401
+ }
402
+
403
+ if (Stripe::$accountId) {
404
+ $defaultHeaders['Stripe-Account'] = Stripe::$accountId;
405
+ }
406
+
407
+ if (Stripe::$enableTelemetry && null !== self::$requestTelemetry) {
408
+ $defaultHeaders['X-Stripe-Client-Telemetry'] = self::_telemetryJson(self::$requestTelemetry);
409
+ }
410
+
411
+ $hasFile = false;
412
+ foreach ($params as $k => $v) {
413
+ if (\is_resource($v)) {
414
+ $hasFile = true;
415
+ $params[$k] = self::_processResourceParam($v);
416
+ } elseif ($v instanceof \CURLFile) {
417
+ $hasFile = true;
418
+ }
419
+ }
420
+
421
+ if ($hasFile) {
422
+ $defaultHeaders['Content-Type'] = 'multipart/form-data';
423
+ } else {
424
+ $defaultHeaders['Content-Type'] = 'application/x-www-form-urlencoded';
425
+ }
426
+
427
+ $combinedHeaders = \array_merge($defaultHeaders, $headers);
428
+ $rawHeaders = [];
429
+
430
+ foreach ($combinedHeaders as $header => $value) {
431
+ $rawHeaders[] = $header . ': ' . $value;
432
+ }
433
+
434
+ return [$absUrl, $rawHeaders, $params, $hasFile, $myApiKey];
435
+ }
436
+
437
+ /**
438
+ * @param string $method
439
+ * @param string $url
440
+ * @param array $params
441
+ * @param array $headers
442
+ *
443
+ * @throws Exception\AuthenticationException
444
+ * @throws Exception\ApiConnectionException
445
+ *
446
+ * @return array
447
+ */
448
+ private function _requestRaw($method, $url, $params, $headers)
449
+ {
450
+ list($absUrl, $rawHeaders, $params, $hasFile, $myApiKey) = $this->_prepareRequest($method, $url, $params, $headers);
451
+
452
+ $requestStartMs = Util\Util::currentTimeMillis();
453
+
454
+ list($rbody, $rcode, $rheaders) = $this->httpClient()->request(
455
+ $method,
456
+ $absUrl,
457
+ $rawHeaders,
458
+ $params,
459
+ $hasFile
460
+ );
461
+
462
+ if (isset($rheaders['request-id'])
463
+ && \is_string($rheaders['request-id'])
464
+ && \strlen($rheaders['request-id']) > 0) {
465
+ self::$requestTelemetry = new RequestTelemetry(
466
+ $rheaders['request-id'],
467
+ Util\Util::currentTimeMillis() - $requestStartMs
468
+ );
469
+ }
470
+
471
+ return [$rbody, $rcode, $rheaders, $myApiKey];
472
+ }
473
+
474
+ /**
475
+ * @param string $method
476
+ * @param string $url
477
+ * @param array $params
478
+ * @param array $headers
479
+ * @param callable $readBodyChunk
480
+ * @param mixed $readBodyChunkCallable
481
+ *
482
+ * @throws Exception\AuthenticationException
483
+ * @throws Exception\ApiConnectionException
484
+ *
485
+ * @return array
486
+ */
487
+ private function _requestRawStreaming($method, $url, $params, $headers, $readBodyChunkCallable)
488
+ {
489
+ list($absUrl, $rawHeaders, $params, $hasFile, $myApiKey) = $this->_prepareRequest($method, $url, $params, $headers);
490
+
491
+ $requestStartMs = Util\Util::currentTimeMillis();
492
+
493
+ list($rbody, $rcode, $rheaders) = $this->streamingHttpClient()->requestStream(
494
+ $method,
495
+ $absUrl,
496
+ $rawHeaders,
497
+ $params,
498
+ $hasFile,
499
+ $readBodyChunkCallable
500
+ );
501
+
502
+ if (isset($rheaders['request-id'])
503
+ && \is_string($rheaders['request-id'])
504
+ && \strlen($rheaders['request-id']) > 0) {
505
+ self::$requestTelemetry = new RequestTelemetry(
506
+ $rheaders['request-id'],
507
+ Util\Util::currentTimeMillis() - $requestStartMs
508
+ );
509
+ }
510
+
511
+ return [$rbody, $rcode, $rheaders, $myApiKey];
512
+ }
513
+
514
+ /**
515
+ * @param resource $resource
516
+ *
517
+ * @throws Exception\InvalidArgumentException
518
+ *
519
+ * @return \CURLFile|string
520
+ */
521
+ private function _processResourceParam($resource)
522
+ {
523
+ if ('stream' !== \get_resource_type($resource)) {
524
+ throw new Exception\InvalidArgumentException(
525
+ 'Attempted to upload a resource that is not a stream'
526
+ );
527
+ }
528
+
529
+ $metaData = \stream_get_meta_data($resource);
530
+ if ('plainfile' !== $metaData['wrapper_type']) {
531
+ throw new Exception\InvalidArgumentException(
532
+ 'Only plainfile resource streams are supported'
533
+ );
534
+ }
535
+
536
+ // We don't have the filename or mimetype, but the API doesn't care
537
+ return new \CURLFile($metaData['uri']);
538
+ }
539
+
540
+ /**
541
+ * @param string $rbody
542
+ * @param int $rcode
543
+ * @param array $rheaders
544
+ *
545
+ * @throws Exception\UnexpectedValueException
546
+ * @throws Exception\ApiErrorException
547
+ *
548
+ * @return array
549
+ */
550
+ private function _interpretResponse($rbody, $rcode, $rheaders)
551
+ {
552
+ $resp = \json_decode($rbody, true);
553
+ $jsonError = \json_last_error();
554
+ if (null === $resp && \JSON_ERROR_NONE !== $jsonError) {
555
+ $msg = "Invalid response body from API: {$rbody} "
556
+ . "(HTTP response code was {$rcode}, json_last_error() was {$jsonError})";
557
+
558
+ throw new Exception\UnexpectedValueException($msg, $rcode);
559
+ }
560
+
561
+ if ($rcode < 200 || $rcode >= 300) {
562
+ $this->handleErrorResponse($rbody, $rcode, $rheaders, $resp);
563
+ }
564
+
565
+ return $resp;
566
+ }
567
+
568
+ /**
569
+ * @static
570
+ *
571
+ * @param HttpClient\ClientInterface $client
572
+ */
573
+ public static function setHttpClient($client)
574
+ {
575
+ self::$_httpClient = $client;
576
+ }
577
+
578
+ /**
579
+ * @static
580
+ *
581
+ * @param HttpClient\StreamingClientInterface $client
582
+ */
583
+ public static function setStreamingHttpClient($client)
584
+ {
585
+ self::$_streamingHttpClient = $client;
586
+ }
587
+
588
+ /**
589
+ * @static
590
+ *
591
+ * Resets any stateful telemetry data
592
+ */
593
+ public static function resetTelemetry()
594
+ {
595
+ self::$requestTelemetry = null;
596
+ }
597
+
598
+ /**
599
+ * @return HttpClient\ClientInterface
600
+ */
601
+ private function httpClient()
602
+ {
603
+ if (!self::$_httpClient) {
604
+ self::$_httpClient = HttpClient\CurlClient::instance();
605
+ }
606
+
607
+ return self::$_httpClient;
608
+ }
609
+
610
+ /**
611
+ * @return HttpClient\StreamingClientInterface
612
+ */
613
+ private function streamingHttpClient()
614
+ {
615
+ if (!self::$_streamingHttpClient) {
616
+ self::$_streamingHttpClient = HttpClient\CurlClient::instance();
617
+ }
618
+
619
+ return self::$_streamingHttpClient;
620
+ }
621
+ }
lib/stripe-php/lib/ApiResource.php ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Class ApiResource.
7
+ */
8
+ abstract class ApiResource extends StripeObject
9
+ {
10
+ use ApiOperations\Request;
11
+
12
+ /**
13
+ * @return \Stripe\Util\Set A list of fields that can be their own type of
14
+ * API resource (say a nested card under an account for example), and if
15
+ * that resource is set, it should be transmitted to the API on a create or
16
+ * update. Doing so is not the default behavior because API resources
17
+ * should normally be persisted on their own RESTful endpoints.
18
+ */
19
+ public static function getSavedNestedResources()
20
+ {
21
+ static $savedNestedResources = null;
22
+ if (null === $savedNestedResources) {
23
+ $savedNestedResources = new Util\Set();
24
+ }
25
+
26
+ return $savedNestedResources;
27
+ }
28
+
29
+ /**
30
+ * @var bool A flag that can be set a behavior that will cause this
31
+ * resource to be encoded and sent up along with an update of its parent
32
+ * resource. This is usually not desirable because resources are updated
33
+ * individually on their own endpoints, but there are certain cases,
34
+ * replacing a customer's source for example, where this is allowed.
35
+ */
36
+ public $saveWithParent = false;
37
+
38
+ public function __set($k, $v)
39
+ {
40
+ parent::__set($k, $v);
41
+ $v = $this->{$k};
42
+ if ((static::getSavedNestedResources()->includes($k))
43
+ && ($v instanceof ApiResource)) {
44
+ $v->saveWithParent = true;
45
+ }
46
+ }
47
+
48
+ /**
49
+ * @throws Exception\ApiErrorException
50
+ *
51
+ * @return ApiResource the refreshed resource
52
+ */
53
+ public function refresh()
54
+ {
55
+ $requestor = new ApiRequestor($this->_opts->apiKey, static::baseUrl());
56
+ $url = $this->instanceUrl();
57
+
58
+ list($response, $this->_opts->apiKey) = $requestor->request(
59
+ 'get',
60
+ $url,
61
+ $this->_retrieveOptions,
62
+ $this->_opts->headers
63
+ );
64
+ $this->setLastResponse($response);
65
+ $this->refreshFrom($response->json, $this->_opts);
66
+
67
+ return $this;
68
+ }
69
+
70
+ /**
71
+ * @return string the base URL for the given class
72
+ */
73
+ public static function baseUrl()
74
+ {
75
+ return Stripe::$apiBase;
76
+ }
77
+
78
+ /**
79
+ * @return string the endpoint URL for the given class
80
+ */
81
+ public static function classUrl()
82
+ {
83
+ // Replace dots with slashes for namespaced resources, e.g. if the object's name is
84
+ // "foo.bar", then its URL will be "/v1/foo/bars".
85
+ $base = \str_replace('.', '/', static::OBJECT_NAME);
86
+
87
+ return "/v1/{$base}s";
88
+ }
89
+
90
+ /**
91
+ * @param null|string $id the ID of the resource
92
+ *
93
+ * @throws Exception\UnexpectedValueException if $id is null
94
+ *
95
+ * @return string the instance endpoint URL for the given class
96
+ */
97
+ public static function resourceUrl($id)
98
+ {
99
+ if (null === $id) {
100
+ $class = static::class;
101
+ $message = 'Could not determine which URL to request: '
102
+ . "{$class} instance has invalid ID: {$id}";
103
+
104
+ throw new Exception\UnexpectedValueException($message);
105
+ }
106
+ $id = Util\Util::utf8($id);
107
+ $base = static::classUrl();
108
+ $extn = \urlencode($id);
109
+
110
+ return "{$base}/{$extn}";
111
+ }
112
+
113
+ /**
114
+ * @return string the full API URL for this API resource
115
+ */
116
+ public function instanceUrl()
117
+ {
118
+ return static::resourceUrl($this['id']);
119
+ }
120
+ }
lib/stripe-php/lib/ApiResponse.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ use Stripe\Util\CaseInsensitiveArray;
6
+
7
+ /**
8
+ * Class ApiResponse.
9
+ */
10
+ class ApiResponse
11
+ {
12
+ /**
13
+ * @var null|array|CaseInsensitiveArray
14
+ */
15
+ public $headers;
16
+
17
+ /**
18
+ * @var string
19
+ */
20
+ public $body;
21
+
22
+ /**
23
+ * @var null|array
24
+ */
25
+ public $json;
26
+
27
+ /**
28
+ * @var int
29
+ */
30
+ public $code;
31
+
32
+ /**
33
+ * @param string $body
34
+ * @param int $code
35
+ * @param null|array|CaseInsensitiveArray $headers
36
+ * @param null|array $json
37
+ */
38
+ public function __construct($body, $code, $headers, $json)
39
+ {
40
+ $this->body = $body;
41
+ $this->code = $code;
42
+ $this->headers = $headers;
43
+ $this->json = $json;
44
+ }
45
+ }
lib/stripe-php/lib/ApplePayDomain.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * @property string $id Unique identifier for the object.
9
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
10
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
11
+ * @property string $domain_name
12
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
13
+ */
14
+ class ApplePayDomain extends ApiResource
15
+ {
16
+ const OBJECT_NAME = 'apple_pay_domain';
17
+
18
+ use ApiOperations\All;
19
+ use ApiOperations\Create;
20
+ use ApiOperations\Delete;
21
+ use ApiOperations\Retrieve;
22
+
23
+ /**
24
+ * @return string The class URL for this resource. It needs to be special
25
+ * cased because it doesn't fit into the standard resource pattern.
26
+ */
27
+ public static function classUrl()
28
+ {
29
+ return '/v1/apple_pay/domains';
30
+ }
31
+ }
lib/stripe-php/lib/ApplicationFee.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * @property string $id Unique identifier for the object.
9
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
10
+ * @property string|\Stripe\Account $account ID of the Stripe account this fee was taken from.
11
+ * @property int $amount Amount earned, in %s.
12
+ * @property int $amount_refunded Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was issued)
13
+ * @property string|\Stripe\StripeObject $application ID of the Connect application that earned the fee.
14
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
15
+ * @property string|\Stripe\Charge $charge ID of the charge that the application fee was taken from.
16
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
17
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
18
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
19
+ * @property null|string|\Stripe\Charge $originating_transaction ID of the corresponding charge on the platform account, if this fee was the result of a charge using the <code>destination</code> parameter.
20
+ * @property bool $refunded Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
21
+ * @property \Stripe\Collection $refunds A list of refunds that have been applied to the fee.
22
+ */
23
+ class ApplicationFee extends ApiResource
24
+ {
25
+ const OBJECT_NAME = 'application_fee';
26
+
27
+ use ApiOperations\All;
28
+ use ApiOperations\NestedResource;
29
+ use ApiOperations\Retrieve;
30
+
31
+ const PATH_REFUNDS = '/refunds';
32
+
33
+ /**
34
+ * @param string $id the ID of the application fee on which to retrieve the fee refunds
35
+ * @param null|array $params
36
+ * @param null|array|string $opts
37
+ *
38
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
39
+ *
40
+ * @return \Stripe\Collection the list of fee refunds
41
+ */
42
+ public static function allRefunds($id, $params = null, $opts = null)
43
+ {
44
+ return self::_allNestedResources($id, static::PATH_REFUNDS, $params, $opts);
45
+ }
46
+
47
+ /**
48
+ * @param string $id the ID of the application fee on which to create the fee refund
49
+ * @param null|array $params
50
+ * @param null|array|string $opts
51
+ *
52
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
53
+ *
54
+ * @return \Stripe\ApplicationFeeRefund
55
+ */
56
+ public static function createRefund($id, $params = null, $opts = null)
57
+ {
58
+ return self::_createNestedResource($id, static::PATH_REFUNDS, $params, $opts);
59
+ }
60
+
61
+ /**
62
+ * @param string $id the ID of the application fee to which the fee refund belongs
63
+ * @param string $refundId the ID of the fee refund to retrieve
64
+ * @param null|array $params
65
+ * @param null|array|string $opts
66
+ *
67
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
68
+ *
69
+ * @return \Stripe\ApplicationFeeRefund
70
+ */
71
+ public static function retrieveRefund($id, $refundId, $params = null, $opts = null)
72
+ {
73
+ return self::_retrieveNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts);
74
+ }
75
+
76
+ /**
77
+ * @param string $id the ID of the application fee to which the fee refund belongs
78
+ * @param string $refundId the ID of the fee refund to update
79
+ * @param null|array $params
80
+ * @param null|array|string $opts
81
+ *
82
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
83
+ *
84
+ * @return \Stripe\ApplicationFeeRefund
85
+ */
86
+ public static function updateRefund($id, $refundId, $params = null, $opts = null)
87
+ {
88
+ return self::_updateNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts);
89
+ }
90
+ }
lib/stripe-php/lib/ApplicationFeeRefund.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * <code>Application Fee Refund</code> objects allow you to refund an application
9
+ * fee that has previously been created but not yet refunded. Funds will be
10
+ * refunded to the Stripe account from which the fee was originally collected.
11
+ *
12
+ * Related guide: <a
13
+ * href="https://stripe.com/docs/connect/destination-charges#refunding-app-fee">Refunding
14
+ * Application Fees</a>.
15
+ *
16
+ * @property string $id Unique identifier for the object.
17
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
18
+ * @property int $amount Amount, in %s.
19
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact on your account balance.
20
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
21
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
22
+ * @property string|\Stripe\ApplicationFee $fee ID of the application fee that was refunded.
23
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
24
+ */
25
+ class ApplicationFeeRefund extends ApiResource
26
+ {
27
+ const OBJECT_NAME = 'fee_refund';
28
+
29
+ use ApiOperations\Update {
30
+ save as protected _save;
31
+ }
32
+
33
+ /**
34
+ * @return string the API URL for this Stripe refund
35
+ */
36
+ public function instanceUrl()
37
+ {
38
+ $id = $this['id'];
39
+ $fee = $this['fee'];
40
+ if (!$id) {
41
+ throw new Exception\UnexpectedValueException(
42
+ 'Could not determine which URL to request: ' .
43
+ "class instance has invalid ID: {$id}",
44
+ null
45
+ );
46
+ }
47
+ $id = Util\Util::utf8($id);
48
+ $fee = Util\Util::utf8($fee);
49
+
50
+ $base = ApplicationFee::classUrl();
51
+ $feeExtn = \urlencode($fee);
52
+ $extn = \urlencode($id);
53
+
54
+ return "{$base}/{$feeExtn}/refunds/{$extn}";
55
+ }
56
+
57
+ /**
58
+ * @param null|array|string $opts
59
+ *
60
+ * @return ApplicationFeeRefund the saved refund
61
+ */
62
+ public function save($opts = null)
63
+ {
64
+ return $this->_save($opts);
65
+ }
66
+ }
lib/stripe-php/lib/Balance.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * This is an object representing your Stripe balance. You can retrieve it to see
9
+ * the balance currently on your Stripe account.
10
+ *
11
+ * You can also retrieve the balance history, which contains a list of <a
12
+ * href="https://stripe.com/docs/reporting/balance-transaction-types">transactions</a>
13
+ * that contributed to the balance (charges, payouts, and so forth).
14
+ *
15
+ * The available and pending amounts for each currency are broken down further by
16
+ * payment source types.
17
+ *
18
+ * Related guide: <a
19
+ * href="https://stripe.com/docs/connect/account-balances">Understanding Connect
20
+ * Account Balances</a>.
21
+ *
22
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
23
+ * @property \Stripe\StripeObject[] $available Funds that are available to be transferred or paid out, whether automatically by Stripe or explicitly via the <a href="https://stripe.com/docs/api#transfers">Transfers API</a> or <a href="https://stripe.com/docs/api#payouts">Payouts API</a>. The available balance for each currency and payment type can be found in the <code>source_types</code> property.
24
+ * @property \Stripe\StripeObject[] $connect_reserved Funds held due to negative balances on connected Custom accounts. The connect reserve balance for each currency and payment type can be found in the <code>source_types</code> property.
25
+ * @property \Stripe\StripeObject[] $instant_available Funds that can be paid out using Instant Payouts.
26
+ * @property \Stripe\StripeObject $issuing
27
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
28
+ * @property \Stripe\StripeObject[] $pending Funds that are not yet available in the balance, due to the 7-day rolling pay cycle. The pending balance for each currency, and for each payment type, can be found in the <code>source_types</code> property.
29
+ */
30
+ class Balance extends SingletonApiResource
31
+ {
32
+ const OBJECT_NAME = 'balance';
33
+
34
+ /**
35
+ * @param null|array|string $opts
36
+ *
37
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
38
+ *
39
+ * @return \Stripe\Balance
40
+ */
41
+ public static function retrieve($opts = null)
42
+ {
43
+ return self::_singletonRetrieve($opts);
44
+ }
45
+ }
lib/stripe-php/lib/BalanceTransaction.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Balance transactions represent funds moving through your Stripe account. They're
9
+ * created for every type of transaction that comes into or flows out of your
10
+ * Stripe account balance.
11
+ *
12
+ * Related guide: <a
13
+ * href="https://stripe.com/docs/reports/balance-transaction-types">Balance
14
+ * Transaction Types</a>.
15
+ *
16
+ * @property string $id Unique identifier for the object.
17
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
18
+ * @property int $amount Gross amount of the transaction, in %s.
19
+ * @property int $available_on The date the transaction's net funds will become available in the Stripe balance.
20
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
21
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
22
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
23
+ * @property null|float $exchange_rate The exchange rate used, if applicable, for this transaction. Specifically, if money was converted from currency A to currency B, then the <code>amount</code> in currency A, times <code>exchange_rate</code>, would be the <code>amount</code> in currency B. For example, suppose you charged a customer 10.00 EUR. Then the PaymentIntent's <code>amount</code> would be <code>1000</code> and <code>currency</code> would be <code>eur</code>. Suppose this was converted into 12.34 USD in your Stripe account. Then the BalanceTransaction's <code>amount</code> would be <code>1234</code>, <code>currency</code> would be <code>usd</code>, and <code>exchange_rate</code> would be <code>1.234</code>.
24
+ * @property int $fee Fees (in %s) paid for this transaction.
25
+ * @property \Stripe\StripeObject[] $fee_details Detailed breakdown of fees (in %s) paid for this transaction.
26
+ * @property int $net Net amount of the transaction, in %s.
27
+ * @property string $reporting_category <a href="https://stripe.com/docs/reports/reporting-categories">Learn more</a> about how reporting categories can help you understand balance transactions from an accounting perspective.
28
+ * @property null|string|\Stripe\StripeObject $source The Stripe object to which this transaction is related.
29
+ * @property string $status If the transaction's net funds are available in the Stripe balance yet. Either <code>available</code> or <code>pending</code>.
30
+ * @property string $type Transaction type: <code>adjustment</code>, <code>advance</code>, <code>advance_funding</code>, <code>anticipation_repayment</code>, <code>application_fee</code>, <code>application_fee_refund</code>, <code>charge</code>, <code>connect_collection_transfer</code>, <code>contribution</code>, <code>issuing_authorization_hold</code>, <code>issuing_authorization_release</code>, <code>issuing_dispute</code>, <code>issuing_transaction</code>, <code>payment</code>, <code>payment_failure_refund</code>, <code>payment_refund</code>, <code>payout</code>, <code>payout_cancel</code>, <code>payout_failure</code>, <code>refund</code>, <code>refund_failure</code>, <code>reserve_transaction</code>, <code>reserved_funds</code>, <code>stripe_fee</code>, <code>stripe_fx_fee</code>, <code>tax_fee</code>, <code>topup</code>, <code>topup_reversal</code>, <code>transfer</code>, <code>transfer_cancel</code>, <code>transfer_failure</code>, or <code>transfer_refund</code>. <a href="https://stripe.com/docs/reports/balance-transaction-types">Learn more</a> about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider <code>reporting_category</code> instead.
31
+ */
32
+ class BalanceTransaction extends ApiResource
33
+ {
34
+ const OBJECT_NAME = 'balance_transaction';
35
+
36
+ use ApiOperations\All;
37
+ use ApiOperations\Retrieve;
38
+
39
+ const TYPE_ADJUSTMENT = 'adjustment';
40
+ const TYPE_ADVANCE = 'advance';
41
+ const TYPE_ADVANCE_FUNDING = 'advance_funding';
42
+ const TYPE_ANTICIPATION_REPAYMENT = 'anticipation_repayment';
43
+ const TYPE_APPLICATION_FEE = 'application_fee';
44
+ const TYPE_APPLICATION_FEE_REFUND = 'application_fee_refund';
45
+ const TYPE_CHARGE = 'charge';
46
+ const TYPE_CONNECT_COLLECTION_TRANSFER = 'connect_collection_transfer';
47
+ const TYPE_CONTRIBUTION = 'contribution';
48
+ const TYPE_ISSUING_AUTHORIZATION_HOLD = 'issuing_authorization_hold';
49
+ const TYPE_ISSUING_AUTHORIZATION_RELEASE = 'issuing_authorization_release';
50
+ const TYPE_ISSUING_DISPUTE = 'issuing_dispute';
51
+ const TYPE_ISSUING_TRANSACTION = 'issuing_transaction';
52
+ const TYPE_PAYMENT = 'payment';
53
+ const TYPE_PAYMENT_FAILURE_REFUND = 'payment_failure_refund';
54
+ const TYPE_PAYMENT_REFUND = 'payment_refund';
55
+ const TYPE_PAYOUT = 'payout';
56
+ const TYPE_PAYOUT_CANCEL = 'payout_cancel';
57
+ const TYPE_PAYOUT_FAILURE = 'payout_failure';
58
+ const TYPE_REFUND = 'refund';
59
+ const TYPE_REFUND_FAILURE = 'refund_failure';
60
+ const TYPE_RESERVE_TRANSACTION = 'reserve_transaction';
61
+ const TYPE_RESERVED_FUNDS = 'reserved_funds';
62
+ const TYPE_STRIPE_FEE = 'stripe_fee';
63
+ const TYPE_STRIPE_FX_FEE = 'stripe_fx_fee';
64
+ const TYPE_TAX_FEE = 'tax_fee';
65
+ const TYPE_TOPUP = 'topup';
66
+ const TYPE_TOPUP_REVERSAL = 'topup_reversal';
67
+ const TYPE_TRANSFER = 'transfer';
68
+ const TYPE_TRANSFER_CANCEL = 'transfer_cancel';
69
+ const TYPE_TRANSFER_FAILURE = 'transfer_failure';
70
+ const TYPE_TRANSFER_REFUND = 'transfer_refund';
71
+ }
lib/stripe-php/lib/BankAccount.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * These bank accounts are payment methods on <code>Customer</code> objects.
9
+ *
10
+ * On the other hand <a
11
+ * href="https://stripe.com/docs/api#external_accounts">External Accounts</a> are
12
+ * transfer destinations on <code>Account</code> objects for <a
13
+ * href="https://stripe.com/docs/connect/custom-accounts">Custom accounts</a>. They
14
+ * can be bank accounts or debit cards as well, and are documented in the links
15
+ * above.
16
+ *
17
+ * Related guide: <a
18
+ * href="https://stripe.com/docs/payments/bank-debits-transfers">Bank Debits and
19
+ * Transfers</a>.
20
+ *
21
+ * @property string $id Unique identifier for the object.
22
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
23
+ * @property null|string|\Stripe\Account $account The ID of the account that the bank account is associated with.
24
+ * @property null|string $account_holder_name The name of the person or business that owns the bank account.
25
+ * @property null|string $account_holder_type The type of entity that holds the account. This can be either <code>individual</code> or <code>company</code>.
26
+ * @property null|string $account_type The bank account type. This can only be <code>checking</code> or <code>savings</code> in most countries. In Japan, this can only be <code>futsu</code> or <code>toza</code>.
27
+ * @property null|string[] $available_payout_methods A set of available payout methods for this bank account. Only values from this set should be passed as the <code>method</code> when creating a payout.
28
+ * @property null|string $bank_name Name of the bank associated with the routing number (e.g., <code>WELLS FARGO</code>).
29
+ * @property string $country Two-letter ISO code representing the country the bank account is located in.
30
+ * @property string $currency Three-letter <a href="https://stripe.com/docs/payouts">ISO code for the currency</a> paid out to the bank account.
31
+ * @property null|string|\Stripe\Customer $customer The ID of the customer that the bank account is associated with.
32
+ * @property null|bool $default_for_currency Whether this bank account is the default external account for its currency.
33
+ * @property null|string $fingerprint Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
34
+ * @property string $last4 The last four digits of the bank account number.
35
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
36
+ * @property null|string $routing_number The routing transit number for the bank account.
37
+ * @property string $status <p>For bank accounts, possible values are <code>new</code>, <code>validated</code>, <code>verified</code>, <code>verification_failed</code>, or <code>errored</code>. A bank account that hasn't had any activity or validation performed is <code>new</code>. If Stripe can determine that the bank account exists, its status will be <code>validated</code>. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be <code>verified</code>. If the verification failed for any reason, such as microdeposit failure, the status will be <code>verification_failed</code>. If a transfer sent to this bank account fails, we'll set the status to <code>errored</code> and will not continue to send transfers until the bank details are updated.</p><p>For external accounts, possible values are <code>new</code> and <code>errored</code>. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set to <code>errored</code> and transfers are stopped until account details are updated.</p>
38
+ */
39
+ class BankAccount extends ApiResource
40
+ {
41
+ const OBJECT_NAME = 'bank_account';
42
+
43
+ use ApiOperations\Delete;
44
+ use ApiOperations\Update;
45
+
46
+ /**
47
+ * Possible string representations of the bank verification status.
48
+ *
49
+ * @see https://stripe.com/docs/api/external_account_bank_accounts/object#account_bank_account_object-status
50
+ */
51
+ const STATUS_NEW = 'new';
52
+ const STATUS_VALIDATED = 'validated';
53
+ const STATUS_VERIFIED = 'verified';
54
+ const STATUS_VERIFICATION_FAILED = 'verification_failed';
55
+ const STATUS_ERRORED = 'errored';
56
+
57
+ /**
58
+ * @return string The instance URL for this resource. It needs to be special
59
+ * cased because it doesn't fit into the standard resource pattern.
60
+ */
61
+ public function instanceUrl()
62
+ {
63
+ if ($this['customer']) {
64
+ $base = Customer::classUrl();
65
+ $parent = $this['customer'];
66
+ $path = 'sources';
67
+ } elseif ($this['account']) {
68
+ $base = Account::classUrl();
69
+ $parent = $this['account'];
70
+ $path = 'external_accounts';
71
+ } else {
72
+ $msg = 'Bank accounts cannot be accessed without a customer ID or account ID.';
73
+
74
+ throw new Exception\UnexpectedValueException($msg, null);
75
+ }
76
+ $parentExtn = \urlencode(Util\Util::utf8($parent));
77
+ $extn = \urlencode(Util\Util::utf8($this['id']));
78
+
79
+ return "{$base}/{$parentExtn}/{$path}/{$extn}";
80
+ }
81
+
82
+ /**
83
+ * @param array|string $_id
84
+ * @param null|array|string $_opts
85
+ *
86
+ * @throws \Stripe\Exception\BadMethodCallException
87
+ */
88
+ public static function retrieve($_id, $_opts = null)
89
+ {
90
+ $msg = 'Bank accounts cannot be retrieved without a customer ID or ' .
91
+ 'an account ID. Retrieve a bank account using ' .
92
+ "`Customer::retrieveSource('customer_id', " .
93
+ "'bank_account_id')` or `Account::retrieveExternalAccount(" .
94
+ "'account_id', 'bank_account_id')`.";
95
+
96
+ throw new Exception\BadMethodCallException($msg);
97
+ }
98
+
99
+ /**
100
+ * @param string $_id
101
+ * @param null|array $_params
102
+ * @param null|array|string $_options
103
+ *
104
+ * @throws \Stripe\Exception\BadMethodCallException
105
+ */
106
+ public static function update($_id, $_params = null, $_options = null)
107
+ {
108
+ $msg = 'Bank accounts cannot be updated without a customer ID or an ' .
109
+ 'account ID. Update a bank account using ' .
110
+ "`Customer::updateSource('customer_id', 'bank_account_id', " .
111
+ '$updateParams)` or `Account::updateExternalAccount(' .
112
+ "'account_id', 'bank_account_id', \$updateParams)`.";
113
+
114
+ throw new Exception\BadMethodCallException($msg);
115
+ }
116
+
117
+ /**
118
+ * @param null|array $params
119
+ * @param null|array|string $opts
120
+ *
121
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
122
+ *
123
+ * @return BankAccount the verified bank account
124
+ */
125
+ public function verify($params = null, $opts = null)
126
+ {
127
+ $url = $this->instanceUrl() . '/verify';
128
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
129
+ $this->refreshFrom($response, $opts);
130
+
131
+ return $this;
132
+ }
133
+ }
lib/stripe-php/lib/BaseStripeClient.php ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ class BaseStripeClient implements StripeClientInterface, StripeStreamingClientInterface
6
+ {
7
+ /** @var string default base URL for Stripe's API */
8
+ const DEFAULT_API_BASE = 'https://api.stripe.com';
9
+
10
+ /** @var string default base URL for Stripe's OAuth API */
11
+ const DEFAULT_CONNECT_BASE = 'https://connect.stripe.com';
12
+
13
+ /** @var string default base URL for Stripe's Files API */
14
+ const DEFAULT_FILES_BASE = 'https://files.stripe.com';
15
+
16
+ /** @var array<string, mixed> */
17
+ private $config;
18
+
19
+ /** @var \Stripe\Util\RequestOptions */
20
+ private $defaultOpts;
21
+
22
+ /**
23
+ * Initializes a new instance of the {@link BaseStripeClient} class.
24
+ *
25
+ * The constructor takes a single argument. The argument can be a string, in which case it
26
+ * should be the API key. It can also be an array with various configuration settings.
27
+ *
28
+ * Configuration settings include the following options:
29
+ *
30
+ * - api_key (null|string): the Stripe API key, to be used in regular API requests.
31
+ * - client_id (null|string): the Stripe client ID, to be used in OAuth requests.
32
+ * - stripe_account (null|string): a Stripe account ID. If set, all requests sent by the client
33
+ * will automatically use the {@code Stripe-Account} header with that account ID.
34
+ * - stripe_version (null|string): a Stripe API verion. If set, all requests sent by the client
35
+ * will include the {@code Stripe-Version} header with that API version.
36
+ *
37
+ * The following configuration settings are also available, though setting these should rarely be necessary
38
+ * (only useful if you want to send requests to a mock server like stripe-mock):
39
+ *
40
+ * - api_base (string): the base URL for regular API requests. Defaults to
41
+ * {@link DEFAULT_API_BASE}.
42
+ * - connect_base (string): the base URL for OAuth requests. Defaults to
43
+ * {@link DEFAULT_CONNECT_BASE}.
44
+ * - files_base (string): the base URL for file creation requests. Defaults to
45
+ * {@link DEFAULT_FILES_BASE}.
46
+ *
47
+ * @param array<string, mixed>|string $config the API key as a string, or an array containing
48
+ * the client configuration settings
49
+ */
50
+ public function __construct($config = [])
51
+ {
52
+ if (\is_string($config)) {
53
+ $config = ['api_key' => $config];
54
+ } elseif (!\is_array($config)) {
55
+ throw new \Stripe\Exception\InvalidArgumentException('$config must be a string or an array');
56
+ }
57
+
58
+ $config = \array_merge($this->getDefaultConfig(), $config);
59
+ $this->validateConfig($config);
60
+
61
+ $this->config = $config;
62
+
63
+ $this->defaultOpts = \Stripe\Util\RequestOptions::parse([
64
+ 'stripe_account' => $config['stripe_account'],
65
+ 'stripe_version' => $config['stripe_version'],
66
+ ]);
67
+ }
68
+
69
+ /**
70
+ * Gets the API key used by the client to send requests.
71
+ *
72
+ * @return null|string the API key used by the client to send requests
73
+ */
74
+ public function getApiKey()
75
+ {
76
+ return $this->config['api_key'];
77
+ }
78
+
79
+ /**
80
+ * Gets the client ID used by the client in OAuth requests.
81
+ *
82
+ * @return null|string the client ID used by the client in OAuth requests
83
+ */
84
+ public function getClientId()
85
+ {
86
+ return $this->config['client_id'];
87
+ }
88
+
89
+ /**
90
+ * Gets the base URL for Stripe's API.
91
+ *
92
+ * @return string the base URL for Stripe's API
93
+ */
94
+ public function getApiBase()
95
+ {
96
+ return $this->config['api_base'];
97
+ }
98
+
99
+ /**
100
+ * Gets the base URL for Stripe's OAuth API.
101
+ *
102
+ * @return string the base URL for Stripe's OAuth API
103
+ */
104
+ public function getConnectBase()
105
+ {
106
+ return $this->config['connect_base'];
107
+ }
108
+
109
+ /**
110
+ * Gets the base URL for Stripe's Files API.
111
+ *
112
+ * @return string the base URL for Stripe's Files API
113
+ */
114
+ public function getFilesBase()
115
+ {
116
+ return $this->config['files_base'];
117
+ }
118
+
119
+ /**
120
+ * Sends a request to Stripe's API.
121
+ *
122
+ * @param string $method the HTTP method
123
+ * @param string $path the path of the request
124
+ * @param array $params the parameters of the request
125
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
126
+ *
127
+ * @return \Stripe\StripeObject the object returned by Stripe's API
128
+ */
129
+ public function request($method, $path, $params, $opts)
130
+ {
131
+ $opts = $this->defaultOpts->merge($opts, true);
132
+ $baseUrl = $opts->apiBase ?: $this->getApiBase();
133
+ $requestor = new \Stripe\ApiRequestor($this->apiKeyForRequest($opts), $baseUrl);
134
+ list($response, $opts->apiKey) = $requestor->request($method, $path, $params, $opts->headers);
135
+ $opts->discardNonPersistentHeaders();
136
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
137
+ $obj->setLastResponse($response);
138
+
139
+ return $obj;
140
+ }
141
+
142
+ /**
143
+ * Sends a request to Stripe's API, passing chunks of the streamed response
144
+ * into a user-provided $readBodyChunkCallable callback.
145
+ *
146
+ * @param string $method the HTTP method
147
+ * @param string $path the path of the request
148
+ * @param callable $readBodyChunkCallable a function that will be called
149
+ * @param array $params the parameters of the request
150
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
151
+ * with chunks of bytes from the body if the request is successful
152
+ */
153
+ public function requestStream($method, $path, $readBodyChunkCallable, $params, $opts)
154
+ {
155
+ $opts = $this->defaultOpts->merge($opts, true);
156
+ $baseUrl = $opts->apiBase ?: $this->getApiBase();
157
+ $requestor = new \Stripe\ApiRequestor($this->apiKeyForRequest($opts), $baseUrl);
158
+ list($response, $opts->apiKey) = $requestor->requestStream($method, $path, $readBodyChunkCallable, $params, $opts->headers);
159
+ }
160
+
161
+ /**
162
+ * Sends a request to Stripe's API.
163
+ *
164
+ * @param string $method the HTTP method
165
+ * @param string $path the path of the request
166
+ * @param array $params the parameters of the request
167
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
168
+ *
169
+ * @return \Stripe\Collection of ApiResources
170
+ */
171
+ public function requestCollection($method, $path, $params, $opts)
172
+ {
173
+ $obj = $this->request($method, $path, $params, $opts);
174
+ if (!($obj instanceof \Stripe\Collection)) {
175
+ $received_class = \get_class($obj);
176
+ $msg = "Expected to receive `Stripe\\Collection` object from Stripe API. Instead received `{$received_class}`.";
177
+
178
+ throw new \Stripe\Exception\UnexpectedValueException($msg);
179
+ }
180
+ $obj->setFilters($params);
181
+
182
+ return $obj;
183
+ }
184
+
185
+ /**
186
+ * @param \Stripe\Util\RequestOptions $opts
187
+ *
188
+ * @throws \Stripe\Exception\AuthenticationException
189
+ *
190
+ * @return string
191
+ */
192
+ private function apiKeyForRequest($opts)
193
+ {
194
+ $apiKey = $opts->apiKey ?: $this->getApiKey();
195
+
196
+ if (null === $apiKey) {
197
+ $msg = 'No API key provided. Set your API key when constructing the '
198
+ . 'StripeClient instance, or provide it on a per-request basis '
199
+ . 'using the `api_key` key in the $opts argument.';
200
+
201
+ throw new \Stripe\Exception\AuthenticationException($msg);
202
+ }
203
+
204
+ return $apiKey;
205
+ }
206
+
207
+ /**
208
+ * TODO: replace this with a private constant when we drop support for PHP < 5.
209
+ *
210
+ * @return array<string, mixed>
211
+ */
212
+ private function getDefaultConfig()
213
+ {
214
+ return [
215
+ 'api_key' => null,
216
+ 'client_id' => null,
217
+ 'stripe_account' => null,
218
+ 'stripe_version' => null,
219
+ 'api_base' => self::DEFAULT_API_BASE,
220
+ 'connect_base' => self::DEFAULT_CONNECT_BASE,
221
+ 'files_base' => self::DEFAULT_FILES_BASE,
222
+ ];
223
+ }
224
+
225
+ /**
226
+ * @param array<string, mixed> $config
227
+ *
228
+ * @throws \Stripe\Exception\InvalidArgumentException
229
+ */
230
+ private function validateConfig($config)
231
+ {
232
+ // api_key
233
+ if (null !== $config['api_key'] && !\is_string($config['api_key'])) {
234
+ throw new \Stripe\Exception\InvalidArgumentException('api_key must be null or a string');
235
+ }
236
+
237
+ if (null !== $config['api_key'] && ('' === $config['api_key'])) {
238
+ $msg = 'api_key cannot be the empty string';
239
+
240
+ throw new \Stripe\Exception\InvalidArgumentException($msg);
241
+ }
242
+
243
+ if (null !== $config['api_key'] && (\preg_match('/\s/', $config['api_key']))) {
244
+ $msg = 'api_key cannot contain whitespace';
245
+
246
+ throw new \Stripe\Exception\InvalidArgumentException($msg);
247
+ }
248
+
249
+ // client_id
250
+ if (null !== $config['client_id'] && !\is_string($config['client_id'])) {
251
+ throw new \Stripe\Exception\InvalidArgumentException('client_id must be null or a string');
252
+ }
253
+
254
+ // stripe_account
255
+ if (null !== $config['stripe_account'] && !\is_string($config['stripe_account'])) {
256
+ throw new \Stripe\Exception\InvalidArgumentException('stripe_account must be null or a string');
257
+ }
258
+
259
+ // stripe_version
260
+ if (null !== $config['stripe_version'] && !\is_string($config['stripe_version'])) {
261
+ throw new \Stripe\Exception\InvalidArgumentException('stripe_version must be null or a string');
262
+ }
263
+
264
+ // api_base
265
+ if (!\is_string($config['api_base'])) {
266
+ throw new \Stripe\Exception\InvalidArgumentException('api_base must be a string');
267
+ }
268
+
269
+ // connect_base
270
+ if (!\is_string($config['connect_base'])) {
271
+ throw new \Stripe\Exception\InvalidArgumentException('connect_base must be a string');
272
+ }
273
+
274
+ // files_base
275
+ if (!\is_string($config['files_base'])) {
276
+ throw new \Stripe\Exception\InvalidArgumentException('files_base must be a string');
277
+ }
278
+
279
+ // check absence of extra keys
280
+ $extraConfigKeys = \array_diff(\array_keys($config), \array_keys($this->getDefaultConfig()));
281
+ if (!empty($extraConfigKeys)) {
282
+ // Wrap in single quote to more easily catch trailing spaces errors
283
+ $invalidKeys = "'" . \implode("', '", $extraConfigKeys) . "'";
284
+
285
+ throw new \Stripe\Exception\InvalidArgumentException('Found unknown key(s) in configuration array: ' . $invalidKeys);
286
+ }
287
+ }
288
+ }
lib/stripe-php/lib/BaseStripeClientInterface.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Interface for a Stripe client.
7
+ */
8
+ interface BaseStripeClientInterface
9
+ {
10
+ /**
11
+ * Gets the API key used by the client to send requests.
12
+ *
13
+ * @return null|string the API key used by the client to send requests
14
+ */
15
+ public function getApiKey();
16
+
17
+ /**
18
+ * Gets the client ID used by the client in OAuth requests.
19
+ *
20
+ * @return null|string the client ID used by the client in OAuth requests
21
+ */
22
+ public function getClientId();
23
+
24
+ /**
25
+ * Gets the base URL for Stripe's API.
26
+ *
27
+ * @return string the base URL for Stripe's API
28
+ */
29
+ public function getApiBase();
30
+
31
+ /**
32
+ * Gets the base URL for Stripe's OAuth API.
33
+ *
34
+ * @return string the base URL for Stripe's OAuth API
35
+ */
36
+ public function getConnectBase();
37
+
38
+ /**
39
+ * Gets the base URL for Stripe's Files API.
40
+ *
41
+ * @return string the base URL for Stripe's Files API
42
+ */
43
+ public function getFilesBase();
44
+ }
lib/stripe-php/lib/BillingPortal/Configuration.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\BillingPortal;
6
+
7
+ /**
8
+ * A portal configuration describes the functionality and behavior of a portal
9
+ * session.
10
+ *
11
+ * @property string $id Unique identifier for the object.
12
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
13
+ * @property bool $active Whether the configuration is active and can be used to create portal sessions.
14
+ * @property null|string $application ID of the Connect Application that created the configuration.
15
+ * @property \Stripe\StripeObject $business_profile
16
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
17
+ * @property null|string $default_return_url The default URL to redirect customers to when they click on the portal's link to return to your website. This can be <a href="https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url">overriden</a> when creating the session.
18
+ * @property \Stripe\StripeObject $features
19
+ * @property bool $is_default Whether the configuration is the default. If <code>true</code>, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session.
20
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
21
+ * @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
22
+ */
23
+ class Configuration extends \Stripe\ApiResource
24
+ {
25
+ const OBJECT_NAME = 'billing_portal.configuration';
26
+
27
+ use \Stripe\ApiOperations\All;
28
+ use \Stripe\ApiOperations\Create;
29
+ use \Stripe\ApiOperations\Retrieve;
30
+ use \Stripe\ApiOperations\Update;
31
+ }
lib/stripe-php/lib/BillingPortal/Session.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\BillingPortal;
6
+
7
+ /**
8
+ * The Billing customer portal is a Stripe-hosted UI for subscription and billing
9
+ * management.
10
+ *
11
+ * A portal configuration describes the functionality and features that you want to
12
+ * provide to your customers through the portal.
13
+ *
14
+ * A portal session describes the instantiation of the customer portal for a
15
+ * particular customer. By visiting the session's URL, the customer can manage
16
+ * their subscriptions and billing details. For security reasons, sessions are
17
+ * short-lived and will expire if the customer does not visit the URL. Create
18
+ * sessions on-demand when customers intend to manage their subscriptions and
19
+ * billing details.
20
+ *
21
+ * Learn more in the <a
22
+ * href="https://stripe.com/docs/billing/subscriptions/customer-portal">product
23
+ * overview</a> and <a
24
+ * href="https://stripe.com/docs/billing/subscriptions/integrating-customer-portal">integration
25
+ * guide</a>.
26
+ *
27
+ * @property string $id Unique identifier for the object.
28
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
29
+ * @property string|\Stripe\BillingPortal\Configuration $configuration The configuration used by this session, describing the features available.
30
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
31
+ * @property string $customer The ID of the customer for this session.
32
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
33
+ * @property null|string $locale The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer’s <code>preferred_locales</code> or browser’s locale is used.
34
+ * @property null|string $on_behalf_of The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this <code>on_behalf_of</code> account appear in the portal. For more information, see the <a href="https://stripe.com/docs/connect/charges-transfers#on-behalf-of">docs</a>. Use the <a href="https://stripe.com/docs/api/accounts/object#account_object-settings-branding">Accounts API</a> to modify the <code>on_behalf_of</code> account's branding settings, which the portal displays.
35
+ * @property string $return_url The URL to redirect customers to when they click on the portal's link to return to your website.
36
+ * @property string $url The short-lived URL of the session that gives customers access to the customer portal.
37
+ */
38
+ class Session extends \Stripe\ApiResource
39
+ {
40
+ const OBJECT_NAME = 'billing_portal.session';
41
+
42
+ use \Stripe\ApiOperations\Create;
43
+ }
lib/stripe-php/lib/BitcoinReceiver.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * @deprecated Bitcoin receivers are deprecated. Please use the sources API instead.
9
+ * @see https://stripe.com/docs/sources/bitcoin
10
+ *
11
+ * @property string $id Unique identifier for the object.
12
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
13
+ * @property bool $active True when this bitcoin receiver has received a non-zero amount of bitcoin.
14
+ * @property int $amount The amount of <code>currency</code> that you are collecting as payment.
15
+ * @property int $amount_received The amount of <code>currency</code> to which <code>bitcoin_amount_received</code> has been converted.
16
+ * @property int $bitcoin_amount The amount of bitcoin that the customer should send to fill the receiver. The <code>bitcoin_amount</code> is denominated in Satoshi: there are 10^8 Satoshi in one bitcoin.
17
+ * @property int $bitcoin_amount_received The amount of bitcoin that has been sent by the customer to this receiver.
18
+ * @property string $bitcoin_uri This URI can be displayed to the customer as a clickable link (to activate their bitcoin client) or as a QR code (for mobile wallets).
19
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
20
+ * @property string $currency Three-letter <a href="https://stripe.com/docs/currencies">ISO code for the currency</a> to which the bitcoin will be converted.
21
+ * @property null|string $customer The customer ID of the bitcoin receiver.
22
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
23
+ * @property null|string $email The customer's email address, set by the API call that creates the receiver.
24
+ * @property bool $filled This flag is initially false and updates to true when the customer sends the <code>bitcoin_amount</code> to this receiver.
25
+ * @property string $inbound_address A bitcoin address that is specific to this receiver. The customer can send bitcoin to this address to fill the receiver.
26
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
27
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
28
+ * @property null|string $payment The ID of the payment created from the receiver, if any. Hidden when viewing the receiver with a publishable key.
29
+ * @property null|string $refund_address The refund address of this bitcoin receiver.
30
+ * @property \Stripe\Collection $transactions A list with one entry for each time that the customer sent bitcoin to the receiver. Hidden when viewing the receiver with a publishable key.
31
+ * @property bool $uncaptured_funds This receiver contains uncaptured funds that can be used for a payment or refunded.
32
+ * @property null|bool $used_for_payment Indicate if this source is used for payment.
33
+ */
34
+ class BitcoinReceiver extends ApiResource
35
+ {
36
+ const OBJECT_NAME = 'bitcoin_receiver';
37
+
38
+ use ApiOperations\All;
39
+ use ApiOperations\Retrieve;
40
+
41
+ /**
42
+ * @return string The class URL for this resource. It needs to be special
43
+ * cased because it doesn't fit into the standard resource pattern.
44
+ */
45
+ public static function classUrl()
46
+ {
47
+ return '/v1/bitcoin/receivers';
48
+ }
49
+
50
+ /**
51
+ * @return string The instance URL for this resource. It needs to be special
52
+ * cased because it doesn't fit into the standard resource pattern.
53
+ */
54
+ public function instanceUrl()
55
+ {
56
+ if ($this['customer']) {
57
+ $base = Customer::classUrl();
58
+ $parent = $this['customer'];
59
+ $path = 'sources';
60
+ $parentExtn = \urlencode(Util\Util::utf8($parent));
61
+ $extn = \urlencode(Util\Util::utf8($this['id']));
62
+
63
+ return "{$base}/{$parentExtn}/{$path}/{$extn}";
64
+ }
65
+
66
+ $base = BitcoinReceiver::classUrl();
67
+ $extn = \urlencode(Util\Util::utf8($this['id']));
68
+
69
+ return "{$base}/{$extn}";
70
+ }
71
+ }
lib/stripe-php/lib/BitcoinTransaction.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * @property string $id Unique identifier for the object.
9
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
10
+ * @property int $amount The amount of <code>currency</code> that the transaction was converted to in real-time.
11
+ * @property int $bitcoin_amount The amount of bitcoin contained in the transaction.
12
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
13
+ * @property string $currency Three-letter <a href="https://stripe.com/docs/currencies">ISO code for the currency</a> to which this transaction was converted.
14
+ * @property string $receiver The receiver to which this transaction was sent.
15
+ */
16
+ class BitcoinTransaction extends ApiResource
17
+ {
18
+ const OBJECT_NAME = 'bitcoin_transaction';
19
+ }
lib/stripe-php/lib/Capability.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * This is an object representing a capability for a Stripe account.
9
+ *
10
+ * Related guide: <a
11
+ * href="https://stripe.com/docs/connect/account-capabilities">Account
12
+ * capabilities</a>.
13
+ *
14
+ * @property string $id The identifier for the capability.
15
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
16
+ * @property string|\Stripe\Account $account The account for which the capability enables functionality.
17
+ * @property \Stripe\StripeObject $future_requirements
18
+ * @property bool $requested Whether the capability has been requested.
19
+ * @property null|int $requested_at Time at which the capability was requested. Measured in seconds since the Unix epoch.
20
+ * @property \Stripe\StripeObject $requirements
21
+ * @property string $status The status of the capability. Can be <code>active</code>, <code>inactive</code>, <code>pending</code>, or <code>unrequested</code>.
22
+ */
23
+ class Capability extends ApiResource
24
+ {
25
+ const OBJECT_NAME = 'capability';
26
+
27
+ use ApiOperations\Update;
28
+
29
+ const STATUS_ACTIVE = 'active';
30
+ const STATUS_INACTIVE = 'inactive';
31
+ const STATUS_PENDING = 'pending';
32
+ const STATUS_UNREQUESTED = 'unrequested';
33
+
34
+ /**
35
+ * @return string the API URL for this Stripe account reversal
36
+ */
37
+ public function instanceUrl()
38
+ {
39
+ $id = $this['id'];
40
+ $account = $this['account'];
41
+ if (!$id) {
42
+ throw new Exception\UnexpectedValueException(
43
+ 'Could not determine which URL to request: ' .
44
+ "class instance has invalid ID: {$id}",
45
+ null
46
+ );
47
+ }
48
+ $id = Util\Util::utf8($id);
49
+ $account = Util\Util::utf8($account);
50
+
51
+ $base = Account::classUrl();
52
+ $accountExtn = \urlencode($account);
53
+ $extn = \urlencode($id);
54
+
55
+ return "{$base}/{$accountExtn}/capabilities/{$extn}";
56
+ }
57
+
58
+ /**
59
+ * @param array|string $_id
60
+ * @param null|array|string $_opts
61
+ *
62
+ * @throws \Stripe\Exception\BadMethodCallException
63
+ */
64
+ public static function retrieve($_id, $_opts = null)
65
+ {
66
+ $msg = 'Capabilities cannot be retrieved without an account ID. ' .
67
+ 'Retrieve a capability using `Account::retrieveCapability(' .
68
+ "'account_id', 'capability_id')`.";
69
+
70
+ throw new Exception\BadMethodCallException($msg);
71
+ }
72
+
73
+ /**
74
+ * @param string $_id
75
+ * @param null|array $_params
76
+ * @param null|array|string $_options
77
+ *
78
+ * @throws \Stripe\Exception\BadMethodCallException
79
+ */
80
+ public static function update($_id, $_params = null, $_options = null)
81
+ {
82
+ $msg = 'Capabilities cannot be updated without an account ID. ' .
83
+ 'Update a capability using `Account::updateCapability(' .
84
+ "'account_id', 'capability_id', \$updateParams)`.";
85
+
86
+ throw new Exception\BadMethodCallException($msg);
87
+ }
88
+ }
lib/stripe-php/lib/Card.php ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * You can store multiple cards on a customer in order to charge the customer
9
+ * later. You can also store multiple debit cards on a recipient in order to
10
+ * transfer to those cards later.
11
+ *
12
+ * Related guide: <a href="https://stripe.com/docs/sources/cards">Card Payments
13
+ * with Sources</a>.
14
+ *
15
+ * @property string $id Unique identifier for the object.
16
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
17
+ * @property null|string|\Stripe\Account $account The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead.
18
+ * @property null|string $address_city City/District/Suburb/Town/Village.
19
+ * @property null|string $address_country Billing address country, if provided when creating card.
20
+ * @property null|string $address_line1 Address line 1 (Street address/PO Box/Company name).
21
+ * @property null|string $address_line1_check If <code>address_line1</code> was provided, results of the check: <code>pass</code>, <code>fail</code>, <code>unavailable</code>, or <code>unchecked</code>.
22
+ * @property null|string $address_line2 Address line 2 (Apartment/Suite/Unit/Building).
23
+ * @property null|string $address_state State/County/Province/Region.
24
+ * @property null|string $address_zip ZIP or postal code.
25
+ * @property null|string $address_zip_check If <code>address_zip</code> was provided, results of the check: <code>pass</code>, <code>fail</code>, <code>unavailable</code>, or <code>unchecked</code>.
26
+ * @property null|string[] $available_payout_methods A set of available payout methods for this card. Only values from this set should be passed as the <code>method</code> when creating a payout.
27
+ * @property string $brand Card brand. Can be <code>American Express</code>, <code>Diners Club</code>, <code>Discover</code>, <code>JCB</code>, <code>MasterCard</code>, <code>UnionPay</code>, <code>Visa</code>, or <code>Unknown</code>.
28
+ * @property null|string $country Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
29
+ * @property null|string $currency Three-letter <a href="https://stripe.com/docs/payouts">ISO code for currency</a>. Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency.
30
+ * @property null|string|\Stripe\Customer $customer The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
31
+ * @property null|string $cvc_check If a CVC was provided, results of the check: <code>pass</code>, <code>fail</code>, <code>unavailable</code>, or <code>unchecked</code>. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see <a href="https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge">Check if a card is valid without a charge</a>.
32
+ * @property null|bool $default_for_currency Whether this card is the default external account for its currency.
33
+ * @property null|string $dynamic_last4 (For tokenized numbers only.) The last four digits of the device account number.
34
+ * @property int $exp_month Two-digit number representing the card's expiration month.
35
+ * @property int $exp_year Four-digit number representing the card's expiration year.
36
+ * @property null|string $fingerprint <p>Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.</p><p><em>Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.</em></p>
37
+ * @property string $funding Card funding type. Can be <code>credit</code>, <code>debit</code>, <code>prepaid</code>, or <code>unknown</code>.
38
+ * @property string $last4 The last four digits of the card.
39
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
40
+ * @property null|string $name Cardholder name.
41
+ * @property null|string|\Stripe\Recipient $recipient The recipient that this card belongs to. This attribute will not be in the card object if the card belongs to a customer or account instead.
42
+ * @property null|string $tokenization_method If the card number is tokenized, this is the method that was used. Can be <code>android_pay</code> (includes Google Pay), <code>apple_pay</code>, <code>masterpass</code>, <code>visa_checkout</code>, or null.
43
+ */
44
+ class Card extends ApiResource
45
+ {
46
+ const OBJECT_NAME = 'card';
47
+
48
+ use ApiOperations\Delete;
49
+ use ApiOperations\Update;
50
+
51
+ /**
52
+ * Possible string representations of the CVC check status.
53
+ *
54
+ * @see https://stripe.com/docs/api/cards/object#card_object-cvc_check
55
+ */
56
+ const CVC_CHECK_FAIL = 'fail';
57
+ const CVC_CHECK_PASS = 'pass';
58
+ const CVC_CHECK_UNAVAILABLE = 'unavailable';
59
+ const CVC_CHECK_UNCHECKED = 'unchecked';
60
+
61
+ /**
62
+ * Possible string representations of the funding of the card.
63
+ *
64
+ * @see https://stripe.com/docs/api/cards/object#card_object-funding
65
+ */
66
+ const FUNDING_CREDIT = 'credit';
67
+ const FUNDING_DEBIT = 'debit';
68
+ const FUNDING_PREPAID = 'prepaid';
69
+ const FUNDING_UNKNOWN = 'unknown';
70
+
71
+ /**
72
+ * Possible string representations of the tokenization method when using Apple Pay or Google Pay.
73
+ *
74
+ * @see https://stripe.com/docs/api/cards/object#card_object-tokenization_method
75
+ */
76
+ const TOKENIZATION_METHOD_APPLE_PAY = 'apple_pay';
77
+ const TOKENIZATION_METHOD_GOOGLE_PAY = 'google_pay';
78
+
79
+ /**
80
+ * @return string The instance URL for this resource. It needs to be special
81
+ * cased because cards are nested resources that may belong to different
82
+ * top-level resources.
83
+ */
84
+ public function instanceUrl()
85
+ {
86
+ if ($this['customer']) {
87
+ $base = Customer::classUrl();
88
+ $parent = $this['customer'];
89
+ $path = 'sources';
90
+ } elseif ($this['account']) {
91
+ $base = Account::classUrl();
92
+ $parent = $this['account'];
93
+ $path = 'external_accounts';
94
+ } elseif ($this['recipient']) {
95
+ $base = Recipient::classUrl();
96
+ $parent = $this['recipient'];
97
+ $path = 'cards';
98
+ } else {
99
+ $msg = 'Cards cannot be accessed without a customer ID, account ID or recipient ID.';
100
+
101
+ throw new Exception\UnexpectedValueException($msg);
102
+ }
103
+ $parentExtn = \urlencode(Util\Util::utf8($parent));
104
+ $extn = \urlencode(Util\Util::utf8($this['id']));
105
+
106
+ return "{$base}/{$parentExtn}/{$path}/{$extn}";
107
+ }
108
+
109
+ /**
110
+ * @param array|string $_id
111
+ * @param null|array|string $_opts
112
+ *
113
+ * @throws \Stripe\Exception\BadMethodCallException
114
+ */
115
+ public static function retrieve($_id, $_opts = null)
116
+ {
117
+ $msg = 'Cards cannot be retrieved without a customer ID or an ' .
118
+ 'account ID. Retrieve a card using ' .
119
+ "`Customer::retrieveSource('customer_id', 'card_id')` or " .
120
+ "`Account::retrieveExternalAccount('account_id', 'card_id')`.";
121
+
122
+ throw new Exception\BadMethodCallException($msg);
123
+ }
124
+
125
+ /**
126
+ * @param string $_id
127
+ * @param null|array $_params
128
+ * @param null|array|string $_options
129
+ *
130
+ * @throws \Stripe\Exception\BadMethodCallException
131
+ */
132
+ public static function update($_id, $_params = null, $_options = null)
133
+ {
134
+ $msg = 'Cards cannot be updated without a customer ID or an ' .
135
+ 'account ID. Update a card using ' .
136
+ "`Customer::updateSource('customer_id', 'card_id', " .
137
+ '$updateParams)` or `Account::updateExternalAccount(' .
138
+ "'account_id', 'card_id', \$updateParams)`.";
139
+
140
+ throw new Exception\BadMethodCallException($msg);
141
+ }
142
+ }
lib/stripe-php/lib/Charge.php ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * To charge a credit or a debit card, you create a <code>Charge</code> object. You
9
+ * can retrieve and refund individual charges as well as list all charges. Charges
10
+ * are identified by a unique, random ID.
11
+ *
12
+ * Related guide: <a
13
+ * href="https://stripe.com/docs/payments/accept-a-payment-charges">Accept a
14
+ * payment with the Charges API</a>.
15
+ *
16
+ * @property string $id Unique identifier for the object.
17
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
18
+ * @property int $amount Amount intended to be collected by this payment. A positive integer representing how much to charge in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a> (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or <a href="https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts">equivalent in charge currency</a>. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
19
+ * @property int $amount_captured Amount in %s captured (can be less than the amount attribute on the charge if a partial capture was made).
20
+ * @property int $amount_refunded Amount in %s refunded (can be less than the amount attribute on the charge if a partial refund was issued).
21
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect application that created the charge.
22
+ * @property null|string|\Stripe\ApplicationFee $application_fee The application fee (if any) for the charge. <a href="https://stripe.com/docs/connect/direct-charges#collecting-fees">See the Connect documentation</a> for details.
23
+ * @property null|int $application_fee_amount The amount of the application fee (if any) requested for the charge. <a href="https://stripe.com/docs/connect/direct-charges#collecting-fees">See the Connect documentation</a> for details.
24
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).
25
+ * @property \Stripe\StripeObject $billing_details
26
+ * @property null|string $calculated_statement_descriptor The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined.
27
+ * @property bool $captured If the charge was created without capturing, this Boolean represents whether it is still uncaptured or has since been captured.
28
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
29
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
30
+ * @property null|string|\Stripe\Customer $customer ID of the customer this charge is for if one exists.
31
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
32
+ * @property null|string|\Stripe\Account $destination ID of an existing, connected Stripe account to transfer funds to if <code>transfer_data</code> was specified in the charge request.
33
+ * @property null|string|\Stripe\Dispute $dispute Details about the dispute if the charge has been disputed.
34
+ * @property bool $disputed Whether the charge has been disputed.
35
+ * @property null|string $failure_code Error code explaining reason for charge failure if available (see <a href="https://stripe.com/docs/api#errors">the errors section</a> for a list of codes).
36
+ * @property null|string $failure_message Message to user further explaining reason for charge failure if available.
37
+ * @property null|\Stripe\StripeObject $fraud_details Information on fraud assessments for the charge.
38
+ * @property null|string|\Stripe\Invoice $invoice ID of the invoice this charge is for if one exists.
39
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
40
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
41
+ * @property null|string|\Stripe\Account $on_behalf_of The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the <a href="https://stripe.com/docs/connect/charges-transfers">Connect documentation</a> for details.
42
+ * @property null|string|\Stripe\Order $order ID of the order this charge is for if one exists.
43
+ * @property null|\Stripe\StripeObject $outcome Details about whether the payment was accepted, and why. See <a href="https://stripe.com/docs/declines">understanding declines</a> for details.
44
+ * @property bool $paid <code>true</code> if the charge succeeded, or was successfully authorized for later capture.
45
+ * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent associated with this charge, if one exists.
46
+ * @property null|string $payment_method ID of the payment method used in this charge.
47
+ * @property null|\Stripe\StripeObject $payment_method_details Details about the payment method at the time of the transaction.
48
+ * @property null|string $receipt_email This is the email address that the receipt for this charge was sent to.
49
+ * @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this charge. This attribute will be <code>null</code> until a receipt has been sent.
50
+ * @property null|string $receipt_url This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.
51
+ * @property bool $refunded Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
52
+ * @property \Stripe\Collection $refunds A list of refunds that have been applied to the charge.
53
+ * @property null|string|\Stripe\Review $review ID of the review associated with this charge if one exists.
54
+ * @property null|\Stripe\StripeObject $shipping Shipping information for the charge.
55
+ * @property null|\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source $source This is a legacy field that will be removed in the future. It contains the Source, Card, or BankAccount object used for the charge. For details about the payment method used for this charge, refer to <code>payment_method</code> or <code>payment_method_details</code> instead.
56
+ * @property null|string|\Stripe\Transfer $source_transfer The transfer ID which created this charge. Only present if the charge came from another Stripe account. <a href="https://stripe.com/docs/connect/destination-charges">See the Connect documentation</a> for details.
57
+ * @property null|string $statement_descriptor For card charges, use <code>statement_descriptor_suffix</code> instead. Otherwise, you can use this value as the complete description of a charge on your customers’ statements. Must contain at least one letter, maximum 22 characters.
58
+ * @property null|string $statement_descriptor_suffix Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
59
+ * @property string $status The status of the payment is either <code>succeeded</code>, <code>pending</code>, or <code>failed</code>.
60
+ * @property string|\Stripe\Transfer $transfer ID of the transfer to the <code>destination</code> account (only applicable if the charge was created using the <code>destination</code> parameter).
61
+ * @property null|\Stripe\StripeObject $transfer_data An optional dictionary including the account to automatically transfer to as part of a destination charge. <a href="https://stripe.com/docs/connect/destination-charges">See the Connect documentation</a> for details.
62
+ * @property null|string $transfer_group A string that identifies this transaction as part of a group. See the <a href="https://stripe.com/docs/connect/charges-transfers#transfer-options">Connect documentation</a> for details.
63
+ */
64
+ class Charge extends ApiResource
65
+ {
66
+ const OBJECT_NAME = 'charge';
67
+
68
+ use ApiOperations\All;
69
+ use ApiOperations\Create;
70
+ use ApiOperations\Retrieve;
71
+ use ApiOperations\Update;
72
+
73
+ const STATUS_FAILED = 'failed';
74
+ const STATUS_PENDING = 'pending';
75
+ const STATUS_SUCCEEDED = 'succeeded';
76
+
77
+ /**
78
+ * Possible string representations of decline codes.
79
+ * These strings are applicable to the decline_code property of the \Stripe\Exception\CardException exception.
80
+ *
81
+ * @see https://stripe.com/docs/declines/codes
82
+ */
83
+ const DECLINED_AUTHENTICATION_REQUIRED = 'authentication_required';
84
+ const DECLINED_APPROVE_WITH_ID = 'approve_with_id';
85
+ const DECLINED_CALL_ISSUER = 'call_issuer';
86
+ const DECLINED_CARD_NOT_SUPPORTED = 'card_not_supported';
87
+ const DECLINED_CARD_VELOCITY_EXCEEDED = 'card_velocity_exceeded';
88
+ const DECLINED_CURRENCY_NOT_SUPPORTED = 'currency_not_supported';
89
+ const DECLINED_DO_NOT_HONOR = 'do_not_honor';
90
+ const DECLINED_DO_NOT_TRY_AGAIN = 'do_not_try_again';
91
+ const DECLINED_DUPLICATED_TRANSACTION = 'duplicate_transaction';
92
+ const DECLINED_EXPIRED_CARD = 'expired_card';
93
+ const DECLINED_FRAUDULENT = 'fraudulent';
94
+ const DECLINED_GENERIC_DECLINE = 'generic_decline';
95
+ const DECLINED_INCORRECT_NUMBER = 'incorrect_number';
96
+ const DECLINED_INCORRECT_CVC = 'incorrect_cvc';
97
+ const DECLINED_INCORRECT_PIN = 'incorrect_pin';
98
+ const DECLINED_INCORRECT_ZIP = 'incorrect_zip';
99
+ const DECLINED_INSUFFICIENT_FUNDS = 'insufficient_funds';
100
+ const DECLINED_INVALID_ACCOUNT = 'invalid_account';
101
+ const DECLINED_INVALID_AMOUNT = 'invalid_amount';
102
+ const DECLINED_INVALID_CVC = 'invalid_cvc';
103
+ const DECLINED_INVALID_EXPIRY_YEAR = 'invalid_expiry_year';
104
+ const DECLINED_INVALID_NUMBER = 'invalid_number';
105
+ const DECLINED_INVALID_PIN = 'invalid_pin';
106
+ const DECLINED_ISSUER_NOT_AVAILABLE = 'issuer_not_available';
107
+ const DECLINED_LOST_CARD = 'lost_card';
108
+ const DECLINED_MERCHANT_BLACKLIST = 'merchant_blacklist';
109
+ const DECLINED_NEW_ACCOUNT_INFORMATION_AVAILABLE = 'new_account_information_available';
110
+ const DECLINED_NO_ACTION_TAKEN = 'no_action_taken';
111
+ const DECLINED_NOT_PERMITTED = 'not_permitted';
112
+ const DECLINED_OFFLINE_PIN_REQUIRED = 'offline_pin_required';
113
+ const DECLINED_ONLINE_OR_OFFLINE_PIN_REQUIRED = 'online_or_offline_pin_required';
114
+ const DECLINED_PICKUP_CARD = 'pickup_card';
115
+ const DECLINED_PIN_TRY_EXCEEDED = 'pin_try_exceeded';
116
+ const DECLINED_PROCESSING_ERROR = 'processing_error';
117
+ const DECLINED_REENTER_TRANSACTION = 'reenter_transaction';
118
+ const DECLINED_RESTRICTED_CARD = 'restricted_card';
119
+ const DECLINED_REVOCATION_OF_ALL_AUTHORIZATIONS = 'revocation_of_all_authorizations';
120
+ const DECLINED_REVOCATION_OF_AUTHORIZATION = 'revocation_of_authorization';
121
+ const DECLINED_SECURITY_VIOLATION = 'security_violation';
122
+ const DECLINED_SERVICE_NOT_ALLOWED = 'service_not_allowed';
123
+ const DECLINED_STOLEN_CARD = 'stolen_card';
124
+ const DECLINED_STOP_PAYMENT_ORDER = 'stop_payment_order';
125
+ const DECLINED_TESTMODE_DECLINE = 'testmode_decline';
126
+ const DECLINED_TRANSACTION_NOT_ALLOWED = 'transaction_not_allowed';
127
+ const DECLINED_TRY_AGAIN_LATER = 'try_again_later';
128
+ const DECLINED_WITHDRAWAL_COUNT_LIMIT_EXCEEDED = 'withdrawal_count_limit_exceeded';
129
+
130
+ /**
131
+ * @param null|array $params
132
+ * @param null|array|string $opts
133
+ *
134
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
135
+ *
136
+ * @return \Stripe\Charge the captured charge
137
+ */
138
+ public function capture($params = null, $opts = null)
139
+ {
140
+ $url = $this->instanceUrl() . '/capture';
141
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
142
+ $this->refreshFrom($response, $opts);
143
+
144
+ return $this;
145
+ }
146
+ }
lib/stripe-php/lib/Checkout/Session.php ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Checkout;
6
+
7
+ /**
8
+ * A Checkout Session represents your customer's session as they pay for one-time
9
+ * purchases or subscriptions through <a
10
+ * href="https://stripe.com/docs/payments/checkout">Checkout</a>. We recommend
11
+ * creating a new Session each time your customer attempts to pay.
12
+ *
13
+ * Once payment is successful, the Checkout Session will contain a reference to the
14
+ * <a href="https://stripe.com/docs/api/customers">Customer</a>, and either the
15
+ * successful <a
16
+ * href="https://stripe.com/docs/api/payment_intents">PaymentIntent</a> or an
17
+ * active <a href="https://stripe.com/docs/api/subscriptions">Subscription</a>.
18
+ *
19
+ * You can create a Checkout Session on your server and pass its ID to the client
20
+ * to begin Checkout.
21
+ *
22
+ * Related guide: <a href="https://stripe.com/docs/payments/checkout/api">Checkout
23
+ * Server Quickstart</a>.
24
+ *
25
+ * @property string $id Unique identifier for the object. Used to pass to <code>redirectToCheckout</code> in Stripe.js.
26
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
27
+ * @property null|\Stripe\StripeObject $after_expiration When set, provides configuration for actions to take if this Checkout Session expires.
28
+ * @property null|bool $allow_promotion_codes Enables user redeemable promotion codes.
29
+ * @property null|int $amount_subtotal Total of all items before discounts or taxes are applied.
30
+ * @property null|int $amount_total Total of all items after discounts and taxes are applied.
31
+ * @property \Stripe\StripeObject $automatic_tax
32
+ * @property null|string $billing_address_collection Describes whether Checkout should collect the customer's billing address.
33
+ * @property string $cancel_url The URL the customer will be directed to if they decide to cancel payment and return to your website.
34
+ * @property null|string $client_reference_id A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the Session with your internal systems.
35
+ * @property null|\Stripe\StripeObject $consent Results of <code>consent_collection</code> for this session.
36
+ * @property null|\Stripe\StripeObject $consent_collection When set, provides configuration for the Checkout Session to gather active consent from customers.
37
+ * @property null|string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
38
+ * @property null|string|\Stripe\Customer $customer The ID of the customer for this Session. For Checkout Sessions in <code>payment</code> or <code>subscription</code> mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.
39
+ * @property null|\Stripe\StripeObject $customer_details The customer details including the customer's tax exempt status and the customer's tax IDs. Only present on Sessions in <code>payment</code> or <code>subscription</code> mode.
40
+ * @property null|string $customer_email If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once the payment flow is complete, use the <code>customer</code> attribute.
41
+ * @property int $expires_at The timestamp at which the Checkout Session will expire.
42
+ * @property \Stripe\Collection $line_items The line items purchased by the customer.
43
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
44
+ * @property null|string $locale The IETF language tag of the locale Checkout is displayed in. If blank or <code>auto</code>, the browser's locale is used.
45
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
46
+ * @property string $mode The mode of the Checkout Session.
47
+ * @property null|string|\Stripe\PaymentIntent $payment_intent The ID of the PaymentIntent for Checkout Sessions in <code>payment</code> mode.
48
+ * @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
49
+ * @property string[] $payment_method_types A list of the types of payment methods (e.g. card) this Checkout Session is allowed to accept.
50
+ * @property string $payment_status The payment status of the Checkout Session, one of <code>paid</code>, <code>unpaid</code>, or <code>no_payment_required</code>. You can use this value to decide when to fulfill your customer's order.
51
+ * @property \Stripe\StripeObject $phone_number_collection
52
+ * @property null|string $recovered_from The ID of the original expired Checkout Session that triggered the recovery flow.
53
+ * @property null|string|\Stripe\SetupIntent $setup_intent The ID of the SetupIntent for Checkout Sessions in <code>setup</code> mode.
54
+ * @property null|\Stripe\StripeObject $shipping Shipping information for this Checkout Session.
55
+ * @property null|\Stripe\StripeObject $shipping_address_collection When set, provides configuration for Checkout to collect a shipping address from a customer.
56
+ * @property null|string $submit_type Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button. <code>submit_type</code> can only be specified on Checkout Sessions in <code>payment</code> mode, but not Checkout Sessions in <code>subscription</code> or <code>setup</code> mode.
57
+ * @property null|string|\Stripe\Subscription $subscription The ID of the subscription for Checkout Sessions in <code>subscription</code> mode.
58
+ * @property string $success_url The URL the customer will be directed to after the payment or subscription creation is successful.
59
+ * @property \Stripe\StripeObject $tax_id_collection
60
+ * @property null|\Stripe\StripeObject $total_details Tax and discount details for the computed total amount.
61
+ * @property null|string $url The URL to the Checkout Session.
62
+ */
63
+ class Session extends \Stripe\ApiResource
64
+ {
65
+ const OBJECT_NAME = 'checkout.session';
66
+
67
+ use \Stripe\ApiOperations\All;
68
+ use \Stripe\ApiOperations\Create;
69
+ use \Stripe\ApiOperations\NestedResource;
70
+ use \Stripe\ApiOperations\Retrieve;
71
+
72
+ const BILLING_ADDRESS_COLLECTION_AUTO = 'auto';
73
+ const BILLING_ADDRESS_COLLECTION_REQUIRED = 'required';
74
+
75
+ const MODE_PAYMENT = 'payment';
76
+ const MODE_SETUP = 'setup';
77
+ const MODE_SUBSCRIPTION = 'subscription';
78
+
79
+ const PAYMENT_STATUS_NO_PAYMENT_REQUIRED = 'no_payment_required';
80
+ const PAYMENT_STATUS_PAID = 'paid';
81
+ const PAYMENT_STATUS_UNPAID = 'unpaid';
82
+
83
+ const SUBMIT_TYPE_AUTO = 'auto';
84
+ const SUBMIT_TYPE_BOOK = 'book';
85
+ const SUBMIT_TYPE_DONATE = 'donate';
86
+ const SUBMIT_TYPE_PAY = 'pay';
87
+
88
+ const PATH_LINE_ITEMS = '/line_items';
89
+
90
+ /**
91
+ * @param string $id the ID of the session on which to retrieve the items
92
+ * @param null|array $params
93
+ * @param null|array|string $opts
94
+ *
95
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
96
+ *
97
+ * @return \Stripe\Collection the list of items
98
+ */
99
+ public static function allLineItems($id, $params = null, $opts = null)
100
+ {
101
+ return self::_allNestedResources($id, static::PATH_LINE_ITEMS, $params, $opts);
102
+ }
103
+ }
lib/stripe-php/lib/Collection.php ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Class Collection.
7
+ *
8
+ * @property string $object
9
+ * @property string $url
10
+ * @property bool $has_more
11
+ * @property \Stripe\StripeObject[] $data
12
+ */
13
+ class Collection extends StripeObject implements \Countable, \IteratorAggregate
14
+ {
15
+ const OBJECT_NAME = 'list';
16
+
17
+ use ApiOperations\Request;
18
+
19
+ /** @var array */
20
+ protected $filters = [];
21
+
22
+ /**
23
+ * @return string the base URL for the given class
24
+ */
25
+ public static function baseUrl()
26
+ {
27
+ return Stripe::$apiBase;
28
+ }
29
+
30
+ /**
31
+ * Returns the filters.
32
+ *
33
+ * @return array the filters
34
+ */
35
+ public function getFilters()
36
+ {
37
+ return $this->filters;
38
+ }
39
+
40
+ /**
41
+ * Sets the filters, removing paging options.
42
+ *
43
+ * @param array $filters the filters
44
+ */
45
+ public function setFilters($filters)
46
+ {
47
+ $this->filters = $filters;
48
+ }
49
+
50
+ public function offsetGet($k)
51
+ {
52
+ if (\is_string($k)) {
53
+ return parent::offsetGet($k);
54
+ }
55
+ $msg = "You tried to access the {$k} index, but Collection " .
56
+ 'types only support string keys. (HINT: List calls ' .
57
+ 'return an object with a `data` (which is the data ' .
58
+ "array). You likely want to call ->data[{$k}])";
59
+
60
+ throw new Exception\InvalidArgumentException($msg);
61
+ }
62
+
63
+ public function all($params = null, $opts = null)
64
+ {
65
+ self::_validateParams($params);
66
+ list($url, $params) = $this->extractPathAndUpdateParams($params);
67
+
68
+ list($response, $opts) = $this->_request('get', $url, $params, $opts);
69
+ $obj = Util\Util::convertToStripeObject($response, $opts);
70
+ if (!($obj instanceof \Stripe\Collection)) {
71
+ throw new \Stripe\Exception\UnexpectedValueException(
72
+ 'Expected type ' . \Stripe\Collection::class . ', got "' . \get_class($obj) . '" instead.'
73
+ );
74
+ }
75
+ $obj->setFilters($params);
76
+
77
+ return $obj;
78
+ }
79
+
80
+ public function create($params = null, $opts = null)
81
+ {
82
+ self::_validateParams($params);
83
+ list($url, $params) = $this->extractPathAndUpdateParams($params);
84
+
85
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
86
+
87
+ return Util\Util::convertToStripeObject($response, $opts);
88
+ }
89
+
90
+ public function retrieve($id, $params = null, $opts = null)
91
+ {
92
+ self::_validateParams($params);
93
+ list($url, $params) = $this->extractPathAndUpdateParams($params);
94
+
95
+ $id = Util\Util::utf8($id);
96
+ $extn = \urlencode($id);
97
+ list($response, $opts) = $this->_request(
98
+ 'get',
99
+ "{$url}/{$extn}",
100
+ $params,
101
+ $opts
102
+ );
103
+
104
+ return Util\Util::convertToStripeObject($response, $opts);
105
+ }
106
+
107
+ /**
108
+ * @return int the number of objects in the current page
109
+ */
110
+ public function count()
111
+ {
112
+ return \count($this->data);
113
+ }
114
+
115
+ /**
116
+ * @return \ArrayIterator an iterator that can be used to iterate
117
+ * across objects in the current page
118
+ */
119
+ public function getIterator()
120
+ {
121
+ return new \ArrayIterator($this->data);
122
+ }
123
+
124
+ /**
125
+ * @return \ArrayIterator an iterator that can be used to iterate
126
+ * backwards across objects in the current page
127
+ */
128
+ public function getReverseIterator()
129
+ {
130
+ return new \ArrayIterator(\array_reverse($this->data));
131
+ }
132
+
133
+ /**
134
+ * @return \Generator|StripeObject[] A generator that can be used to
135
+ * iterate across all objects across all pages. As page boundaries are
136
+ * encountered, the next page will be fetched automatically for
137
+ * continued iteration.
138
+ */
139
+ public function autoPagingIterator()
140
+ {
141
+ $page = $this;
142
+
143
+ while (true) {
144
+ $filters = $this->filters ?: [];
145
+ if (\array_key_exists('ending_before', $filters)
146
+ && !\array_key_exists('starting_after', $filters)) {
147
+ foreach ($page->getReverseIterator() as $item) {
148
+ yield $item;
149
+ }
150
+ $page = $page->previousPage();
151
+ } else {
152
+ foreach ($page as $item) {
153
+ yield $item;
154
+ }
155
+ $page = $page->nextPage();
156
+ }
157
+
158
+ if ($page->isEmpty()) {
159
+ break;
160
+ }
161
+ }
162
+ }
163
+
164
+ /**
165
+ * Returns an empty collection. This is returned from {@see nextPage()}
166
+ * when we know that there isn't a next page in order to replicate the
167
+ * behavior of the API when it attempts to return a page beyond the last.
168
+ *
169
+ * @param null|array|string $opts
170
+ *
171
+ * @return Collection
172
+ */
173
+ public static function emptyCollection($opts = null)
174
+ {
175
+ return Collection::constructFrom(['data' => []], $opts);
176
+ }
177
+
178
+ /**
179
+ * Returns true if the page object contains no element.
180
+ *
181
+ * @return bool
182
+ */
183
+ public function isEmpty()
184
+ {
185
+ return empty($this->data);
186
+ }
187
+
188
+ /**
189
+ * Fetches the next page in the resource list (if there is one).
190
+ *
191
+ * This method will try to respect the limit of the current page. If none
192
+ * was given, the default limit will be fetched again.
193
+ *
194
+ * @param null|array $params
195
+ * @param null|array|string $opts
196
+ *
197
+ * @return Collection
198
+ */
199
+ public function nextPage($params = null, $opts = null)
200
+ {
201
+ if (!$this->has_more) {
202
+ return static::emptyCollection($opts);
203
+ }
204
+
205
+ $lastId = \end($this->data)->id;
206
+
207
+ $params = \array_merge(
208
+ $this->filters ?: [],
209
+ ['starting_after' => $lastId],
210
+ $params ?: []
211
+ );
212
+
213
+ return $this->all($params, $opts);
214
+ }
215
+
216
+ /**
217
+ * Fetches the previous page in the resource list (if there is one).
218
+ *
219
+ * This method will try to respect the limit of the current page. If none
220
+ * was given, the default limit will be fetched again.
221
+ *
222
+ * @param null|array $params
223
+ * @param null|array|string $opts
224
+ *
225
+ * @return Collection
226
+ */
227
+ public function previousPage($params = null, $opts = null)
228
+ {
229
+ if (!$this->has_more) {
230
+ return static::emptyCollection($opts);
231
+ }
232
+
233
+ $firstId = $this->data[0]->id;
234
+
235
+ $params = \array_merge(
236
+ $this->filters ?: [],
237
+ ['ending_before' => $firstId],
238
+ $params ?: []
239
+ );
240
+
241
+ return $this->all($params, $opts);
242
+ }
243
+
244
+ /**
245
+ * Gets the first item from the current page. Returns `null` if the current page is empty.
246
+ *
247
+ * @return null|\Stripe\StripeObject
248
+ */
249
+ public function first()
250
+ {
251
+ return \count($this->data) > 0 ? $this->data[0] : null;
252
+ }
253
+
254
+ /**
255
+ * Gets the last item from the current page. Returns `null` if the current page is empty.
256
+ *
257
+ * @return null|\Stripe\StripeObject
258
+ */
259
+ public function last()
260
+ {
261
+ return \count($this->data) > 0 ? $this->data[\count($this->data) - 1] : null;
262
+ }
263
+
264
+ private function extractPathAndUpdateParams($params)
265
+ {
266
+ $url = \parse_url($this->url);
267
+ if (!isset($url['path'])) {
268
+ throw new Exception\UnexpectedValueException("Could not parse list url into parts: {$url}");
269
+ }
270
+
271
+ if (isset($url['query'])) {
272
+ // If the URL contains a query param, parse it out into $params so they
273
+ // don't interact weirdly with each other.
274
+ $query = [];
275
+ \parse_str($url['query'], $query);
276
+ $params = \array_merge($params ?: [], $query);
277
+ }
278
+
279
+ return [$url['path'], $params];
280
+ }
281
+ }
lib/stripe-php/lib/CountrySpec.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Stripe needs to collect certain pieces of information about each account
9
+ * created. These requirements can differ depending on the account's country. The
10
+ * Country Specs API makes these rules available to your integration.
11
+ *
12
+ * You can also view the information from this API call as <a
13
+ * href="/docs/connect/required-verification-information">an online guide</a>.
14
+ *
15
+ * @property string $id Unique identifier for the object. Represented as the ISO country code for this country.
16
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
17
+ * @property string $default_currency The default currency for this country. This applies to both payment methods and bank accounts.
18
+ * @property \Stripe\StripeObject $supported_bank_account_currencies Currencies that can be accepted in the specific country (for transfers).
19
+ * @property string[] $supported_payment_currencies Currencies that can be accepted in the specified country (for payments).
20
+ * @property string[] $supported_payment_methods Payment methods available in the specified country. You may need to enable some payment methods (e.g., <a href="https://stripe.com/docs/ach">ACH</a>) on your account before they appear in this list. The <code>stripe</code> payment method refers to <a href="https://stripe.com/docs/connect/destination-charges">charging through your platform</a>.
21
+ * @property string[] $supported_transfer_countries Countries that can accept transfers from the specified country.
22
+ * @property \Stripe\StripeObject $verification_fields
23
+ */
24
+ class CountrySpec extends ApiResource
25
+ {
26
+ const OBJECT_NAME = 'country_spec';
27
+
28
+ use ApiOperations\All;
29
+ use ApiOperations\Retrieve;
30
+ }
lib/stripe-php/lib/Coupon.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * A coupon contains information about a percent-off or amount-off discount you
9
+ * might want to apply to a customer. Coupons may be applied to <a
10
+ * href="https://stripe.com/docs/api#invoices">invoices</a> or <a
11
+ * href="https://stripe.com/docs/api#create_order-coupon">orders</a>. Coupons do
12
+ * not work with conventional one-off <a
13
+ * href="https://stripe.com/docs/api#create_charge">charges</a>.
14
+ *
15
+ * @property string $id Unique identifier for the object.
16
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
17
+ * @property null|int $amount_off Amount (in the <code>currency</code> specified) that will be taken off the subtotal of any invoices for this customer.
18
+ * @property \Stripe\StripeObject $applies_to
19
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
20
+ * @property null|string $currency If <code>amount_off</code> has been set, the three-letter <a href="https://stripe.com/docs/currencies">ISO code for the currency</a> of the amount to take off.
21
+ * @property string $duration One of <code>forever</code>, <code>once</code>, and <code>repeating</code>. Describes how long a customer who applies this coupon will get the discount.
22
+ * @property null|int $duration_in_months If <code>duration</code> is <code>repeating</code>, the number of months the coupon applies. Null if coupon <code>duration</code> is <code>forever</code> or <code>once</code>.
23
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
24
+ * @property null|int $max_redemptions Maximum number of times this coupon can be redeemed, in total, across all customers, before it is no longer valid.
25
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
26
+ * @property null|string $name Name of the coupon displayed to customers on for instance invoices or receipts.
27
+ * @property null|float $percent_off Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percent_off of 50 will make a %s100 invoice %s50 instead.
28
+ * @property null|int $redeem_by Date after which the coupon can no longer be redeemed.
29
+ * @property int $times_redeemed Number of times this coupon has been applied to a customer.
30
+ * @property bool $valid Taking account of the above properties, whether this coupon can still be applied to a customer.
31
+ */
32
+ class Coupon extends ApiResource
33
+ {
34
+ const OBJECT_NAME = 'coupon';
35
+
36
+ use ApiOperations\All;
37
+ use ApiOperations\Create;
38
+ use ApiOperations\Delete;
39
+ use ApiOperations\Retrieve;
40
+ use ApiOperations\Update;
41
+ }
lib/stripe-php/lib/CreditNote.php ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Issue a credit note to adjust an invoice's amount after the invoice is
9
+ * finalized.
10
+ *
11
+ * Related guide: <a
12
+ * href="https://stripe.com/docs/billing/invoices/credit-notes">Credit Notes</a>.
13
+ *
14
+ * @property string $id Unique identifier for the object.
15
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
16
+ * @property int $amount The integer amount in %s representing the total amount of the credit note, including tax.
17
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
18
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
19
+ * @property string|\Stripe\Customer $customer ID of the customer.
20
+ * @property null|string|\Stripe\CustomerBalanceTransaction $customer_balance_transaction Customer balance transaction related to this credit note.
21
+ * @property int $discount_amount The integer amount in %s representing the total amount of discount that was credited.
22
+ * @property \Stripe\StripeObject[] $discount_amounts The aggregate amounts calculated per discount for all line items.
23
+ * @property string|\Stripe\Invoice $invoice ID of the invoice.
24
+ * @property \Stripe\Collection $lines Line items that make up the credit note
25
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
26
+ * @property null|string $memo Customer-facing text that appears on the credit note PDF.
27
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
28
+ * @property string $number A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice.
29
+ * @property null|int $out_of_band_amount Amount that was credited outside of Stripe.
30
+ * @property string $pdf The link to download the PDF of the credit note.
31
+ * @property null|string $reason Reason for issuing this credit note, one of <code>duplicate</code>, <code>fraudulent</code>, <code>order_change</code>, or <code>product_unsatisfactory</code>
32
+ * @property null|string|\Stripe\Refund $refund Refund related to this credit note.
33
+ * @property string $status Status of this credit note, one of <code>issued</code> or <code>void</code>. Learn more about <a href="https://stripe.com/docs/billing/invoices/credit-notes#voiding">voiding credit notes</a>.
34
+ * @property int $subtotal The integer amount in %s representing the amount of the credit note, excluding tax and invoice level discounts.
35
+ * @property \Stripe\StripeObject[] $tax_amounts The aggregate amounts calculated per tax rate for all line items.
36
+ * @property int $total The integer amount in %s representing the total amount of the credit note, including tax and all discount.
37
+ * @property string $type Type of this credit note, one of <code>pre_payment</code> or <code>post_payment</code>. A <code>pre_payment</code> credit note means it was issued when the invoice was open. A <code>post_payment</code> credit note means it was issued when the invoice was paid.
38
+ * @property null|int $voided_at The time that the credit note was voided.
39
+ */
40
+ class CreditNote extends ApiResource
41
+ {
42
+ const OBJECT_NAME = 'credit_note';
43
+
44
+ use ApiOperations\All;
45
+ use ApiOperations\Create;
46
+ use ApiOperations\NestedResource;
47
+ use ApiOperations\Retrieve;
48
+ use ApiOperations\Update;
49
+
50
+ const REASON_DUPLICATE = 'duplicate';
51
+ const REASON_FRAUDULENT = 'fraudulent';
52
+ const REASON_ORDER_CHANGE = 'order_change';
53
+ const REASON_PRODUCT_UNSATISFACTORY = 'product_unsatisfactory';
54
+
55
+ const STATUS_ISSUED = 'issued';
56
+ const STATUS_VOID = 'void';
57
+
58
+ const TYPE_POST_PAYMENT = 'post_payment';
59
+ const TYPE_PRE_PAYMENT = 'pre_payment';
60
+
61
+ /**
62
+ * @param null|array $params
63
+ * @param null|array|string $opts
64
+ *
65
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
66
+ *
67
+ * @return \Stripe\CreditNote the previewed credit note
68
+ */
69
+ public static function preview($params = null, $opts = null)
70
+ {
71
+ $url = static::classUrl() . '/preview';
72
+ list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
73
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
74
+ $obj->setLastResponse($response);
75
+
76
+ return $obj;
77
+ }
78
+
79
+ /**
80
+ * @param null|array $params
81
+ * @param null|array|string $opts
82
+ *
83
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
84
+ *
85
+ * @return \Stripe\CreditNote the voided credit note
86
+ */
87
+ public function voidCreditNote($params = null, $opts = null)
88
+ {
89
+ $url = $this->instanceUrl() . '/void';
90
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
91
+ $this->refreshFrom($response, $opts);
92
+
93
+ return $this;
94
+ }
95
+
96
+ const PATH_LINES = '/lines';
97
+
98
+ /**
99
+ * @param string $id the ID of the credit note on which to retrieve the credit note line items
100
+ * @param null|array $params
101
+ * @param null|array|string $opts
102
+ *
103
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
104
+ *
105
+ * @return \Stripe\Collection the list of credit note line items
106
+ */
107
+ public static function allLines($id, $params = null, $opts = null)
108
+ {
109
+ return self::_allNestedResources($id, static::PATH_LINES, $params, $opts);
110
+ }
111
+ }
lib/stripe-php/lib/CreditNoteLineItem.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * @property string $id Unique identifier for the object.
9
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
10
+ * @property int $amount The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
11
+ * @property null|string $description Description of the item being credited.
12
+ * @property int $discount_amount The integer amount in %s representing the discount being credited for this line item.
13
+ * @property \Stripe\StripeObject[] $discount_amounts The amount of discount calculated per discount for this line item
14
+ * @property string $invoice_line_item ID of the invoice line item being credited
15
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
16
+ * @property null|int $quantity The number of units of product being credited.
17
+ * @property \Stripe\StripeObject[] $tax_amounts The amount of tax calculated per tax rate for this line item
18
+ * @property \Stripe\TaxRate[] $tax_rates The tax rates which apply to the line item.
19
+ * @property string $type The type of the credit note line item, one of <code>invoice_line_item</code> or <code>custom_line_item</code>. When the type is <code>invoice_line_item</code> there is an additional <code>invoice_line_item</code> property on the resource the value of which is the id of the credited line item on the invoice.
20
+ * @property null|int $unit_amount The cost of each unit of product being credited.
21
+ * @property null|string $unit_amount_decimal Same as <code>unit_amount</code>, but contains a decimal value with at most 12 decimal places.
22
+ */
23
+ class CreditNoteLineItem extends ApiResource
24
+ {
25
+ const OBJECT_NAME = 'credit_note_line_item';
26
+ }
lib/stripe-php/lib/Customer.php ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * <code>Customer</code> objects allow you to perform recurring charges, and to
9
+ * track multiple charges, that are associated with the same customer. The API
10
+ * allows you to create, delete, and update your customers. You can retrieve
11
+ * individual customers as well as a list of all your customers.
12
+ *
13
+ * Related guide: <a
14
+ * href="https://stripe.com/docs/payments/save-during-payment">Save a card during
15
+ * payment</a>.
16
+ *
17
+ * @property string $id Unique identifier for the object.
18
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
19
+ * @property null|\Stripe\StripeObject $address The customer's address.
20
+ * @property int $balance Current balance, if any, being stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that will be added to their next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account as invoices are finalized.
21
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
22
+ * @property null|string $currency Three-letter <a href="https://stripe.com/docs/currencies">ISO code for the currency</a> the customer can be charged in for recurring billing purposes.
23
+ * @property null|string|\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source $default_source <p>ID of the default payment source for the customer.</p><p>If you are using payment methods created via the PaymentMethods API, see the <a href="https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method</a> field instead.</p>
24
+ * @property null|bool $delinquent <p>When the customer's latest invoice is billed by charging automatically, <code>delinquent</code> is <code>true</code> if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, <code>delinquent</code> is <code>true</code> if the invoice isn't paid by its due date.</p><p>If an invoice is marked uncollectible by <a href="https://stripe.com/docs/billing/automatic-collection">dunning</a>, <code>delinquent</code> doesn't get reset to <code>false</code>.</p>
25
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
26
+ * @property null|\Stripe\Discount $discount Describes the current discount active on the customer, if there is one.
27
+ * @property null|string $email The customer's email address.
28
+ * @property null|string $invoice_prefix The prefix for the customer used to generate unique invoice numbers.
29
+ * @property \Stripe\StripeObject $invoice_settings
30
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
31
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
32
+ * @property null|string $name The customer's full name or business name.
33
+ * @property int $next_invoice_sequence The suffix of the customer's next invoice number, e.g., 0001.
34
+ * @property null|string $phone The customer's phone number.
35
+ * @property null|string[] $preferred_locales The customer's preferred locales (languages), ordered by preference.
36
+ * @property null|\Stripe\StripeObject $shipping Mailing and shipping address for the customer. Appears on invoices emailed to this customer.
37
+ * @property \Stripe\Collection $sources The customer's payment sources, if any.
38
+ * @property \Stripe\Collection $subscriptions The customer's current subscriptions, if any.
39
+ * @property \Stripe\StripeObject $tax
40
+ * @property null|string $tax_exempt Describes the customer's tax exemption status. One of <code>none</code>, <code>exempt</code>, or <code>reverse</code>. When set to <code>reverse</code>, invoice and receipt PDFs include the text <strong>&quot;Reverse charge&quot;</strong>.
41
+ * @property \Stripe\Collection $tax_ids The customer's tax IDs.
42
+ */
43
+ class Customer extends ApiResource
44
+ {
45
+ const OBJECT_NAME = 'customer';
46
+
47
+ use ApiOperations\All;
48
+ use ApiOperations\Create;
49
+ use ApiOperations\Delete;
50
+ use ApiOperations\NestedResource;
51
+ use ApiOperations\Retrieve;
52
+ use ApiOperations\Update;
53
+
54
+ const TAX_EXEMPT_EXEMPT = 'exempt';
55
+ const TAX_EXEMPT_NONE = 'none';
56
+ const TAX_EXEMPT_REVERSE = 'reverse';
57
+
58
+ public static function getSavedNestedResources()
59
+ {
60
+ static $savedNestedResources = null;
61
+ if (null === $savedNestedResources) {
62
+ $savedNestedResources = new Util\Set([
63
+ 'source',
64
+ ]);
65
+ }
66
+
67
+ return $savedNestedResources;
68
+ }
69
+
70
+ /**
71
+ * @param null|array $params
72
+ * @param null|array|string $opts
73
+ *
74
+ * @return \Stripe\Customer the updated customer
75
+ */
76
+ public function deleteDiscount($params = null, $opts = null)
77
+ {
78
+ $url = $this->instanceUrl() . '/discount';
79
+ list($response, $opts) = $this->_request('delete', $url, $params, $opts);
80
+ $this->refreshFrom(['discount' => null], $opts, true);
81
+ }
82
+
83
+ /**
84
+ * @param null|array $params
85
+ * @param null|array|string $opts
86
+ * @param mixed $id
87
+ *
88
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
89
+ *
90
+ * @return \Stripe\Collection list of PaymentMethods
91
+ */
92
+ public static function allPaymentMethods($id, $params = null, $opts = null)
93
+ {
94
+ $url = static::resourceUrl($id) . '/payment_methods';
95
+ list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
96
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
97
+ $obj->setLastResponse($response);
98
+
99
+ return $obj;
100
+ }
101
+
102
+ const PATH_BALANCE_TRANSACTIONS = '/balance_transactions';
103
+
104
+ /**
105
+ * @param string $id the ID of the customer on which to retrieve the customer balance transactions
106
+ * @param null|array $params
107
+ * @param null|array|string $opts
108
+ *
109
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
110
+ *
111
+ * @return \Stripe\Collection the list of customer balance transactions
112
+ */
113
+ public static function allBalanceTransactions($id, $params = null, $opts = null)
114
+ {
115
+ return self::_allNestedResources($id, static::PATH_BALANCE_TRANSACTIONS, $params, $opts);
116
+ }
117
+
118
+ /**
119
+ * @param string $id the ID of the customer on which to create the customer balance transaction
120
+ * @param null|array $params
121
+ * @param null|array|string $opts
122
+ *
123
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
124
+ *
125
+ * @return \Stripe\CustomerBalanceTransaction
126
+ */
127
+ public static function createBalanceTransaction($id, $params = null, $opts = null)
128
+ {
129
+ return self::_createNestedResource($id, static::PATH_BALANCE_TRANSACTIONS, $params, $opts);
130
+ }
131
+
132
+ /**
133
+ * @param string $id the ID of the customer to which the customer balance transaction belongs
134
+ * @param string $balanceTransactionId the ID of the customer balance transaction to retrieve
135
+ * @param null|array $params
136
+ * @param null|array|string $opts
137
+ *
138
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
139
+ *
140
+ * @return \Stripe\CustomerBalanceTransaction
141
+ */
142
+ public static function retrieveBalanceTransaction($id, $balanceTransactionId, $params = null, $opts = null)
143
+ {
144
+ return self::_retrieveNestedResource($id, static::PATH_BALANCE_TRANSACTIONS, $balanceTransactionId, $params, $opts);
145
+ }
146
+
147
+ /**
148
+ * @param string $id the ID of the customer to which the customer balance transaction belongs
149
+ * @param string $balanceTransactionId the ID of the customer balance transaction to update
150
+ * @param null|array $params
151
+ * @param null|array|string $opts
152
+ *
153
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
154
+ *
155
+ * @return \Stripe\CustomerBalanceTransaction
156
+ */
157
+ public static function updateBalanceTransaction($id, $balanceTransactionId, $params = null, $opts = null)
158
+ {
159
+ return self::_updateNestedResource($id, static::PATH_BALANCE_TRANSACTIONS, $balanceTransactionId, $params, $opts);
160
+ }
161
+
162
+ const PATH_SOURCES = '/sources';
163
+
164
+ /**
165
+ * @param string $id the ID of the customer on which to retrieve the payment sources
166
+ * @param null|array $params
167
+ * @param null|array|string $opts
168
+ *
169
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
170
+ *
171
+ * @return \Stripe\Collection the list of payment sources (AlipayAccount, BankAccount, BitcoinReceiver, Card or Source)
172
+ */
173
+ public static function allSources($id, $params = null, $opts = null)
174
+ {
175
+ return self::_allNestedResources($id, static::PATH_SOURCES, $params, $opts);
176
+ }
177
+
178
+ /**
179
+ * @param string $id the ID of the customer on which to create the payment source
180
+ * @param null|array $params
181
+ * @param null|array|string $opts
182
+ *
183
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
184
+ *
185
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
186
+ */
187
+ public static function createSource($id, $params = null, $opts = null)
188
+ {
189
+ return self::_createNestedResource($id, static::PATH_SOURCES, $params, $opts);
190
+ }
191
+
192
+ /**
193
+ * @param string $id the ID of the customer to which the payment source belongs
194
+ * @param string $sourceId the ID of the payment source to delete
195
+ * @param null|array $params
196
+ * @param null|array|string $opts
197
+ *
198
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
199
+ *
200
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
201
+ */
202
+ public static function deleteSource($id, $sourceId, $params = null, $opts = null)
203
+ {
204
+ return self::_deleteNestedResource($id, static::PATH_SOURCES, $sourceId, $params, $opts);
205
+ }
206
+
207
+ /**
208
+ * @param string $id the ID of the customer to which the payment source belongs
209
+ * @param string $sourceId the ID of the payment source to retrieve
210
+ * @param null|array $params
211
+ * @param null|array|string $opts
212
+ *
213
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
214
+ *
215
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
216
+ */
217
+ public static function retrieveSource($id, $sourceId, $params = null, $opts = null)
218
+ {
219
+ return self::_retrieveNestedResource($id, static::PATH_SOURCES, $sourceId, $params, $opts);
220
+ }
221
+
222
+ /**
223
+ * @param string $id the ID of the customer to which the payment source belongs
224
+ * @param string $sourceId the ID of the payment source to update
225
+ * @param null|array $params
226
+ * @param null|array|string $opts
227
+ *
228
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
229
+ *
230
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
231
+ */
232
+ public static function updateSource($id, $sourceId, $params = null, $opts = null)
233
+ {
234
+ return self::_updateNestedResource($id, static::PATH_SOURCES, $sourceId, $params, $opts);
235
+ }
236
+
237
+ const PATH_TAX_IDS = '/tax_ids';
238
+
239
+ /**
240
+ * @param string $id the ID of the customer on which to retrieve the tax ids
241
+ * @param null|array $params
242
+ * @param null|array|string $opts
243
+ *
244
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
245
+ *
246
+ * @return \Stripe\Collection the list of tax ids
247
+ */
248
+ public static function allTaxIds($id, $params = null, $opts = null)
249
+ {
250
+ return self::_allNestedResources($id, static::PATH_TAX_IDS, $params, $opts);
251
+ }
252
+
253
+ /**
254
+ * @param string $id the ID of the customer on which to create the tax id
255
+ * @param null|array $params
256
+ * @param null|array|string $opts
257
+ *
258
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
259
+ *
260
+ * @return \Stripe\TaxId
261
+ */
262
+ public static function createTaxId($id, $params = null, $opts = null)
263
+ {
264
+ return self::_createNestedResource($id, static::PATH_TAX_IDS, $params, $opts);
265
+ }
266
+
267
+ /**
268
+ * @param string $id the ID of the customer to which the tax id belongs
269
+ * @param string $taxIdId the ID of the tax id to delete
270
+ * @param null|array $params
271
+ * @param null|array|string $opts
272
+ *
273
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
274
+ *
275
+ * @return \Stripe\TaxId
276
+ */
277
+ public static function deleteTaxId($id, $taxIdId, $params = null, $opts = null)
278
+ {
279
+ return self::_deleteNestedResource($id, static::PATH_TAX_IDS, $taxIdId, $params, $opts);
280
+ }
281
+
282
+ /**
283
+ * @param string $id the ID of the customer to which the tax id belongs
284
+ * @param string $taxIdId the ID of the tax id to retrieve
285
+ * @param null|array $params
286
+ * @param null|array|string $opts
287
+ *
288
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
289
+ *
290
+ * @return \Stripe\TaxId
291
+ */
292
+ public static function retrieveTaxId($id, $taxIdId, $params = null, $opts = null)
293
+ {
294
+ return self::_retrieveNestedResource($id, static::PATH_TAX_IDS, $taxIdId, $params, $opts);
295
+ }
296
+ }
lib/stripe-php/lib/CustomerBalanceTransaction.php ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Each customer has a <a
9
+ * href="https://stripe.com/docs/api/customers/object#customer_object-balance"><code>balance</code></a>
10
+ * value, which denotes a debit or credit that's automatically applied to their
11
+ * next invoice upon finalization. You may modify the value directly by using the
12
+ * <a href="https://stripe.com/docs/api/customers/update">update customer API</a>,
13
+ * or by creating a Customer Balance Transaction, which increments or decrements
14
+ * the customer's <code>balance</code> by the specified <code>amount</code>.
15
+ *
16
+ * Related guide: <a
17
+ * href="https://stripe.com/docs/billing/customer/balance">Customer Balance</a> to
18
+ * learn more.
19
+ *
20
+ * @property string $id Unique identifier for the object.
21
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
22
+ * @property int $amount The amount of the transaction. A negative value is a credit for the customer's balance, and a positive value is a debit to the customer's <code>balance</code>.
23
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
24
+ * @property null|string|\Stripe\CreditNote $credit_note The ID of the credit note (if any) related to the transaction.
25
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
26
+ * @property string|\Stripe\Customer $customer The ID of the customer the transaction belongs to.
27
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
28
+ * @property int $ending_balance The customer's <code>balance</code> after the transaction was applied. A negative value decreases the amount due on the customer's next invoice. A positive value increases the amount due on the customer's next invoice.
29
+ * @property null|string|\Stripe\Invoice $invoice The ID of the invoice (if any) related to the transaction.
30
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
31
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
32
+ * @property string $type Transaction type: <code>adjustment</code>, <code>applied_to_invoice</code>, <code>credit_note</code>, <code>initial</code>, <code>invoice_too_large</code>, <code>invoice_too_small</code>, <code>unspent_receiver_credit</code>, or <code>unapplied_from_invoice</code>. See the <a href="https://stripe.com/docs/billing/customer/balance#types">Customer Balance page</a> to learn more about transaction types.
33
+ */
34
+ class CustomerBalanceTransaction extends ApiResource
35
+ {
36
+ const OBJECT_NAME = 'customer_balance_transaction';
37
+
38
+ const TYPE_ADJUSTMENT = 'adjustment';
39
+ const TYPE_APPLIED_TO_INVOICE = 'applied_to_invoice';
40
+ const TYPE_CREDIT_NOTE = 'credit_note';
41
+ const TYPE_INITIAL = 'initial';
42
+ const TYPE_INVOICE_TOO_LARGE = 'invoice_too_large';
43
+ const TYPE_INVOICE_TOO_SMALL = 'invoice_too_small';
44
+ const TYPE_UNSPENT_RECEIVER_CREDIT = 'unspent_receiver_credit';
45
+
46
+ const TYPE_ADJUSTEMENT = 'adjustment';
47
+
48
+ /**
49
+ * @return string the API URL for this balance transaction
50
+ */
51
+ public function instanceUrl()
52
+ {
53
+ $id = $this['id'];
54
+ $customer = $this['customer'];
55
+ if (!$id) {
56
+ throw new Exception\UnexpectedValueException(
57
+ "Could not determine which URL to request: class instance has invalid ID: {$id}",
58
+ null
59
+ );
60
+ }
61
+ $id = Util\Util::utf8($id);
62
+ $customer = Util\Util::utf8($customer);
63
+
64
+ $base = Customer::classUrl();
65
+ $customerExtn = \urlencode($customer);
66
+ $extn = \urlencode($id);
67
+
68
+ return "{$base}/{$customerExtn}/balance_transactions/{$extn}";
69
+ }
70
+
71
+ /**
72
+ * @param array|string $_id
73
+ * @param null|array|string $_opts
74
+ *
75
+ * @throws \Stripe\Exception\BadMethodCallException
76
+ */
77
+ public static function retrieve($_id, $_opts = null)
78
+ {
79
+ $msg = 'Customer Balance Transactions cannot be retrieved without a ' .
80
+ 'customer ID. Retrieve a Customer Balance Transaction using ' .
81
+ "`Customer::retrieveBalanceTransaction('customer_id', " .
82
+ "'balance_transaction_id')`.";
83
+
84
+ throw new Exception\BadMethodCallException($msg);
85
+ }
86
+
87
+ /**
88
+ * @param string $_id
89
+ * @param null|array $_params
90
+ * @param null|array|string $_options
91
+ *
92
+ * @throws \Stripe\Exception\BadMethodCallException
93
+ */
94
+ public static function update($_id, $_params = null, $_options = null)
95
+ {
96
+ $msg = 'Customer Balance Transactions cannot be updated without a ' .
97
+ 'customer ID. Update a Customer Balance Transaction using ' .
98
+ "`Customer::updateBalanceTransaction('customer_id', " .
99
+ "'balance_transaction_id', \$updateParams)`.";
100
+
101
+ throw new Exception\BadMethodCallException($msg);
102
+ }
103
+ }
lib/stripe-php/lib/Discount.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Class Discount.
7
+ *
8
+ * @property string $checkout_session The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
9
+ * @property \Stripe\Coupon $coupon Hash describing the coupon applied to create this discount.
10
+ * @property string|\Stripe\Customer $customer The ID of the customer associated with this discount.
11
+ * @property int $end If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null.
12
+ * @property string $id The ID of the discount object.
13
+ * @property string $invoice The invoice that the discount’s coupon was applied to, if it was applied directly to a particular invoice.
14
+ * @property string $invoice_item The invoice item id (or invoice line item id for invoice line items of type=‘subscription’) that the discount’s coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.
15
+ * @property string $object String representing the object’s type. Objects of the same type share the same value.
16
+ * @property string $promotion_code The promotion code applied to create this discount.
17
+ * @property int $start Date that the coupon was applied.
18
+ * @property string $subscription The subscription that this coupon is applied to, if it is applied to a particular subscription.
19
+ */
20
+ class Discount extends StripeObject
21
+ {
22
+ const OBJECT_NAME = 'discount';
23
+ }
lib/stripe-php/lib/Dispute.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * A dispute occurs when a customer questions your charge with their card issuer.
9
+ * When this happens, you're given the opportunity to respond to the dispute with
10
+ * evidence that shows that the charge is legitimate. You can find more information
11
+ * about the dispute process in our <a href="/docs/disputes">Disputes and Fraud</a>
12
+ * documentation.
13
+ *
14
+ * Related guide: <a href="https://stripe.com/docs/disputes">Disputes and
15
+ * Fraud</a>.
16
+ *
17
+ * @property string $id Unique identifier for the object.
18
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
19
+ * @property int $amount Disputed amount. Usually the amount of the charge, but can differ (usually because of currency fluctuation or because only part of the order is disputed).
20
+ * @property \Stripe\BalanceTransaction[] $balance_transactions List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
21
+ * @property string|\Stripe\Charge $charge ID of the charge that was disputed.
22
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
23
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
24
+ * @property \Stripe\StripeObject $evidence
25
+ * @property \Stripe\StripeObject $evidence_details
26
+ * @property bool $is_charge_refundable If true, it is still possible to refund the disputed payment. Once the payment has been fully refunded, no further funds will be withdrawn from your Stripe account as a result of this dispute.
27
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
28
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
29
+ * @property null|string $network_reason_code Network-dependent reason code for the dispute.
30
+ * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent that was disputed.
31
+ * @property string $reason Reason given by cardholder for dispute. Possible values are <code>bank_cannot_process</code>, <code>check_returned</code>, <code>credit_not_processed</code>, <code>customer_initiated</code>, <code>debit_not_authorized</code>, <code>duplicate</code>, <code>fraudulent</code>, <code>general</code>, <code>incorrect_account_details</code>, <code>insufficient_funds</code>, <code>product_not_received</code>, <code>product_unacceptable</code>, <code>subscription_canceled</code>, or <code>unrecognized</code>. Read more about <a href="https://stripe.com/docs/disputes/categories">dispute reasons</a>.
32
+ * @property string $status Current status of dispute. Possible values are <code>warning_needs_response</code>, <code>warning_under_review</code>, <code>warning_closed</code>, <code>needs_response</code>, <code>under_review</code>, <code>charge_refunded</code>, <code>won</code>, or <code>lost</code>.
33
+ */
34
+ class Dispute extends ApiResource
35
+ {
36
+ const OBJECT_NAME = 'dispute';
37
+
38
+ use ApiOperations\All;
39
+ use ApiOperations\Retrieve;
40
+ use ApiOperations\Update;
41
+
42
+ const REASON_BANK_CANNOT_PROCESS = 'bank_cannot_process';
43
+ const REASON_CHECK_RETURNED = 'check_returned';
44
+ const REASON_CREDIT_NOT_PROCESSED = 'credit_not_processed';
45
+ const REASON_CUSTOMER_INITIATED = 'customer_initiated';
46
+ const REASON_DEBIT_NOT_AUTHORIZED = 'debit_not_authorized';
47
+ const REASON_DUPLICATE = 'duplicate';
48
+ const REASON_FRAUDULENT = 'fraudulent';
49
+ const REASON_GENERAL = 'general';
50
+ const REASON_INCORRECT_ACCOUNT_DETAILS = 'incorrect_account_details';
51
+ const REASON_INSUFFICIENT_FUNDS = 'insufficient_funds';
52
+ const REASON_PRODUCT_NOT_RECEIVED = 'product_not_received';
53
+ const REASON_PRODUCT_UNACCEPTABLE = 'product_unacceptable';
54
+ const REASON_SUBSCRIPTION_CANCELED = 'subscription_canceled';
55
+ const REASON_UNRECOGNIZED = 'unrecognized';
56
+
57
+ const STATUS_CHARGE_REFUNDED = 'charge_refunded';
58
+ const STATUS_LOST = 'lost';
59
+ const STATUS_NEEDS_RESPONSE = 'needs_response';
60
+ const STATUS_UNDER_REVIEW = 'under_review';
61
+ const STATUS_WARNING_CLOSED = 'warning_closed';
62
+ const STATUS_WARNING_NEEDS_RESPONSE = 'warning_needs_response';
63
+ const STATUS_WARNING_UNDER_REVIEW = 'warning_under_review';
64
+ const STATUS_WON = 'won';
65
+
66
+ /**
67
+ * @param null|array|string $opts
68
+ *
69
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
70
+ *
71
+ * @return \Stripe\Dispute the closed dispute
72
+ */
73
+ // TODO: add $params to standardize signature
74
+ public function close($opts = null)
75
+ {
76
+ $url = $this->instanceUrl() . '/close';
77
+ list($response, $opts) = $this->_request('post', $url, null, $opts);
78
+ $this->refreshFrom($response, $opts);
79
+
80
+ return $this;
81
+ }
82
+ }
lib/stripe-php/lib/EphemeralKey.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * @property string $id Unique identifier for the object.
9
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
10
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
11
+ * @property int $expires Time at which the key will expire. Measured in seconds since the Unix epoch.
12
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
13
+ * @property string $secret The key's secret. You can use this value to make authorized requests to the Stripe API.
14
+ * @property array $associated_objects
15
+ */
16
+ class EphemeralKey extends ApiResource
17
+ {
18
+ const OBJECT_NAME = 'ephemeral_key';
19
+
20
+ use ApiOperations\Create {
21
+ create as protected _create;
22
+ }
23
+
24
+ use ApiOperations\Delete;
25
+
26
+ /**
27
+ * @param null|array $params
28
+ * @param null|array|string $opts
29
+ *
30
+ * @throws \Stripe\Exception\InvalidArgumentException if stripe_version is missing
31
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
32
+ *
33
+ * @return \Stripe\EphemeralKey the created key
34
+ */
35
+ public static function create($params = null, $opts = null)
36
+ {
37
+ if (!$opts || !isset($opts['stripe_version'])) {
38
+ throw new Exception\InvalidArgumentException('stripe_version must be specified to create an ephemeral key');
39
+ }
40
+
41
+ return self::_create($params, $opts);
42
+ }
43
+ }
lib/stripe-php/lib/ErrorObject.php ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Class ErrorObject.
7
+ *
8
+ * @property string $charge For card errors, the ID of the failed charge.
9
+ * @property string $code For some errors that could be handled
10
+ * programmatically, a short string indicating the error code reported.
11
+ * @property string $decline_code For card errors resulting from a card issuer
12
+ * decline, a short string indicating the card issuer's reason for the
13
+ * decline if they provide one.
14
+ * @property string $doc_url A URL to more information about the error code
15
+ * reported.
16
+ * @property string $message A human-readable message providing more details
17
+ * about the error. For card errors, these messages can be shown to your
18
+ * users.
19
+ * @property string $param If the error is parameter-specific, the parameter
20
+ * related to the error. For example, you can use this to display a message
21
+ * near the correct form field.
22
+ * @property PaymentIntent $payment_intent The PaymentIntent object for errors
23
+ * returned on a request involving a PaymentIntent.
24
+ * @property PaymentMethod $payment_method The PaymentMethod object for errors
25
+ * returned on a request involving a PaymentMethod.
26
+ * @property string $payment_method_type If the error is specific to the type
27
+ * of payment method, the payment method type that had a problem. This
28
+ * field is only populated for invoice-related errors.
29
+ * @property SetupIntent $setup_intent The SetupIntent object for errors
30
+ * returned on a request involving a SetupIntent.
31
+ * @property StripeObject $source The source object for errors returned on a
32
+ * request involving a source.
33
+ * @property string $type The type of error returned. One of `api_error`,
34
+ * `card_error`, `idempotency_error`, or `invalid_request_error`.
35
+ */
36
+ class ErrorObject extends StripeObject
37
+ {
38
+ /**
39
+ * Possible string representations of an error's code.
40
+ *
41
+ * @see https://stripe.com/docs/error-codes
42
+ */
43
+ const CODE_ACCOUNT_ALREADY_EXISTS = 'account_already_exists';
44
+ const CODE_ACCOUNT_COUNTRY_INVALID_ADDRESS = 'account_country_invalid_address';
45
+ const CODE_ACCOUNT_INVALID = 'account_invalid';
46
+ const CODE_ACCOUNT_NUMBER_INVALID = 'account_number_invalid';
47
+ const CODE_ALIPAY_UPGRADE_REQUIRED = 'alipay_upgrade_required';
48
+ const CODE_AMOUNT_TOO_LARGE = 'amount_too_large';
49
+ const CODE_AMOUNT_TOO_SMALL = 'amount_too_small';
50
+ const CODE_API_KEY_EXPIRED = 'api_key_expired';
51
+ const CODE_BALANCE_INSUFFICIENT = 'balance_insufficient';
52
+ const CODE_BANK_ACCOUNT_EXISTS = 'bank_account_exists';
53
+ const CODE_BANK_ACCOUNT_UNUSABLE = 'bank_account_unusable';
54
+ const CODE_BANK_ACCOUNT_UNVERIFIED = 'bank_account_unverified';
55
+ const CODE_BITCOIN_UPGRADE_REQUIRED = 'bitcoin_upgrade_required';
56
+ const CODE_CARD_DECLINED = 'card_declined';
57
+ const CODE_CHARGE_ALREADY_CAPTURED = 'charge_already_captured';
58
+ const CODE_CHARGE_ALREADY_REFUNDED = 'charge_already_refunded';
59
+ const CODE_CHARGE_DISPUTED = 'charge_disputed';
60
+ const CODE_CHARGE_EXCEEDS_SOURCE_LIMIT = 'charge_exceeds_source_limit';
61
+ const CODE_CHARGE_EXPIRED_FOR_CAPTURE = 'charge_expired_for_capture';
62
+ const CODE_COUNTRY_UNSUPPORTED = 'country_unsupported';
63
+ const CODE_COUPON_EXPIRED = 'coupon_expired';
64
+ const CODE_CUSTOMER_MAX_SUBSCRIPTIONS = 'customer_max_subscriptions';
65
+ const CODE_EMAIL_INVALID = 'email_invalid';
66
+ const CODE_EXPIRED_CARD = 'expired_card';
67
+ const CODE_IDEMPOTENCY_KEY_IN_USE = 'idempotency_key_in_use';
68
+ const CODE_INCORRECT_ADDRESS = 'incorrect_address';
69
+ const CODE_INCORRECT_CVC = 'incorrect_cvc';
70
+ const CODE_INCORRECT_NUMBER = 'incorrect_number';
71
+ const CODE_INCORRECT_ZIP = 'incorrect_zip';
72
+ const CODE_INSTANT_PAYOUTS_UNSUPPORTED = 'instant_payouts_unsupported';
73
+ const CODE_INVALID_CARD_TYPE = 'invalid_card_type';
74
+ const CODE_INVALID_CHARGE_AMOUNT = 'invalid_charge_amount';
75
+ const CODE_INVALID_CVC = 'invalid_cvc';
76
+ const CODE_INVALID_EXPIRY_MONTH = 'invalid_expiry_month';
77
+ const CODE_INVALID_EXPIRY_YEAR = 'invalid_expiry_year';
78
+ const CODE_INVALID_NUMBER = 'invalid_number';
79
+ const CODE_INVALID_SOURCE_USAGE = 'invalid_source_usage';
80
+ const CODE_INVOICE_NO_CUSTOMER_LINE_ITEMS = 'invoice_no_customer_line_items';
81
+ const CODE_INVOICE_NO_SUBSCRIPTION_LINE_ITEMS = 'invoice_no_subscription_line_items';
82
+ const CODE_INVOICE_NOT_EDITABLE = 'invoice_not_editable';
83
+ const CODE_INVOICE_PAYMENT_INTENT_REQUIRES_ACTION = 'invoice_payment_intent_requires_action';
84
+ const CODE_INVOICE_UPCOMING_NONE = 'invoice_upcoming_none';
85
+ const CODE_LIVEMODE_MISMATCH = 'livemode_mismatch';
86
+ const CODE_LOCK_TIMEOUT = 'lock_timeout';
87
+ const CODE_MISSING = 'missing';
88
+ const CODE_NOT_ALLOWED_ON_STANDARD_ACCOUNT = 'not_allowed_on_standard_account';
89
+ const CODE_ORDER_CREATION_FAILED = 'order_creation_failed';
90
+ const CODE_ORDER_REQUIRED_SETTINGS = 'order_required_settings';
91
+ const CODE_ORDER_STATUS_INVALID = 'order_status_invalid';
92
+ const CODE_ORDER_UPSTREAM_TIMEOUT = 'order_upstream_timeout';
93
+ const CODE_OUT_OF_INVENTORY = 'out_of_inventory';
94
+ const CODE_PARAMETER_INVALID_EMPTY = 'parameter_invalid_empty';
95
+ const CODE_PARAMETER_INVALID_INTEGER = 'parameter_invalid_integer';
96
+ const CODE_PARAMETER_INVALID_STRING_BLANK = 'parameter_invalid_string_blank';
97
+ const CODE_PARAMETER_INVALID_STRING_EMPTY = 'parameter_invalid_string_empty';
98
+ const CODE_PARAMETER_MISSING = 'parameter_missing';
99
+ const CODE_PARAMETER_UNKNOWN = 'parameter_unknown';
100
+ const CODE_PARAMETERS_EXCLUSIVE = 'parameters_exclusive';
101
+ const CODE_PAYMENT_INTENT_AUTHENTICATION_FAILURE = 'payment_intent_authentication_failure';
102
+ const CODE_PAYMENT_INTENT_INCOMPATIBLE_PAYMENT_METHOD = 'payment_intent_incompatible_payment_method';
103
+ const CODE_PAYMENT_INTENT_INVALID_PARAMETER = 'payment_intent_invalid_parameter';
104
+ const CODE_PAYMENT_INTENT_PAYMENT_ATTEMPT_FAILED = 'payment_intent_payment_attempt_failed';
105
+ const CODE_PAYMENT_INTENT_UNEXPECTED_STATE = 'payment_intent_unexpected_state';
106
+ const CODE_PAYMENT_METHOD_UNACTIVATED = 'payment_method_unactivated';
107
+ const CODE_PAYMENT_METHOD_UNEXPECTED_STATE = 'payment_method_unexpected_state';
108
+ const CODE_PAYOUTS_NOT_ALLOWED = 'payouts_not_allowed';
109
+ const CODE_PLATFORM_API_KEY_EXPIRED = 'platform_api_key_expired';
110
+ const CODE_POSTAL_CODE_INVALID = 'postal_code_invalid';
111
+ const CODE_PROCESSING_ERROR = 'processing_error';
112
+ const CODE_PRODUCT_INACTIVE = 'product_inactive';
113
+ const CODE_RATE_LIMIT = 'rate_limit';
114
+ const CODE_RESOURCE_ALREADY_EXISTS = 'resource_already_exists';
115
+ const CODE_RESOURCE_MISSING = 'resource_missing';
116
+ const CODE_ROUTING_NUMBER_INVALID = 'routing_number_invalid';
117
+ const CODE_SECRET_KEY_REQUIRED = 'secret_key_required';
118
+ const CODE_SEPA_UNSUPPORTED_ACCOUNT = 'sepa_unsupported_account';
119
+ const CODE_SETUP_ATTEMPT_FAILED = 'setup_attempt_failed';
120
+ const CODE_SETUP_INTENT_AUTHENTICATION_FAILURE = 'setup_intent_authentication_failure';
121
+ const CODE_SETUP_INTENT_UNEXPECTED_STATE = 'setup_intent_unexpected_state';
122
+ const CODE_SHIPPING_CALCULATION_FAILED = 'shipping_calculation_failed';
123
+ const CODE_SKU_INACTIVE = 'sku_inactive';
124
+ const CODE_STATE_UNSUPPORTED = 'state_unsupported';
125
+ const CODE_TAX_ID_INVALID = 'tax_id_invalid';
126
+ const CODE_TAXES_CALCULATION_FAILED = 'taxes_calculation_failed';
127
+ const CODE_TESTMODE_CHARGES_ONLY = 'testmode_charges_only';
128
+ const CODE_TLS_VERSION_UNSUPPORTED = 'tls_version_unsupported';
129
+ const CODE_TOKEN_ALREADY_USED = 'token_already_used';
130
+ const CODE_TOKEN_IN_USE = 'token_in_use';
131
+ const CODE_TRANSFERS_NOT_ALLOWED = 'transfers_not_allowed';
132
+ const CODE_UPSTREAM_ORDER_CREATION_FAILED = 'upstream_order_creation_failed';
133
+ const CODE_URL_INVALID = 'url_invalid';
134
+
135
+ /**
136
+ * Refreshes this object using the provided values.
137
+ *
138
+ * @param array $values
139
+ * @param null|array|string|Util\RequestOptions $opts
140
+ * @param bool $partial defaults to false
141
+ */
142
+ public function refreshFrom($values, $opts, $partial = false)
143
+ {
144
+ // Unlike most other API resources, the API will omit attributes in
145
+ // error objects when they have a null value. We manually set default
146
+ // values here to facilitate generic error handling.
147
+ $values = \array_merge([
148
+ 'charge' => null,
149
+ 'code' => null,
150
+ 'decline_code' => null,
151
+ 'doc_url' => null,
152
+ 'message' => null,
153
+ 'param' => null,
154
+ 'payment_intent' => null,
155
+ 'payment_method' => null,
156
+ 'setup_intent' => null,
157
+ 'source' => null,
158
+ 'type' => null,
159
+ ], $values);
160
+ parent::refreshFrom($values, $opts, $partial);
161
+ }
162
+ }
lib/stripe-php/lib/Event.php ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Events are our way of letting you know when something interesting happens in
9
+ * your account. When an interesting event occurs, we create a new
10
+ * <code>Event</code> object. For example, when a charge succeeds, we create a
11
+ * <code>charge.succeeded</code> event; and when an invoice payment attempt fails,
12
+ * we create an <code>invoice.payment_failed</code> event. Note that many API
13
+ * requests may cause multiple events to be created. For example, if you create a
14
+ * new subscription for a customer, you will receive both a
15
+ * <code>customer.subscription.created</code> event and a
16
+ * <code>charge.succeeded</code> event.
17
+ *
18
+ * Events occur when the state of another API resource changes. The state of that
19
+ * resource at the time of the change is embedded in the event's data field. For
20
+ * example, a <code>charge.succeeded</code> event will contain a charge, and an
21
+ * <code>invoice.payment_failed</code> event will contain an invoice.
22
+ *
23
+ * As with other API resources, you can use endpoints to retrieve an <a
24
+ * href="https://stripe.com/docs/api#retrieve_event">individual event</a> or a <a
25
+ * href="https://stripe.com/docs/api#list_events">list of events</a> from the API.
26
+ * We also have a separate <a
27
+ * href="http://en.wikipedia.org/wiki/Webhook">webhooks</a> system for sending the
28
+ * <code>Event</code> objects directly to an endpoint on your server. Webhooks are
29
+ * managed in your <a href="https://dashboard.stripe.com/account/webhooks">account
30
+ * settings</a>, and our <a href="https://stripe.com/docs/webhooks">Using
31
+ * Webhooks</a> guide will help you get set up.
32
+ *
33
+ * When using <a href="https://stripe.com/docs/connect">Connect</a>, you can also
34
+ * receive notifications of events that occur in connected accounts. For these
35
+ * events, there will be an additional <code>account</code> attribute in the
36
+ * received <code>Event</code> object.
37
+ *
38
+ * <strong>NOTE:</strong> Right now, access to events through the <a
39
+ * href="https://stripe.com/docs/api#retrieve_event">Retrieve Event API</a> is
40
+ * guaranteed only for 30 days.
41
+ *
42
+ * @property string $id Unique identifier for the object.
43
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
44
+ * @property string $account The connected account that originated the event.
45
+ * @property null|string $api_version The Stripe API version used to render <code>data</code>. <em>Note: This property is populated only for events on or after October 31, 2014</em>.
46
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
47
+ * @property \Stripe\StripeObject $data
48
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
49
+ * @property int $pending_webhooks Number of webhooks that have yet to be successfully delivered (i.e., to return a 20x response) to the URLs you've specified.
50
+ * @property null|\Stripe\StripeObject $request Information on the API request that instigated the event.
51
+ * @property string $type Description of the event (e.g., <code>invoice.created</code> or <code>charge.refunded</code>).
52
+ */
53
+ class Event extends ApiResource
54
+ {
55
+ const OBJECT_NAME = 'event';
56
+
57
+ use ApiOperations\All;
58
+ use ApiOperations\Retrieve;
59
+
60
+ /**
61
+ * Possible string representations of event types.
62
+ *
63
+ * @see https://stripe.com/docs/api#event_types
64
+ */
65
+ const ACCOUNT_UPDATED = 'account.updated';
66
+ const ACCOUNT_APPLICATION_AUTHORIZED = 'account.application.authorized';
67
+ const ACCOUNT_APPLICATION_DEAUTHORIZED = 'account.application.deauthorized';
68
+ const ACCOUNT_EXTERNAL_ACCOUNT_CREATED = 'account.external_account.created';
69
+ const ACCOUNT_EXTERNAL_ACCOUNT_DELETED = 'account.external_account.deleted';
70
+ const ACCOUNT_EXTERNAL_ACCOUNT_UPDATED = 'account.external_account.updated';
71
+ const APPLICATION_FEE_CREATED = 'application_fee.created';
72
+ const APPLICATION_FEE_REFUNDED = 'application_fee.refunded';
73
+ const APPLICATION_FEE_REFUND_UPDATED = 'application_fee.refund.updated';
74
+ const BALANCE_AVAILABLE = 'balance.available';
75
+ const BILLING_PORTAL_CONFIGURATION_CREATED = 'billing_portal.configuration.created';
76
+ const BILLING_PORTAL_CONFIGURATION_UPDATED = 'billing_portal.configuration.updated';
77
+ const CAPABILITY_UPDATED = 'capability.updated';
78
+ const CHARGE_CAPTURED = 'charge.captured';
79
+ const CHARGE_EXPIRED = 'charge.expired';
80
+ const CHARGE_FAILED = 'charge.failed';
81
+ const CHARGE_PENDING = 'charge.pending';
82
+ const CHARGE_REFUNDED = 'charge.refunded';
83
+ const CHARGE_SUCCEEDED = 'charge.succeeded';
84
+ const CHARGE_UPDATED = 'charge.updated';
85
+ const CHARGE_DISPUTE_CLOSED = 'charge.dispute.closed';
86
+ const CHARGE_DISPUTE_CREATED = 'charge.dispute.created';
87
+ const CHARGE_DISPUTE_FUNDS_REINSTATED = 'charge.dispute.funds_reinstated';
88
+ const CHARGE_DISPUTE_FUNDS_WITHDRAWN = 'charge.dispute.funds_withdrawn';
89
+ const CHARGE_DISPUTE_UPDATED = 'charge.dispute.updated';
90
+ const CHARGE_REFUND_UPDATED = 'charge.refund.updated';
91
+ const CHECKOUT_SESSION_ASYNC_PAYMENT_FAILED = 'checkout.session.async_payment_failed';
92
+ const CHECKOUT_SESSION_ASYNC_PAYMENT_SUCCEEDED = 'checkout.session.async_payment_succeeded';
93
+ const CHECKOUT_SESSION_COMPLETED = 'checkout.session.completed';
94
+ const COUPON_CREATED = 'coupon.created';
95
+ const COUPON_DELETED = 'coupon.deleted';
96
+ const COUPON_UPDATED = 'coupon.updated';
97
+ const CREDIT_NOTE_CREATED = 'credit_note.created';
98
+ const CREDIT_NOTE_UPDATED = 'credit_note.updated';
99
+ const CREDIT_NOTE_VOIDED = 'credit_note.voided';
100
+ const CUSTOMER_CREATED = 'customer.created';
101
+ const CUSTOMER_DELETED = 'customer.deleted';
102
+ const CUSTOMER_UPDATED = 'customer.updated';
103
+ const CUSTOMER_DISCOUNT_CREATED = 'customer.discount.created';
104
+ const CUSTOMER_DISCOUNT_DELETED = 'customer.discount.deleted';
105
+ const CUSTOMER_DISCOUNT_UPDATED = 'customer.discount.updated';
106
+ const CUSTOMER_SOURCE_CREATED = 'customer.source.created';
107
+ const CUSTOMER_SOURCE_DELETED = 'customer.source.deleted';
108
+ const CUSTOMER_SOURCE_EXPIRING = 'customer.source.expiring';
109
+ const CUSTOMER_SOURCE_UPDATED = 'customer.source.updated';
110
+ const CUSTOMER_SUBSCRIPTION_CREATED = 'customer.subscription.created';
111
+ const CUSTOMER_SUBSCRIPTION_DELETED = 'customer.subscription.deleted';
112
+ const CUSTOMER_SUBSCRIPTION_PENDING_UPDATE_APPLIED = 'customer.subscription.pending_update_applied';
113
+ const CUSTOMER_SUBSCRIPTION_PENDING_UPDATE_EXPIRED = 'customer.subscription.pending_update_expired';
114
+ const CUSTOMER_SUBSCRIPTION_TRIAL_WILL_END = 'customer.subscription.trial_will_end';
115
+ const CUSTOMER_SUBSCRIPTION_UPDATED = 'customer.subscription.updated';
116
+ const CUSTOMER_TAX_ID_CREATED = 'customer.tax_id.created';
117
+ const CUSTOMER_TAX_ID_DELETED = 'customer.tax_id.deleted';
118
+ const CUSTOMER_TAX_ID_UPDATED = 'customer.tax_id.updated';
119
+ const FILE_CREATED = 'file.created';
120
+ const IDENTITY_VERIFICATION_SESSION_CANCELED = 'identity.verification_session.canceled';
121
+ const IDENTITY_VERIFICATION_SESSION_CREATED = 'identity.verification_session.created';
122
+ const IDENTITY_VERIFICATION_SESSION_PROCESSING = 'identity.verification_session.processing';
123
+ const IDENTITY_VERIFICATION_SESSION_REDACTED = 'identity.verification_session.redacted';
124
+ const IDENTITY_VERIFICATION_SESSION_REQUIRES_INPUT = 'identity.verification_session.requires_input';
125
+ const IDENTITY_VERIFICATION_SESSION_VERIFIED = 'identity.verification_session.verified';
126
+ const INVOICE_CREATED = 'invoice.created';
127
+ const INVOICE_DELETED = 'invoice.deleted';
128
+ const INVOICE_FINALIZATION_FAILED = 'invoice.finalization_failed';
129
+ const INVOICE_FINALIZED = 'invoice.finalized';
130
+ const INVOICE_MARKED_UNCOLLECTIBLE = 'invoice.marked_uncollectible';
131
+ const INVOICE_PAID = 'invoice.paid';
132
+ const INVOICE_PAYMENT_ACTION_REQUIRED = 'invoice.payment_action_required';
133
+ const INVOICE_PAYMENT_FAILED = 'invoice.payment_failed';
134
+ const INVOICE_PAYMENT_SUCCEEDED = 'invoice.payment_succeeded';
135
+ const INVOICE_SENT = 'invoice.sent';
136
+ const INVOICE_UPCOMING = 'invoice.upcoming';
137
+ const INVOICE_UPDATED = 'invoice.updated';
138
+ const INVOICE_VOIDED = 'invoice.voided';
139
+ const INVOICEITEM_CREATED = 'invoiceitem.created';
140
+ const INVOICEITEM_DELETED = 'invoiceitem.deleted';
141
+ const INVOICEITEM_UPDATED = 'invoiceitem.updated';
142
+ const ISSUER_FRAUD_RECORD_CREATED = 'issuer_fraud_record.created';
143
+ const ISSUING_AUTHORIZATION_CREATED = 'issuing_authorization.created';
144
+ const ISSUING_AUTHORIZATION_REQUEST = 'issuing_authorization.request';
145
+ const ISSUING_AUTHORIZATION_UPDATED = 'issuing_authorization.updated';
146
+ const ISSUING_CARD_CREATED = 'issuing_card.created';
147
+ const ISSUING_CARD_UPDATED = 'issuing_card.updated';
148
+ const ISSUING_CARDHOLDER_CREATED = 'issuing_cardholder.created';
149
+ const ISSUING_CARDHOLDER_UPDATED = 'issuing_cardholder.updated';
150
+ const ISSUING_DISPUTE_CLOSED = 'issuing_dispute.closed';
151
+ const ISSUING_DISPUTE_CREATED = 'issuing_dispute.created';
152
+ const ISSUING_DISPUTE_FUNDS_REINSTATED = 'issuing_dispute.funds_reinstated';
153
+ const ISSUING_DISPUTE_SUBMITTED = 'issuing_dispute.submitted';
154
+ const ISSUING_DISPUTE_UPDATED = 'issuing_dispute.updated';
155
+ const ISSUING_TRANSACTION_CREATED = 'issuing_transaction.created';
156
+ const ISSUING_TRANSACTION_UPDATED = 'issuing_transaction.updated';
157
+ const MANDATE_UPDATED = 'mandate.updated';
158
+ const ORDER_CREATED = 'order.created';
159
+ const ORDER_PAYMENT_FAILED = 'order.payment_failed';
160
+ const ORDER_PAYMENT_SUCCEEDED = 'order.payment_succeeded';
161
+ const ORDER_UPDATED = 'order.updated';
162
+ const ORDER_RETURN_CREATED = 'order_return.created';
163
+ const PAYMENT_INTENT_AMOUNT_CAPTURABLE_UPDATED = 'payment_intent.amount_capturable_updated';
164
+ const PAYMENT_INTENT_CANCELED = 'payment_intent.canceled';
165
+ const PAYMENT_INTENT_CREATED = 'payment_intent.created';
166
+ const PAYMENT_INTENT_PAYMENT_FAILED = 'payment_intent.payment_failed';
167
+ const PAYMENT_INTENT_PROCESSING = 'payment_intent.processing';
168
+ const PAYMENT_INTENT_REQUIRES_ACTION = 'payment_intent.requires_action';
169
+ const PAYMENT_INTENT_SUCCEEDED = 'payment_intent.succeeded';
170
+ const PAYMENT_METHOD_ATTACHED = 'payment_method.attached';
171
+ const PAYMENT_METHOD_AUTOMATICALLY_UPDATED = 'payment_method.automatically_updated';
172
+ const PAYMENT_METHOD_CARD_AUTOMATICALLY_UPDATED = 'payment_method.card_automatically_updated';
173
+ const PAYMENT_METHOD_DETACHED = 'payment_method.detached';
174
+ const PAYMENT_METHOD_UPDATED = 'payment_method.updated';
175
+ const PAYOUT_CANCELED = 'payout.canceled';
176
+ const PAYOUT_CREATED = 'payout.created';
177
+ const PAYOUT_FAILED = 'payout.failed';
178
+ const PAYOUT_PAID = 'payout.paid';
179
+ const PAYOUT_UPDATED = 'payout.updated';
180
+ const PERSON_CREATED = 'person.created';
181
+ const PERSON_DELETED = 'person.deleted';
182
+ const PERSON_UPDATED = 'person.updated';
183
+ const PING = 'ping';
184
+ const PLAN_CREATED = 'plan.created';
185
+ const PLAN_DELETED = 'plan.deleted';
186
+ const PLAN_UPDATED = 'plan.updated';
187
+ const PRICE_CREATED = 'price.created';
188
+ const PRICE_DELETED = 'price.deleted';
189
+ const PRICE_UPDATED = 'price.updated';
190
+ const PRODUCT_CREATED = 'product.created';
191
+ const PRODUCT_DELETED = 'product.deleted';
192
+ const PRODUCT_UPDATED = 'product.updated';
193
+ const PROMOTION_CODE_CREATED = 'promotion_code.created';
194
+ const PROMOTION_CODE_DELETED = 'promotion_code.deleted';
195
+ const PROMOTION_CODE_UPDATED = 'promotion_code.updated';
196
+ const RADAR_EARLY_FRAUD_WARNING_CREATED = 'radar.early_fraud_warning.created';
197
+ const RADAR_EARLY_FRAUD_WARNING_UPDATED = 'radar.early_fraud_warning.updated';
198
+ const RECIPIENT_CREATED = 'recipient.created';
199
+ const RECIPIENT_DELETED = 'recipient.deleted';
200
+ const RECIPIENT_UPDATED = 'recipient.updated';
201
+ const REPORTING_REPORT_RUN_FAILED = 'reporting.report_run.failed';
202
+ const REPORTING_REPORT_RUN_SUCCEEDED = 'reporting.report_run.succeeded';
203
+ const REPORTING_REPORT_TYPE_UPDATED = 'reporting.report_type.updated';
204
+ const REVIEW_CLOSED = 'review.closed';
205
+ const REVIEW_OPENED = 'review.opened';
206
+ const SETUP_INTENT_CANCELED = 'setup_intent.canceled';
207
+ const SETUP_INTENT_CREATED = 'setup_intent.created';
208
+ const SETUP_INTENT_REQUIRES_ACTION = 'setup_intent.requires_action';
209
+ const SETUP_INTENT_SETUP_FAILED = 'setup_intent.setup_failed';
210
+ const SETUP_INTENT_SUCCEEDED = 'setup_intent.succeeded';
211
+ const SIGMA_SCHEDULED_QUERY_RUN_CREATED = 'sigma.scheduled_query_run.created';
212
+ const SKU_CREATED = 'sku.created';
213
+ const SKU_DELETED = 'sku.deleted';
214
+ const SKU_UPDATED = 'sku.updated';
215
+ const SOURCE_CANCELED = 'source.canceled';
216
+ const SOURCE_CHARGEABLE = 'source.chargeable';
217
+ const SOURCE_FAILED = 'source.failed';
218
+ const SOURCE_MANDATE_NOTIFICATION = 'source.mandate_notification';
219
+ const SOURCE_REFUND_ATTRIBUTES_REQUIRED = 'source.refund_attributes_required';
220
+ const SOURCE_TRANSACTION_CREATED = 'source.transaction.created';
221
+ const SOURCE_TRANSACTION_UPDATED = 'source.transaction.updated';
222
+ const SUBSCRIPTION_SCHEDULE_ABORTED = 'subscription_schedule.aborted';
223
+ const SUBSCRIPTION_SCHEDULE_CANCELED = 'subscription_schedule.canceled';
224
+ const SUBSCRIPTION_SCHEDULE_COMPLETED = 'subscription_schedule.completed';
225
+ const SUBSCRIPTION_SCHEDULE_CREATED = 'subscription_schedule.created';
226
+ const SUBSCRIPTION_SCHEDULE_EXPIRING = 'subscription_schedule.expiring';
227
+ const SUBSCRIPTION_SCHEDULE_RELEASED = 'subscription_schedule.released';
228
+ const SUBSCRIPTION_SCHEDULE_UPDATED = 'subscription_schedule.updated';
229
+ const TAX_RATE_CREATED = 'tax_rate.created';
230
+ const TAX_RATE_UPDATED = 'tax_rate.updated';
231
+ const TOPUP_CANCELED = 'topup.canceled';
232
+ const TOPUP_CREATED = 'topup.created';
233
+ const TOPUP_FAILED = 'topup.failed';
234
+ const TOPUP_REVERSED = 'topup.reversed';
235
+ const TOPUP_SUCCEEDED = 'topup.succeeded';
236
+ const TRANSFER_CREATED = 'transfer.created';
237
+ const TRANSFER_REVERSED = 'transfer.reversed';
238
+ const TRANSFER_UPDATED = 'transfer.updated';
239
+ }
lib/stripe-php/lib/Exception/ApiConnectionException.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * ApiConnection is thrown in the event that the SDK can't connect to Stripe's
7
+ * servers. That can be for a variety of different reasons from a downed
8
+ * network to a bad TLS certificate.
9
+ */
10
+ class ApiConnectionException extends ApiErrorException
11
+ {
12
+ }
lib/stripe-php/lib/Exception/ApiErrorException.php ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * Implements properties and methods common to all (non-SPL) Stripe exceptions.
7
+ */
8
+ abstract class ApiErrorException extends \Exception implements ExceptionInterface
9
+ {
10
+ protected $error;
11
+ protected $httpBody;
12
+ protected $httpHeaders;
13
+ protected $httpStatus;
14
+ protected $jsonBody;
15
+ protected $requestId;
16
+ protected $stripeCode;
17
+
18
+ /**
19
+ * Creates a new API error exception.
20
+ *
21
+ * @param string $message the exception message
22
+ * @param null|int $httpStatus the HTTP status code
23
+ * @param null|string $httpBody the HTTP body as a string
24
+ * @param null|array $jsonBody the JSON deserialized body
25
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
26
+ * @param null|string $stripeCode the Stripe error code
27
+ *
28
+ * @return static
29
+ */
30
+ public static function factory(
31
+ $message,
32
+ $httpStatus = null,
33
+ $httpBody = null,
34
+ $jsonBody = null,
35
+ $httpHeaders = null,
36
+ $stripeCode = null
37
+ ) {
38
+ $instance = new static($message);
39
+ $instance->setHttpStatus($httpStatus);
40
+ $instance->setHttpBody($httpBody);
41
+ $instance->setJsonBody($jsonBody);
42
+ $instance->setHttpHeaders($httpHeaders);
43
+ $instance->setStripeCode($stripeCode);
44
+
45
+ $instance->setRequestId(null);
46
+ if ($httpHeaders && isset($httpHeaders['Request-Id'])) {
47
+ $instance->setRequestId($httpHeaders['Request-Id']);
48
+ }
49
+
50
+ $instance->setError($instance->constructErrorObject());
51
+
52
+ return $instance;
53
+ }
54
+
55
+ /**
56
+ * Gets the Stripe error object.
57
+ *
58
+ * @return null|\Stripe\ErrorObject
59
+ */
60
+ public function getError()
61
+ {
62
+ return $this->error;
63
+ }
64
+
65
+ /**
66
+ * Sets the Stripe error object.
67
+ *
68
+ * @param null|\Stripe\ErrorObject $error
69
+ */
70
+ public function setError($error)
71
+ {
72
+ $this->error = $error;
73
+ }
74
+
75
+ /**
76
+ * Gets the HTTP body as a string.
77
+ *
78
+ * @return null|string
79
+ */
80
+ public function getHttpBody()
81
+ {
82
+ return $this->httpBody;
83
+ }
84
+
85
+ /**
86
+ * Sets the HTTP body as a string.
87
+ *
88
+ * @param null|string $httpBody
89
+ */
90
+ public function setHttpBody($httpBody)
91
+ {
92
+ $this->httpBody = $httpBody;
93
+ }
94
+
95
+ /**
96
+ * Gets the HTTP headers array.
97
+ *
98
+ * @return null|array|\Stripe\Util\CaseInsensitiveArray
99
+ */
100
+ public function getHttpHeaders()
101
+ {
102
+ return $this->httpHeaders;
103
+ }
104
+
105
+ /**
106
+ * Sets the HTTP headers array.
107
+ *
108
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders
109
+ */
110
+ public function setHttpHeaders($httpHeaders)
111
+ {
112
+ $this->httpHeaders = $httpHeaders;
113
+ }
114
+
115
+ /**
116
+ * Gets the HTTP status code.
117
+ *
118
+ * @return null|int
119
+ */
120
+ public function getHttpStatus()
121
+ {
122
+ return $this->httpStatus;
123
+ }
124
+
125
+ /**
126
+ * Sets the HTTP status code.
127
+ *
128
+ * @param null|int $httpStatus
129
+ */
130
+ public function setHttpStatus($httpStatus)
131
+ {
132
+ $this->httpStatus = $httpStatus;
133
+ }
134
+
135
+ /**
136
+ * Gets the JSON deserialized body.
137
+ *
138
+ * @return null|array<string, mixed>
139
+ */
140
+ public function getJsonBody()
141
+ {
142
+ return $this->jsonBody;
143
+ }
144
+
145
+ /**
146
+ * Sets the JSON deserialized body.
147
+ *
148
+ * @param null|array<string, mixed> $jsonBody
149
+ */
150
+ public function setJsonBody($jsonBody)
151
+ {
152
+ $this->jsonBody = $jsonBody;
153
+ }
154
+
155
+ /**
156
+ * Gets the Stripe request ID.
157
+ *
158
+ * @return null|string
159
+ */
160
+ public function getRequestId()
161
+ {
162
+ return $this->requestId;
163
+ }
164
+
165
+ /**
166
+ * Sets the Stripe request ID.
167
+ *
168
+ * @param null|string $requestId
169
+ */
170
+ public function setRequestId($requestId)
171
+ {
172
+ $this->requestId = $requestId;
173
+ }
174
+
175
+ /**
176
+ * Gets the Stripe error code.
177
+ *
178
+ * Cf. the `CODE_*` constants on {@see \Stripe\ErrorObject} for possible
179
+ * values.
180
+ *
181
+ * @return null|string
182
+ */
183
+ public function getStripeCode()
184
+ {
185
+ return $this->stripeCode;
186
+ }
187
+
188
+ /**
189
+ * Sets the Stripe error code.
190
+ *
191
+ * @param null|string $stripeCode
192
+ */
193
+ public function setStripeCode($stripeCode)
194
+ {
195
+ $this->stripeCode = $stripeCode;
196
+ }
197
+
198
+ /**
199
+ * Returns the string representation of the exception.
200
+ *
201
+ * @return string
202
+ */
203
+ public function __toString()
204
+ {
205
+ $statusStr = (null === $this->getHttpStatus()) ? '' : "(Status {$this->getHttpStatus()}) ";
206
+ $idStr = (null === $this->getRequestId()) ? '' : "(Request {$this->getRequestId()}) ";
207
+
208
+ return "{$statusStr}{$idStr}{$this->getMessage()}";
209
+ }
210
+
211
+ protected function constructErrorObject()
212
+ {
213
+ if (null === $this->jsonBody || !\array_key_exists('error', $this->jsonBody)) {
214
+ return null;
215
+ }
216
+
217
+ return \Stripe\ErrorObject::constructFrom($this->jsonBody['error']);
218
+ }
219
+ }
lib/stripe-php/lib/Exception/AuthenticationException.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * AuthenticationException is thrown when invalid credentials are used to
7
+ * connect to Stripe's servers.
8
+ */
9
+ class AuthenticationException extends ApiErrorException
10
+ {
11
+ }
lib/stripe-php/lib/Exception/BadMethodCallException.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface
6
+ {
7
+ }
lib/stripe-php/lib/Exception/CardException.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * CardException is thrown when a user enters a card that can't be charged for
7
+ * some reason.
8
+ */
9
+ class CardException extends ApiErrorException
10
+ {
11
+ protected $declineCode;
12
+ protected $stripeParam;
13
+
14
+ /**
15
+ * Creates a new CardException exception.
16
+ *
17
+ * @param string $message the exception message
18
+ * @param null|int $httpStatus the HTTP status code
19
+ * @param null|string $httpBody the HTTP body as a string
20
+ * @param null|array $jsonBody the JSON deserialized body
21
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
22
+ * @param null|string $stripeCode the Stripe error code
23
+ * @param null|string $declineCode the decline code
24
+ * @param null|string $stripeParam the parameter related to the error
25
+ *
26
+ * @return CardException
27
+ */
28
+ public static function factory(
29
+ $message,
30
+ $httpStatus = null,
31
+ $httpBody = null,
32
+ $jsonBody = null,
33
+ $httpHeaders = null,
34
+ $stripeCode = null,
35
+ $declineCode = null,
36
+ $stripeParam = null
37
+ ) {
38
+ $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode);
39
+ $instance->setDeclineCode($declineCode);
40
+ $instance->setStripeParam($stripeParam);
41
+
42
+ return $instance;
43
+ }
44
+
45
+ /**
46
+ * Gets the decline code.
47
+ *
48
+ * @return null|string
49
+ */
50
+ public function getDeclineCode()
51
+ {
52
+ return $this->declineCode;
53
+ }
54
+
55
+ /**
56
+ * Sets the decline code.
57
+ *
58
+ * @param null|string $declineCode
59
+ */
60
+ public function setDeclineCode($declineCode)
61
+ {
62
+ $this->declineCode = $declineCode;
63
+ }
64
+
65
+ /**
66
+ * Gets the parameter related to the error.
67
+ *
68
+ * @return null|string
69
+ */
70
+ public function getStripeParam()
71
+ {
72
+ return $this->stripeParam;
73
+ }
74
+
75
+ /**
76
+ * Sets the parameter related to the error.
77
+ *
78
+ * @param null|string $stripeParam
79
+ */
80
+ public function setStripeParam($stripeParam)
81
+ {
82
+ $this->stripeParam = $stripeParam;
83
+ }
84
+ }
lib/stripe-php/lib/Exception/ExceptionInterface.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ // TODO: remove this check once we drop support for PHP 5
6
+ if (\interface_exists(\Throwable::class, false)) {
7
+ /**
8
+ * The base interface for all Stripe exceptions.
9
+ */
10
+ interface ExceptionInterface extends \Throwable
11
+ {
12
+ }
13
+ } else {
14
+ /**
15
+ * The base interface for all Stripe exceptions.
16
+ */
17
+ // phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses
18
+ interface ExceptionInterface
19
+ {
20
+ }
21
+ // phpcs:enable
22
+ }
lib/stripe-php/lib/Exception/IdempotencyException.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * IdempotencyException is thrown in cases where an idempotency key was used
7
+ * improperly.
8
+ */
9
+ class IdempotencyException extends ApiErrorException
10
+ {
11
+ }
lib/stripe-php/lib/Exception/InvalidArgumentException.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
6
+ {
7
+ }
lib/stripe-php/lib/Exception/InvalidRequestException.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * InvalidRequestException is thrown when a request is initiated with invalid
7
+ * parameters.
8
+ */
9
+ class InvalidRequestException extends ApiErrorException
10
+ {
11
+ protected $stripeParam;
12
+
13
+ /**
14
+ * Creates a new InvalidRequestException exception.
15
+ *
16
+ * @param string $message the exception message
17
+ * @param null|int $httpStatus the HTTP status code
18
+ * @param null|string $httpBody the HTTP body as a string
19
+ * @param null|array $jsonBody the JSON deserialized body
20
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
21
+ * @param null|string $stripeCode the Stripe error code
22
+ * @param null|string $stripeParam the parameter related to the error
23
+ *
24
+ * @return InvalidRequestException
25
+ */
26
+ public static function factory(
27
+ $message,
28
+ $httpStatus = null,
29
+ $httpBody = null,
30
+ $jsonBody = null,
31
+ $httpHeaders = null,
32
+ $stripeCode = null,
33
+ $stripeParam = null
34
+ ) {
35
+ $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode);
36
+ $instance->setStripeParam($stripeParam);
37
+
38
+ return $instance;
39
+ }
40
+
41
+ /**
42
+ * Gets the parameter related to the error.
43
+ *
44
+ * @return null|string
45
+ */
46
+ public function getStripeParam()
47
+ {
48
+ return $this->stripeParam;
49
+ }
50
+
51
+ /**
52
+ * Sets the parameter related to the error.
53
+ *
54
+ * @param null|string $stripeParam
55
+ */
56
+ public function setStripeParam($stripeParam)
57
+ {
58
+ $this->stripeParam = $stripeParam;
59
+ }
60
+ }
lib/stripe-php/lib/Exception/OAuth/ExceptionInterface.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception\OAuth;
4
+
5
+ /**
6
+ * The base interface for all Stripe OAuth exceptions.
7
+ */
8
+ interface ExceptionInterface extends \Stripe\Exception\ExceptionInterface
9
+ {
10
+ }
lib/stripe-php/lib/Exception/OAuth/InvalidClientException.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception\OAuth;
4
+
5
+ /**
6
+ * InvalidClientException is thrown when the client_id does not belong to you,
7
+ * the stripe_user_id does not exist or is not connected to your application,
8
+ * or the API key mode (live or test mode) does not match the client_id mode.
9
+ */
10
+ class InvalidClientException extends OAuthErrorException
11
+ {
12
+ }
lib/stripe-php/lib/Exception/OAuth/InvalidGrantException.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception\OAuth;
4
+
5
+ /**
6
+ * InvalidGrantException is thrown when a specified code doesn't exist, is
7
+ * expired, has been used, or doesn't belong to you; a refresh token doesn't
8
+ * exist, or doesn't belong to you; or if an API key's mode (live or test)
9
+ * doesn't match the mode of a code or refresh token.
10
+ */
11
+ class InvalidGrantException extends OAuthErrorException
12
+ {
13
+ }
lib/stripe-php/lib/Exception/OAuth/InvalidRequestException.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception\OAuth;
4
+
5
+ /**
6
+ * InvalidRequestException is thrown when a code, refresh token, or grant
7
+ * type parameter is not provided, but was required.
8
+ */
9
+ class InvalidRequestException extends OAuthErrorException
10
+ {
11
+ }
lib/stripe-php/lib/Exception/OAuth/InvalidScopeException.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception\OAuth;
4
+
5
+ /**
6
+ * InvalidScopeException is thrown when an invalid scope parameter is provided.
7
+ */
8
+ class InvalidScopeException extends OAuthErrorException
9
+ {
10
+ }
lib/stripe-php/lib/Exception/OAuth/OAuthErrorException.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception\OAuth;
4
+
5
+ /**
6
+ * Implements properties and methods common to all (non-SPL) Stripe OAuth
7
+ * exceptions.
8
+ */
9
+ abstract class OAuthErrorException extends \Stripe\Exception\ApiErrorException
10
+ {
11
+ protected function constructErrorObject()
12
+ {
13
+ if (null === $this->jsonBody) {
14
+ return null;
15
+ }
16
+
17
+ return \Stripe\OAuthErrorObject::constructFrom($this->jsonBody);
18
+ }
19
+ }
lib/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception\OAuth;
4
+
5
+ /**
6
+ * UnknownApiErrorException is thrown when the client library receives an
7
+ * error from the OAuth API it doesn't know about. Receiving this error usually
8
+ * means that your client library is outdated and should be upgraded.
9
+ */
10
+ class UnknownOAuthErrorException extends OAuthErrorException
11
+ {
12
+ }
lib/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception\OAuth;
4
+
5
+ /**
6
+ * UnsupportedGrantTypeException is thrown when an unuspported grant type
7
+ * parameter is specified.
8
+ */
9
+ class UnsupportedGrantTypeException extends OAuthErrorException
10
+ {
11
+ }
lib/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception\OAuth;
4
+
5
+ /**
6
+ * UnsupportedResponseTypeException is thrown when an unsupported response type
7
+ * parameter is specified.
8
+ */
9
+ class UnsupportedResponseTypeException extends OAuthErrorException
10
+ {
11
+ }
lib/stripe-php/lib/Exception/PermissionException.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * PermissionException is thrown in cases where access was attempted on a
7
+ * resource that wasn't allowed.
8
+ */
9
+ class PermissionException extends ApiErrorException
10
+ {
11
+ }
lib/stripe-php/lib/Exception/RateLimitException.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * RateLimitException is thrown in cases where an account is putting too much
7
+ * load on Stripe's API servers (usually by performing too many requests).
8
+ * Please back off on request rate.
9
+ */
10
+ class RateLimitException extends InvalidRequestException
11
+ {
12
+ }
lib/stripe-php/lib/Exception/SignatureVerificationException.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * SignatureVerificationException is thrown when the signature verification for
7
+ * a webhook fails.
8
+ */
9
+ class SignatureVerificationException extends \Exception implements ExceptionInterface
10
+ {
11
+ protected $httpBody;
12
+ protected $sigHeader;
13
+
14
+ /**
15
+ * Creates a new SignatureVerificationException exception.
16
+ *
17
+ * @param string $message the exception message
18
+ * @param null|string $httpBody the HTTP body as a string
19
+ * @param null|string $sigHeader the `Stripe-Signature` HTTP header
20
+ *
21
+ * @return SignatureVerificationException
22
+ */
23
+ public static function factory(
24
+ $message,
25
+ $httpBody = null,
26
+ $sigHeader = null
27
+ ) {
28
+ $instance = new static($message);
29
+ $instance->setHttpBody($httpBody);
30
+ $instance->setSigHeader($sigHeader);
31
+
32
+ return $instance;
33
+ }
34
+
35
+ /**
36
+ * Gets the HTTP body as a string.
37
+ *
38
+ * @return null|string
39
+ */
40
+ public function getHttpBody()
41
+ {
42
+ return $this->httpBody;
43
+ }
44
+
45
+ /**
46
+ * Sets the HTTP body as a string.
47
+ *
48
+ * @param null|string $httpBody
49
+ */
50
+ public function setHttpBody($httpBody)
51
+ {
52
+ $this->httpBody = $httpBody;
53
+ }
54
+
55
+ /**
56
+ * Gets the `Stripe-Signature` HTTP header.
57
+ *
58
+ * @return null|string
59
+ */
60
+ public function getSigHeader()
61
+ {
62
+ return $this->sigHeader;
63
+ }
64
+
65
+ /**
66
+ * Sets the `Stripe-Signature` HTTP header.
67
+ *
68
+ * @param null|string $sigHeader
69
+ */
70
+ public function setSigHeader($sigHeader)
71
+ {
72
+ $this->sigHeader = $sigHeader;
73
+ }
74
+ }
lib/stripe-php/lib/Exception/UnexpectedValueException.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ class UnexpectedValueException extends \UnexpectedValueException implements ExceptionInterface
6
+ {
7
+ }
lib/stripe-php/lib/Exception/UnknownApiErrorException.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Exception;
4
+
5
+ /**
6
+ * UnknownApiErrorException is thrown when the client library receives an
7
+ * error from the API it doesn't know about. Receiving this error usually
8
+ * means that your client library is outdated and should be upgraded.
9
+ */
10
+ class UnknownApiErrorException extends ApiErrorException
11
+ {
12
+ }
lib/stripe-php/lib/ExchangeRate.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * <code>Exchange Rate</code> objects allow you to determine the rates that Stripe
9
+ * is currently using to convert from one currency to another. Since this number is
10
+ * variable throughout the day, there are various reasons why you might want to
11
+ * know the current rate (for example, to dynamically price an item for a user with
12
+ * a default payment in a foreign currency).
13
+ *
14
+ * If you want a guarantee that the charge is made with a certain exchange rate you
15
+ * expect is current, you can pass in <code>exchange_rate</code> to charges
16
+ * endpoints. If the value is no longer up to date, the charge won't go through.
17
+ * Please refer to our <a href="https://stripe.com/docs/exchange-rates">Exchange
18
+ * Rates API</a> guide for more details.
19
+ *
20
+ * @property string $id Unique identifier for the object. Represented as the three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a> in lowercase.
21
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
22
+ * @property \Stripe\StripeObject $rates Hash where the keys are supported currencies and the values are the exchange rate at which the base id currency converts to the key currency.
23
+ */
24
+ class ExchangeRate extends ApiResource
25
+ {
26
+ const OBJECT_NAME = 'exchange_rate';
27
+
28
+ use ApiOperations\All;
29
+ use ApiOperations\Retrieve;
30
+ }
lib/stripe-php/lib/File.php ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * This is an object representing a file hosted on Stripe's servers. The file may
9
+ * have been uploaded by yourself using the <a
10
+ * href="https://stripe.com/docs/api#create_file">create file</a> request (for
11
+ * example, when uploading dispute evidence) or it may have been created by Stripe
12
+ * (for example, the results of a <a href="#scheduled_queries">Sigma scheduled
13
+ * query</a>).
14
+ *
15
+ * Related guide: <a href="https://stripe.com/docs/file-upload">File Upload
16
+ * Guide</a>.
17
+ *
18
+ * @property string $id Unique identifier for the object.
19
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
20
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
21
+ * @property null|int $expires_at The time at which the file expires and is no longer available in epoch seconds.
22
+ * @property null|string $filename A filename for the file, suitable for saving to a filesystem.
23
+ * @property null|\Stripe\Collection $links A list of <a href="https://stripe.com/docs/api#file_links">file links</a> that point at this file.
24
+ * @property string $purpose The <a href="https://stripe.com/docs/file-upload#uploading-a-file">purpose</a> of the uploaded file.
25
+ * @property int $size The size in bytes of the file object.
26
+ * @property null|string $title A user friendly title for the document.
27
+ * @property null|string $type The type of the file returned (e.g., <code>csv</code>, <code>pdf</code>, <code>jpg</code>, or <code>png</code>).
28
+ * @property null|string $url The URL from which the file can be downloaded using your live secret API key.
29
+ */
30
+ class File extends ApiResource
31
+ {
32
+ const OBJECT_NAME = 'file';
33
+
34
+ use ApiOperations\All;
35
+ use ApiOperations\Retrieve;
36
+
37
+ const PURPOSE_ACCOUNT_REQUIREMENT = 'account_requirement';
38
+ const PURPOSE_ADDITIONAL_VERIFICATION = 'additional_verification';
39
+ const PURPOSE_BUSINESS_ICON = 'business_icon';
40
+ const PURPOSE_BUSINESS_LOGO = 'business_logo';
41
+ const PURPOSE_CUSTOMER_SIGNATURE = 'customer_signature';
42
+ const PURPOSE_DISPUTE_EVIDENCE = 'dispute_evidence';
43
+ const PURPOSE_DOCUMENT_PROVIDER_IDENTITY_DOCUMENT = 'document_provider_identity_document';
44
+ const PURPOSE_FINANCE_REPORT_RUN = 'finance_report_run';
45
+ const PURPOSE_IDENTITY_DOCUMENT = 'identity_document';
46
+ const PURPOSE_IDENTITY_DOCUMENT_DOWNLOADABLE = 'identity_document_downloadable';
47
+ const PURPOSE_PCI_DOCUMENT = 'pci_document';
48
+ const PURPOSE_SELFIE = 'selfie';
49
+ const PURPOSE_SIGMA_SCHEDULED_QUERY = 'sigma_scheduled_query';
50
+ const PURPOSE_TAX_DOCUMENT_USER_UPLOAD = 'tax_document_user_upload';
51
+
52
+ // This resource can have two different object names. In latter API
53
+ // versions, only `file` is used, but since stripe-php may be used with
54
+ // any API version, we need to support deserializing the older
55
+ // `file_upload` object into the same class.
56
+ const OBJECT_NAME_ALT = 'file_upload';
57
+
58
+ use ApiOperations\Create {
59
+ create as protected _create;
60
+ }
61
+
62
+ public static function classUrl()
63
+ {
64
+ return '/v1/files';
65
+ }
66
+
67
+ /**
68
+ * @param null|array $params
69
+ * @param null|array|string $opts
70
+ *
71
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
72
+ *
73
+ * @return \Stripe\File the created file
74
+ */
75
+ public static function create($params = null, $opts = null)
76
+ {
77
+ $opts = \Stripe\Util\RequestOptions::parse($opts);
78
+ if (null === $opts->apiBase) {
79
+ $opts->apiBase = Stripe::$apiUploadBase;
80
+ }
81
+ // Manually flatten params, otherwise curl's multipart encoder will
82
+ // choke on nested arrays.
83
+ $flatParams = \array_column(\Stripe\Util\Util::flattenParams($params), 1, 0);
84
+
85
+ return static::_create($flatParams, $opts);
86
+ }
87
+ }
lib/stripe-php/lib/FileLink.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * To share the contents of a <code>File</code> object with non-Stripe users, you
9
+ * can create a <code>FileLink</code>. <code>FileLink</code>s contain a URL that
10
+ * can be used to retrieve the contents of the file without authentication.
11
+ *
12
+ * @property string $id Unique identifier for the object.
13
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
14
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
15
+ * @property bool $expired Whether this link is already expired.
16
+ * @property null|int $expires_at Time at which the link expires.
17
+ * @property string|\Stripe\File $file The file object this link points to.
18
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
19
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
20
+ * @property null|string $url The publicly accessible URL to download the file.
21
+ */
22
+ class FileLink extends ApiResource
23
+ {
24
+ const OBJECT_NAME = 'file_link';
25
+
26
+ use ApiOperations\All;
27
+ use ApiOperations\Create;
28
+ use ApiOperations\Retrieve;
29
+ use ApiOperations\Update;
30
+ }
lib/stripe-php/lib/HttpClient/ClientInterface.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\HttpClient;
4
+
5
+ interface ClientInterface
6
+ {
7
+ /**
8
+ * @param string $method The HTTP method being used
9
+ * @param string $absUrl The URL being requested, including domain and protocol
10
+ * @param array $headers Headers to be used in the request (full strings, not KV pairs)
11
+ * @param array $params KV pairs for parameters. Can be nested for arrays and hashes
12
+ * @param bool $hasFile Whether or not $params references a file (via an @ prefix or
13
+ * CURLFile)
14
+ *
15
+ * @throws \Stripe\Exception\ApiConnectionException
16
+ * @throws \Stripe\Exception\UnexpectedValueException
17
+ *
18
+ * @return array an array whose first element is raw request body, second
19
+ * element is HTTP status code and third array of HTTP headers
20
+ */
21
+ public function request($method, $absUrl, $headers, $params, $hasFile);
22
+ }
lib/stripe-php/l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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\HttpClient;
4
+
5
+ use Stripe\Exception;
6
+ use Stripe\Stripe;
7
+ use Stripe\Util;
8
+
9
+ // @codingStandardsIgnoreStart
10
+ // PSR2 requires all constants be upper case. Sadly, the CURL_SSLVERSION
11
+ // constants do not abide by those rules.
12
+
13
+ // Note the values come from their position in the enums that
14
+ // defines them in cURL's source code.
15
+
16
+ // Available since PHP 5.5.19 and 5.6.3
17
+ if (!\defined('CURL_SSLVERSION_TLSv1_2')) {
18
+ \define('CURL_SSLVERSION_TLSv1_2', 6);
19
+ }
20
+ // @codingStandardsIgnoreEnd
21
+
22
+ // Available since PHP 7.0.7 and cURL 7.47.0
23
+ if (!\defined('CURL_HTTP_VERSION_2TLS')) {
24
+ \define('CURL_HTTP_VERSION_2TLS', 4);
25
+ }
26
+
27
+ class CurlClient implements ClientInterface, StreamingClientInterface
28
+ {
29
+ protected static $instance;
30
+
31
+ public static function instance()
32
+ {
33
+ if (!static::$instance) {
34
+ static::$instance = new static();
35
+ }
36
+
37
+ return static::$instance;
38
+ }
39
+
40
+ protected $defaultOptions;
41
+
42
+ /** @var \Stripe\Util\RandomGenerator */
43
+ protected $randomGenerator;
44
+
45
+ protected $userAgentInfo;
46
+
47
+ protected $enablePersistentConnections = true;
48
+
49
+ protected $enableHttp2;
50
+
51
+ protected $curlHandle;
52
+
53
+ protected $requestStatusCallback;
54
+
55
+ /**
56
+ * CurlClient constructor.
57
+ *
58
+ * Pass in a callable to $defaultOptions that returns an array of CURLOPT_* values to start
59
+ * off a request with, or an flat array with the same format used by curl_setopt_array() to
60
+ * provide a static set of options. Note that many options are overridden later in the request
61
+ * call, including timeouts, which can be set via setTimeout() and setConnectTimeout().
62
+ *
63
+ * Note that request() will silently ignore a non-callable, non-array $defaultOptions, and will
64
+ * throw an exception if $defaultOptions returns a non-array value.
65
+ *
66
+ * @param null|array|callable $defaultOptions
67
+ * @param null|\Stripe\Util\RandomGenerator $randomGenerator
68
+ */
69
+ public function __construct($defaultOptions = null, $randomGenerator = null)
70
+ {
71
+ $this->defaultOptions = $defaultOptions;
72
+ $this->randomGenerator = $randomGenerator ?: new Util\RandomGenerator();
73
+ $this->initUserAgentInfo();
74
+
75
+ $this->enableHttp2 = $this->canSafelyUseHttp2();
76
+ }
77
+
78
+ public function __destruct()
79
+ {
80
+ $this->closeCurlHandle();
81
+ }
82
+
83
+ public function initUserAgentInfo()
84
+ {
85
+ $curlVersion = \curl_version();
86
+ $this->userAgentInfo = [
87
+ 'httplib' => 'curl ' . $curlVersion['version'],
88
+ 'ssllib' => $curlVersion['ssl_version'],
89
+ ];
90
+ }
91
+
92
+ public function getDefaultOptions()
93
+ {
94
+ return $this->defaultOptions;
95
+ }
96
+
97
+ public function getUserAgentInfo()
98
+ {
99
+ return $this->userAgentInfo;
100
+ }
101
+
102
+ /**
103
+ * @return bool
104
+ */
105
+ public function getEnablePersistentConnections()
106
+ {
107
+ return $this->enablePersistentConnections;
108
+ }
109
+
110
+ /**
111
+ * @param bool $enable
112
+ */
113
+ public function setEnablePersistentConnections($enable)
114
+ {
115
+ $this->enablePersistentConnections = $enable;
116
+ }
117
+
118
+ /**
119
+ * @return bool
120
+ */
121
+ public function getEnableHttp2()
122
+ {
123
+ return $this->enableHttp2;
124
+ }
125
+
126
+ /**
127
+ * @param bool $enable
128
+ */
129
+ public function setEnableHttp2($enable)
130
+ {
131
+ $this->enableHttp2 = $enable;
132
+ }
133
+
134
+ /**
135
+ * @return null|callable
136
+ */
137
+ public function getRequestStatusCallback()
138
+ {
139
+ return $this->requestStatusCallback;
140
+ }
141
+
142
+ /**
143
+ * Sets a callback that is called after each request. The callback will
144
+ * receive the following parameters:
145
+ * <ol>
146
+ * <li>string $rbody The response body</li>
147
+ * <li>integer $rcode The response status code</li>
148
+ * <li>\Stripe\Util\CaseInsensitiveArray $rheaders The response headers</li>
149
+ * <li>integer $errno The curl error number</li>
150
+ * <li>string|null $message The curl error message</li>
151
+ * <li>boolean $shouldRetry Whether the request will be retried</li>
152
+ * <li>integer $numRetries The number of the retry attempt</li>
153
+ * </ol>.
154
+ *
155
+ * @param null|callable $requestStatusCallback
156
+ */
157
+ public function setRequestStatusCallback($requestStatusCallback)
158
+ {
159
+ $this->requestStatusCallback = $requestStatusCallback;
160
+ }
161
+
162
+ // USER DEFINED TIMEOUTS
163
+
164
+ const DEFAULT_TIMEOUT = 80;
165
+ const DEFAULT_CONNECT_TIMEOUT = 30;
166
+
167
+ private $timeout = self::DEFAULT_TIMEOUT;
168
+ private $connectTimeout = self::DEFAULT_CONNECT_TIMEOUT;
169
+
170
+ public function setTimeout($seconds)
171
+ {
172
+ $this->timeout = (int) \max($seconds, 0);
173
+
174
+ return $this;
175
+ }
176
+
177
+ public function setConnectTimeout($seconds)
178
+ {
179
+ $this->connectTimeout = (int) \max($seconds, 0);
180
+
181
+ return $this;
182
+ }
183
+
184
+ public function getTimeout()
185
+ {
186
+ return $this->timeout;
187
+ }
188
+
189
+ public function getConnectTimeout()
190
+ {
191
+ return $this->connectTimeout;
192
+ }
193
+
194
+ // END OF USER DEFINED TIMEOUTS
195
+
196
+ private function constructRequest($method, $absUrl, $headers, $params, $hasFile)
197
+ {
198
+ $method = \strtolower($method);
199
+
200
+ $opts = [];
201
+ if (\is_callable($this->defaultOptions)) { // call defaultOptions callback, set options to return value
202
+ $opts = \call_user_func_array($this->defaultOptions, \func_get_args());
203
+ if (!\is_array($opts)) {
204
+ throw new Exception\UnexpectedValueException('Non-array value returned by defaultOptions CurlClient callback');
205
+ }
206
+ } elseif (\is_array($this->defaultOptions)) { // set default curlopts from array
207
+ $opts = $this->defaultOptions;
208
+ }
209
+
210
+ $params = Util\Util::objectsToIds($params);
211
+
212
+ if ('get' === $method) {
213
+ if ($hasFile) {
214
+ throw new Exception\UnexpectedValueException(
215
+ 'Issuing a GET request with a file parameter'
216
+ );
217
+ }
218
+ $opts[\CURLOPT_HTTPGET] = 1;
219
+ if (\count($params) > 0) {
220
+ $encoded = Util\Util::encodeParameters($params);
221
+ $absUrl = "{$absUrl}?{$encoded}";
222
+ }
223
+ } elseif ('post' === $method) {
224
+ $opts[\CURLOPT_POST] = 1;
225
+ $opts[\CURLOPT_POSTFIELDS] = $hasFile ? $params : Util\Util::encodeParameters($params);
226
+ } elseif ('delete' === $method) {
227
+ $opts[\CURLOPT_CUSTOMREQUEST] = 'DELETE';
228
+ if (\count($params) > 0) {
229
+ $encoded = Util\Util::encodeParameters($params);
230
+ $absUrl = "{$absUrl}?{$encoded}";
231
+ }
232
+ } else {
233
+ throw new Exception\UnexpectedValueException("Unrecognized method {$method}");
234
+ }
235
+
236
+ // It is only safe to retry network failures on POST requests if we
237
+ // add an Idempotency-Key header
238
+ if (('post' === $method) && (Stripe::$maxNetworkRetries > 0)) {
239
+ if (!$this->hasHeader($headers, 'Idempotency-Key')) {
240
+ $headers[] = 'Idempotency-Key: ' . $this->randomGenerator->uuid();
241
+ }
242
+ }
243
+
244
+ // By default for large request body sizes (> 1024 bytes), cURL will
245
+ // send a request without a body and with a `Expect: 100-continue`
246
+ // header, which gives the server a chance to respond with an error
247
+ // status code in cases where one can be determined right away (say
248
+ // on an authentication problem for example), and saves the "large"
249
+ // request body from being ever sent.
250
+ //
251
+ // Unfortunately, the bindings don't currently correctly handle the
252
+ // success case (in which the server sends back a 100 CONTINUE), so
253
+ // we'll error under that condition. To compensate for that problem
254
+ // for the time being, override cURL's behavior by simply always
255
+ // sending an empty `Expect:` header.
256
+ $headers[] = 'Expect: ';
257
+
258
+ $absUrl = Util\Util::utf8($absUrl);
259
+ $opts[\CURLOPT_URL] = $absUrl;
260
+ $opts[\CURLOPT_RETURNTRANSFER] = true;
261
+ $opts[\CURLOPT_CONNECTTIMEOUT] = $this->connectTimeout;
262
+ $opts[\CURLOPT_TIMEOUT] = $this->timeout;
263
+ $opts[\CURLOPT_HTTPHEADER] = $headers;
264
+ $opts[\CURLOPT_CAINFO] = Stripe::getCABundlePath();
265
+ if (!Stripe::getVerifySslCerts()) {
266
+ $opts[\CURLOPT_SSL_VERIFYPEER] = false;
267
+ }
268
+
269
+ if (!isset($opts[\CURLOPT_HTTP_VERSION]) && $this->getEnableHttp2()) {
270
+ // For HTTPS requests, enable HTTP/2, if supported
271
+ $opts[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2TLS;
272
+ }
273
+
274
+ // Stripe's API servers are only accessible over IPv4. Force IPv4 resolving to avoid
275
+ // potential issues (cf. https://github.com/stripe/stripe-php/issues/1045).
276
+ $opts[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V4;
277
+
278
+ return [$opts, $absUrl];
279
+ }
280
+
281
+ public function request($method, $absUrl, $headers, $params, $hasFile)
282
+ {
283
+ list($opts, $absUrl) = $this->constructRequest($method, $absUrl, $headers, $params, $hasFile);
284
+
285
+ list($rbody, $rcode, $rheaders) = $this->executeRequestWithRetries($opts, $absUrl);
286
+
287
+ return [$rbody, $rcode, $rheaders];
288
+ }
289
+
290
+ public function requestStream($method, $absUrl, $headers, $params, $hasFile, $readBodyChunk)
291
+ {
292
+ list($opts, $absUrl) = $this->constructRequest($method, $absUrl, $headers, $params, $hasFile);
293
+
294
+ $opts[\CURLOPT_RETURNTRANSFER] = false;
295
+ list($rbody, $rcode, $rheaders) = $this->executeStreamingRequestWithRetries($opts, $absUrl, $readBodyChunk);
296
+
297
+ return [$rbody, $rcode, $rheaders];
298
+ }
299
+
300
+ /**
301
+ * Curl permits sending \CURLOPT_HEADERFUNCTION, which is called with lines
302
+ * from the header and \CURLOPT_WRITEFUNCTION, which is called with bytes
303
+ * from the body. You usually want to handle the body differently depending
304
+ * on what was in the header.
305
+ *
306
+ * This function makes it easier to specify different callbacks depending
307
+ * on the contents of the heeder. After the header has been completely read
308
+ * and the body begins to stream, it will call $determineWriteCallback with
309
+ * the array of headers. $determineWriteCallback should, based on the
310
+ * headers it receives, return a "writeCallback" that describes what to do
311
+ * with the incoming HTTP response body.
312
+ *
313
+ * @param array $opts
314
+ * @param callable $determineWriteCallback
315
+ *
316
+ * @return array
317
+ */
318
+ private function useHeadersToDetermineWriteCallback($opts, $determineWriteCallback)
319
+ {
320
+ $rheaders = new Util\CaseInsensitiveArray();
321
+ $headerCallback = function ($curl, $header_line) use (&$rheaders) {
322
+ return self::parseLineIntoHeaderArray($header_line, $rheaders);
323
+ };
324
+
325
+ $writeCallback = null;
326
+ $writeCallbackWrapper = function ($curl, $data) use (&$writeCallback, &$rheaders, &$determineWriteCallback) {
327
+ if (null === $writeCallback) {
328
+ $writeCallback = \call_user_func_array($determineWriteCallback, [$rheaders]);
329
+ }
330
+
331
+ return \call_user_func_array($writeCallback, [$curl, $data]);
332
+ };
333
+
334
+ return [$headerCallback, $writeCallbackWrapper];
335
+ }
336
+
337
+ private static function parseLineIntoHeaderArray($line, &$headers)
338
+ {
339
+ if (false === \strpos($line, ':')) {
340
+ return \strlen($line);
341
+ }
342
+ list($key, $value) = \explode(':', \trim($line), 2);
343
+ $headers[\trim($key)] = \trim($value);
344
+
345
+ return \strlen($line);
346
+ }
347
+
348
+ /**
349
+ * Like `executeRequestWithRetries` except:
350
+ * 1. Does not buffer the body of a successful (status code < 300)
351
+ * response into memory -- instead, calls the caller-provided
352
+ * $readBodyChunk with each chunk of incoming data.
353
+ * 2. Does not retry if a network error occurs while streaming the
354
+ * body of a successful response.
355
+ *
356
+ * @param array $opts cURL options
357
+ * @param string $absUrl
358
+ * @param callable $readBodyChunk
359
+ *
360
+ * @return array
361
+ */
362
+ public function executeStreamingRequestWithRetries($opts, $absUrl, $readBodyChunk)
363
+ {
364
+ /** @var bool */
365
+ $shouldRetry = false;
366
+ /** @var int */
367
+ $numRetries = 0;
368
+
369
+ // Will contain the bytes of the body of the last request
370
+ // if it was not successful and should not be retries
371
+ /** @var null|string */
372
+ $rbody = null;
373
+
374
+ // Status code of the last request
375
+ /** @var null|bool */
376
+ $rcode = null;
377
+
378
+ // Array of headers from the last request
379
+ /** @var null|array */
380
+ $lastRHeaders = null;
381
+
382
+ $errno = null;
383
+ $message = null;
384
+
385
+ $determineWriteCallback = function ($rheaders) use (
386
+ &$readBodyChunk,
387
+ &$shouldRetry,
388
+ &$rbody,
389
+ &$numRetries,
390
+ &$rcode,
391
+ &$lastRHeaders,
392
+ &$errno
393
+ ) {
394
+ $lastRHeaders = $rheaders;
395
+ $errno = \curl_errno($this->curlHandle);
396
+
397
+ $rcode = \curl_getinfo($this->curlHandle, \CURLINFO_HTTP_CODE);
398
+
399
+ // Send the bytes from the body of a successful request to the caller-provided $readBodyChunk.
400
+ if ($rcode < 300) {
401
+ $rbody = null;
402
+
403
+ return function ($curl, $data) use (&$readBodyChunk) {
404
+ // Don't expose the $curl handle to the user, and don't require them to
405
+ // return the length of $data.
406
+ \call_user_func_array($readBodyChunk, [$data]);
407
+
408
+ return \strlen($data);
409
+ };
410
+ }
411
+
412
+ $shouldRetry = $this->shouldRetry($errno, $rcode, $rheaders, $numRetries);
413
+
414
+ // Discard the body from an unsuccessful request that should be retried.
415
+ if ($shouldRetry) {
416
+ return function ($curl, $data) {
417
+ return \strlen($data);
418
+ };
419
+ } else {
420
+ // Otherwise, buffer the body into $rbody. It will need to be parsed to determine
421
+ // which exception to throw to the user.
422
+ $rbody = '';
423
+
424
+ return function ($curl, $data) use (&$rbody) {
425
+ $rbody .= $data;
426
+
427
+ return \strlen($data);
428
+ };
429
+ }
430
+ };
431
+
432
+ while (true) {
433
+ list($headerCallback, $writeCallback) = $this->useHeadersToDetermineWriteCallback($opts, $determineWriteCallback);
434
+ $opts[\CURLOPT_HEADERFUNCTION] = $headerCallback;
435
+ $opts[\CURLOPT_WRITEFUNCTION] = $writeCallback;
436
+
437
+ $shouldRetry = false;
438
+ $rbody = null;
439
+ $this->resetCurlHandle();
440
+ \curl_setopt_array($this->curlHandle, $opts);
441
+ $result = \curl_exec($this->curlHandle);
442
+ $errno = \curl_errno($this->curlHandle);
443
+ if (0 !== $errno) {
444
+ $message = \curl_error($this->curlHandle);
445
+ }
446
+ if (!$this->getEnablePersistentConnections()) {
447
+ $this->closeCurlHandle();
448
+ }
449
+
450
+ if (\is_callable($this->getRequestStatusCallback())) {
451
+ \call_user_func_array(
452
+ $this->getRequestStatusCallback(),
453
+ [$rbody, $rcode, $lastRHeaders, $errno, $message, $shouldRetry, $numRetries]
454
+ );
455
+ }
456
+
457
+ if ($shouldRetry) {
458
+ ++$numRetries;
459
+ $sleepSeconds = $this->sleepTime($numRetries, $lastRHeaders);
460
+ \usleep((int) ($sleepSeconds * 1000000));
461
+ } else {
462
+ break;
463
+ }
464
+ }
465
+
466
+ if (0 !== $errno) {
467
+ $this->handleCurlError($absUrl, $errno, $message, $numRetries);
468
+ }
469
+
470
+ return [$rbody, $rcode, $lastRHeaders];
471
+ }
472
+
473
+ /**
474
+ * @param array $opts cURL options
475
+ * @param string $absUrl
476
+ */
477
+ public function executeRequestWithRetries($opts, $absUrl)
478
+ {
479
+ $numRetries = 0;
480
+
481
+ while (true) {
482
+ $rcode = 0;
483
+ $errno = 0;
484
+ $message = null;
485
+
486
+ // Create a callback to capture HTTP headers for the response
487
+ $rheaders = new Util\CaseInsensitiveArray();
488
+ $headerCallback = function ($curl, $header_line) use (&$rheaders) {
489
+ return CurlClient::parseLineIntoHeaderArray($header_line, $rheaders);
490
+ };
491
+ $opts[\CURLOPT_HEADERFUNCTION] = $headerCallback;
492
+
493
+ $this->resetCurlHandle();
494
+ \curl_setopt_array($this->curlHandle, $opts);
495
+ $rbody = \curl_exec($this->curlHandle);
496
+
497
+ if (false === $rbody) {
498
+ $errno = \curl_errno($this->curlHandle);
499
+ $message = \curl_error($this->curlHandle);
500
+ } else {
501
+ $rcode = \curl_getinfo($this->curlHandle, \CURLINFO_HTTP_CODE);
502
+ }
503
+ if (!$this->getEnablePersistentConnections()) {
504
+ $this->closeCurlHandle();
505
+ }
506
+
507
+ $shouldRetry = $this->shouldRetry($errno, $rcode, $rheaders, $numRetries);
508
+
509
+ if (\is_callable($this->getRequestStatusCallback())) {
510
+ \call_user_func_array(
511
+ $this->getRequestStatusCallback(),
512
+ [$rbody, $rcode, $rheaders, $errno, $message, $shouldRetry, $numRetries]
513
+ );
514
+ }
515
+
516
+ if ($shouldRetry) {
517
+ ++$numRetries;
518
+ $sleepSeconds = $this->sleepTime($numRetries, $rheaders);
519
+ \usleep((int) ($sleepSeconds * 1000000));
520
+ } else {
521
+ break;
522
+ }
523
+ }
524
+
525
+ if (false === $rbody) {
526
+ $this->handleCurlError($absUrl, $errno, $message, $numRetries);
527
+ }
528
+
529
+ return [$rbody, $rcode, $rheaders];
530
+ }
531
+
532
+ /**
533
+ * @param string $url
534
+ * @param int $errno
535
+ * @param string $message
536
+ * @param int $numRetries
537
+ *
538
+ * @throws Exception\ApiConnectionException
539
+ */
540
+ private function handleCurlError($url, $errno, $message, $numRetries)
541
+ {
542
+ switch ($errno) {
543
+ case \CURLE_COULDNT_CONNECT:
544
+ case \CURLE_COULDNT_RESOLVE_HOST:
545
+ case \CURLE_OPERATION_TIMEOUTED:
546
+ $msg = "Could not connect to Stripe ({$url}). Please check your "
547
+ . 'internet connection and try again. If this problem persists, '
548
+ . "you should check Stripe's service status at "
549
+ . 'https://twitter.com/stripestatus, or';
550
+
551
+ break;
552
+
553
+ case \CURLE_SSL_CACERT:
554
+ case \CURLE_SSL_PEER_CERTIFICATE:
555
+ $msg = "Could not verify Stripe's SSL certificate. Please make sure "
556
+ . 'that your network is not intercepting certificates. '
557
+ . "(Try going to {$url} in your browser.) "
558
+ . 'If this problem persists,';
559
+
560
+ break;
561
+
562
+ default:
563
+ $msg = 'Unexpected error communicating with Stripe. '
564
+ . 'If this problem persists,';
565
+ }
566
+ $msg .= ' let us know at support@stripe.com.';
567
+
568
+ $msg .= "\n\n(Network error [errno {$errno}]: {$message})";
569
+
570
+ if ($numRetries > 0) {
571
+ $msg .= "\n\nRequest was retried {$numRetries} times.";
572
+ }
573
+
574
+ throw new Exception\ApiConnectionException($msg);
575
+ }
576
+
577
+ /**
578
+ * Checks if an error is a problem that we should retry on. This includes both
579
+ * socket errors that may represent an intermittent problem and some special
580
+ * HTTP statuses.
581
+ *
582
+ * @param int $errno
583
+ * @param int $rcode
584
+ * @param array|\Stripe\Util\CaseInsensitiveArray $rheaders
585
+ * @param int $numRetries
586
+ *
587
+ * @return bool
588
+ */
589
+ private function shouldRetry($errno, $rcode, $rheaders, $numRetries)
590
+ {
591
+ if ($numRetries >= Stripe::getMaxNetworkRetries()) {
592
+ return false;
593
+ }
594
+
595
+ // Retry on timeout-related problems (either on open or read).
596
+ if (\CURLE_OPERATION_TIMEOUTED === $errno) {
597
+ return true;
598
+ }
599
+
600
+ // Destination refused the connection, the connection was reset, or a
601
+ // variety of other connection failures. This could occur from a single
602
+ // saturated server, so retry in case it's intermittent.
603
+ if (\CURLE_COULDNT_CONNECT === $errno) {
604
+ return true;
605
+ }
606
+
607
+ // The API may ask us not to retry (eg; if doing so would be a no-op)
608
+ // or advise us to retry (eg; in cases of lock timeouts); we defer to that.
609
+ if (isset($rheaders['stripe-should-retry'])) {
610
+ if ('false' === $rheaders['stripe-should-retry']) {
611
+ return false;
612
+ }
613
+ if ('true' === $rheaders['stripe-should-retry']) {
614
+ return true;
615
+ }
616
+ }
617
+
618
+ // 409 Conflict
619
+ if (409 === $rcode) {
620
+ return true;
621
+ }
622
+
623
+ // Retry on 500, 503, and other internal errors.
624
+ //
625
+ // Note that we expect the stripe-should-retry header to be false
626
+ // in most cases when a 500 is returned, since our idempotency framework
627
+ // would typically replay it anyway.
628
+ if ($rcode >= 500) {
629
+ return true;
630
+ }
631
+
632
+ return false;
633
+ }
634
+
635
+ /**
636
+ * Provides the number of seconds to wait before retrying a request.
637
+ *
638
+ * @param int $numRetries
639
+ * @param array|\Stripe\Util\CaseInsensitiveArray $rheaders
640
+ *
641
+ * @return int
642
+ */
643
+ private function sleepTime($numRetries, $rheaders)
644
+ {
645
+ // Apply exponential backoff with $initialNetworkRetryDelay on the
646
+ // number of $numRetries so far as inputs. Do not allow the number to exceed
647
+ // $maxNetworkRetryDelay.
648
+ $sleepSeconds = \min(
649
+ Stripe::getInitialNetworkRetryDelay() * 1.0 * 2 ** ($numRetries - 1),
650
+ Stripe::getMaxNetworkRetryDelay()
651
+ );
652
+
653
+ // Apply some jitter by randomizing the value in the range of
654
+ // ($sleepSeconds / 2) to ($sleepSeconds).
655
+ $sleepSeconds *= 0.5 * (1 + $this->randomGenerator->randFloat());
656
+
657
+ // But never sleep less than the base sleep seconds.
658
+ $sleepSeconds = \max(Stripe::getInitialNetworkRetryDelay(), $sleepSeconds);
659
+
660
+ // And never sleep less than the time the API asks us to wait, assuming it's a reasonable ask.
661
+ $retryAfter = isset($rheaders['retry-after']) ? (float) ($rheaders['retry-after']) : 0.0;
662
+ if (\floor($retryAfter) === $retryAfter && $retryAfter <= Stripe::getMaxRetryAfter()) {
663
+ $sleepSeconds = \max($sleepSeconds, $retryAfter);
664
+ }
665
+
666
+ return $sleepSeconds;
667
+ }
668
+
669
+ /**
670
+ * Initializes the curl handle. If already initialized, the handle is closed first.
671
+ */
672
+ private function initCurlHandle()
673
+ {
674
+ $this->closeCurlHandle();
675
+ $this->curlHandle = \curl_init();
676
+ }
677
+
678
+ /**
679
+ * Closes the curl handle if initialized. Do nothing if already closed.
680
+ */
681
+ private function closeCurlHandle()
682
+ {
683
+ if (null !== $this->curlHandle) {
684
+ \curl_close($this->curlHandle);
685
+ $this->curlHandle = null;
686
+ }
687
+ }
688
+
689
+ /**
690
+ * Resets the curl handle. If the handle is not already initialized, or if persistent
691
+ * connections are disabled, the handle is reinitialized instead.
692
+ */
693
+ private function resetCurlHandle()
694
+ {
695
+ if (null !== $this->curlHandle && $this->getEnablePersistentConnections()) {
696
+ \curl_reset($this->curlHandle);
697
+ } else {
698
+ $this->initCurlHandle();
699
+ }
700
+ }
701
+
702
+ /**
703
+ * Indicates whether it is safe to use HTTP/2 or not.
704
+ *
705
+ * @return bool
706
+ */
707
+ private function canSafelyUseHttp2()
708
+ {
709
+ // Versions of curl older than 7.60.0 don't respect GOAWAY frames
710
+ // (cf. https://github.com/curl/curl/issues/2416), which Stripe use.
711
+ $curlVersion = \curl_version()['version'];
712
+
713
+ return \version_compare($curlVersion, '7.60.0') >= 0;
714
+ }
715
+
716
+ /**
717
+ * Checks if a list of headers contains a specific header name.
718
+ *
719
+ * @param string[] $headers
720
+ * @param string $name
721
+ *
722
+ * @return bool
723
+ */
724
+ private function hasHeader($headers, $name)
725
+ {
726
+ foreach ($headers as $header) {
727
+ if (0 === \strncasecmp($header, "{$name}: ", \strlen($name) + 2)) {
728
+ return true;
729
+ }
730
+ }
731
+
732
+ return false;
733
+ }
734
+ }
lib/stripe-php/lib/HttpClient/StreamingClientInterface.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\HttpClient;
4
+
5
+ interface StreamingClientInterface
6
+ {
7
+ /**
8
+ * @param string $method The HTTP method being used
9
+ * @param string $absUrl The URL being requested, including domain and protocol
10
+ * @param array $headers Headers to be used in the request (full strings, not KV pairs)
11
+ * @param array $params KV pairs for parameters. Can be nested for arrays and hashes
12
+ * @param bool $hasFile Whether or not $params references a file (via an @ prefix or
13
+ * CURLFile)
14
+ * @param callable $readBodyChunkCallable a function that will be called with chunks of bytes from the body if the request is successful
15
+ *
16
+ * @throws \Stripe\Exception\ApiConnectionException
17
+ * @throws \Stripe\Exception\UnexpectedValueException
18
+ *
19
+ * @return array an array whose first element is raw request body, second
20
+ * element is HTTP status code and third array of HTTP headers
21
+ */
22
+ public function requestStream($method, $absUrl, $headers, $params, $hasFile, $readBodyChunkCallable);
23
+ }
lib/stripe-php/lib/Identity/VerificationReport.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Identity;
6
+
7
+ /**
8
+ * A VerificationReport is the result of an attempt to collect and verify data from
9
+ * a user. The collection of verification checks performed is determined from the
10
+ * <code>type</code> and <code>options</code> parameters used. You can find the
11
+ * result of each verification check performed in the appropriate sub-resource:
12
+ * <code>document</code>, <code>id_number</code>, <code>selfie</code>.
13
+ *
14
+ * Each VerificationReport contains a copy of any data collected by the user as
15
+ * well as reference IDs which can be used to access collected images through the
16
+ * <a href="https://stripe.com/docs/api/files">FileUpload</a> API. To configure and
17
+ * create VerificationReports, use the <a
18
+ * href="https://stripe.com/docs/api/identity/verification_sessions">VerificationSession</a>
19
+ * API.
20
+ *
21
+ * Related guides: <a
22
+ * href="https://stripe.com/docs/identity/verification-sessions#results">Accessing
23
+ * verification results</a>.
24
+ *
25
+ * @property string $id Unique identifier for the object.
26
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
27
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
28
+ * @property \Stripe\StripeObject $document Result from a document check
29
+ * @property \Stripe\StripeObject $id_number Result from an id_number check
30
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
31
+ * @property \Stripe\StripeObject $options
32
+ * @property \Stripe\StripeObject $selfie Result from a selfie check
33
+ * @property string $type Type of report.
34
+ * @property null|string $verification_session ID of the VerificationSession that created this report.
35
+ */
36
+ class VerificationReport extends \Stripe\ApiResource
37
+ {
38
+ const OBJECT_NAME = 'identity.verification_report';
39
+
40
+ use \Stripe\ApiOperations\All;
41
+ use \Stripe\ApiOperations\Retrieve;
42
+
43
+ const TYPE_DOCUMENT = 'document';
44
+ const TYPE_ID_NUMBER = 'id_number';
45
+ }
lib/stripe-php/lib/Identity/VerificationSession.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Identity;
6
+
7
+ /**
8
+ * A VerificationSession guides you through the process of collecting and verifying
9
+ * the identities of your users. It contains details about the type of
10
+ * verification, such as what <a
11
+ * href="/docs/identity/verification-checks">verification check</a> to perform.
12
+ * Only create one VerificationSession for each verification in your system.
13
+ *
14
+ * A VerificationSession transitions through <a
15
+ * href="/docs/identity/how-sessions-work">multiple statuses</a> throughout its
16
+ * lifetime as it progresses through the verification flow. The VerificationSession
17
+ * contains the user’s verified data after verification checks are complete.
18
+ *
19
+ * Related guide: <a
20
+ * href="https://stripe.com/docs/identity/verification-sessions">The Verification
21
+ * Sessions API</a>
22
+ *
23
+ * @property string $id Unique identifier for the object.
24
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
25
+ * @property null|string $client_secret The short-lived client secret used by Stripe.js to <a href="https://stripe.com/docs/js/identity/modal">show a verification modal</a> inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on <a href="https://stripe.com/docs/identity/verification-sessions#client-secret">passing the client secret to the frontend</a> to learn more.
26
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
27
+ * @property null|\Stripe\StripeObject $last_error If present, this property tells you the last error encountered when processing the verification.
28
+ * @property null|string|\Stripe\Identity\VerificationReport $last_verification_report ID of the most recent VerificationReport. <a href="https://stripe.com/docs/identity/verification-sessions#results">Learn more about accessing detailed verification results.</a>
29
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
30
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
31
+ * @property \Stripe\StripeObject $options
32
+ * @property null|\Stripe\StripeObject $redaction Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
33
+ * @property string $status Status of this VerificationSession. <a href="https://stripe.com/docs/identity/how-sessions-work">Learn more about the lifecycle of sessions</a>.
34
+ * @property string $type The type of <a href="https://stripe.com/docs/identity/verification-checks">verification check</a> to be performed.
35
+ * @property null|string $url The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on <a href="https://stripe.com/docs/identity/verify-identity-documents?platform=web&amp;type=redirect">verifying identity documents</a> to learn how to redirect users to Stripe.
36
+ * @property null|\Stripe\StripeObject $verified_outputs The user’s verified data.
37
+ */
38
+ class VerificationSession extends \Stripe\ApiResource
39
+ {
40
+ const OBJECT_NAME = 'identity.verification_session';
41
+
42
+ use \Stripe\ApiOperations\All;
43
+ use \Stripe\ApiOperations\Create;
44
+ use \Stripe\ApiOperations\Retrieve;
45
+ use \Stripe\ApiOperations\Update;
46
+
47
+ const STATUS_CANCELED = 'canceled';
48
+ const STATUS_PROCESSING = 'processing';
49
+ const STATUS_REQUIRES_INPUT = 'requires_input';
50
+ const STATUS_VERIFIED = 'verified';
51
+
52
+ const TYPE_DOCUMENT = 'document';
53
+ const TYPE_ID_NUMBER = 'id_number';
54
+
55
+ /**
56
+ * @param null|array $params
57
+ * @param null|array|string $opts
58
+ *
59
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
60
+ *
61
+ * @return \Stripe\VerificationSession the canceled verification session
62
+ */
63
+ public function cancel($params = null, $opts = null)
64
+ {
65
+ $url = $this->instanceUrl() . '/cancel';
66
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
67
+ $this->refreshFrom($response, $opts);
68
+
69
+ return $this;
70
+ }
71
+
72
+ /**
73
+ * @param null|array $params
74
+ * @param null|array|string $opts
75
+ *
76
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
77
+ *
78
+ * @return \Stripe\VerificationSession the redacted verification session
79
+ */
80
+ public function redact($params = null, $opts = null)
81
+ {
82
+ $url = $this->instanceUrl() . '/redact';
83
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
84
+ $this->refreshFrom($response, $opts);
85
+
86
+ return $this;
87
+ }
88
+ }
lib/stripe-php/lib/Invoice.php ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Invoices are statements of amounts owed by a customer, and are either generated
9
+ * one-off, or generated periodically from a subscription.
10
+ *
11
+ * They contain <a href="https://stripe.com/docs/api#invoiceitems">invoice
12
+ * items</a>, and proration adjustments that may be caused by subscription
13
+ * upgrades/downgrades (if necessary).
14
+ *
15
+ * If your invoice is configured to be billed through automatic charges, Stripe
16
+ * automatically finalizes your invoice and attempts payment. Note that finalizing
17
+ * the invoice, <a
18
+ * href="https://stripe.com/docs/billing/invoices/workflow/#auto_advance">when
19
+ * automatic</a>, does not happen immediately as the invoice is created. Stripe
20
+ * waits until one hour after the last webhook was successfully sent (or the last
21
+ * webhook timed out after failing). If you (and the platforms you may have
22
+ * connected to) have no webhooks configured, Stripe waits one hour after creation
23
+ * to finalize the invoice.
24
+ *
25
+ * If your invoice is configured to be billed by sending an email, then based on
26
+ * your <a href="https://dashboard.stripe.com/account/billing/automatic">email
27
+ * settings</a>, Stripe will email the invoice to your customer and await payment.
28
+ * These emails can contain a link to a hosted page to pay the invoice.
29
+ *
30
+ * Stripe applies any customer credit on the account before determining the amount
31
+ * due for the invoice (i.e., the amount that will be actually charged). If the
32
+ * amount due for the invoice is less than Stripe's <a
33
+ * href="/docs/currencies#minimum-and-maximum-charge-amounts">minimum allowed
34
+ * charge per currency</a>, the invoice is automatically marked paid, and we add
35
+ * the amount due to the customer's credit balance which is applied to the next
36
+ * invoice.
37
+ *
38
+ * More details on the customer's credit balance are <a
39
+ * href="https://stripe.com/docs/billing/customer/balance">here</a>.
40
+ *
41
+ * Related guide: <a href="https://stripe.com/docs/billing/invoices/sending">Send
42
+ * Invoices to Customers</a>.
43
+ *
44
+ * @property string $id Unique identifier for the object.
45
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
46
+ * @property null|string $account_country The country of the business associated with this invoice, most often the business creating the invoice.
47
+ * @property null|string $account_name The public name of the business associated with this invoice, most often the business creating the invoice.
48
+ * @property null|(string|\Stripe\TaxId)[] $account_tax_ids The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
49
+ * @property int $amount_due Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the <code>amount_due</code> may be 0. If there is a positive <code>starting_balance</code> for the invoice (the customer owes money), the <code>amount_due</code> will also take that into account. The charge that gets generated for the invoice will be for the amount specified in <code>amount_due</code>.
50
+ * @property int $amount_paid The amount, in %s, that was paid.
51
+ * @property int $amount_remaining The amount remaining, in %s, that is due.
52
+ * @property null|int $application_fee_amount The fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.
53
+ * @property int $attempt_count Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule.
54
+ * @property bool $attempted Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the <code>invoice.created</code> webhook, for example, so you might not want to display that invoice as unpaid to your users.
55
+ * @property bool $auto_advance Controls whether Stripe will perform <a href="https://stripe.com/docs/billing/invoices/workflow/#auto_advance">automatic collection</a> of the invoice. When <code>false</code>, the invoice's state will not automatically advance without an explicit action.
56
+ * @property \Stripe\StripeObject $automatic_tax
57
+ * @property null|string $billing_reason Indicates the reason why the invoice was created. <code>subscription_cycle</code> indicates an invoice created by a subscription advancing into a new period. <code>subscription_create</code> indicates an invoice created due to creating a subscription. <code>subscription_update</code> indicates an invoice created due to updating a subscription. <code>subscription</code> is set for all old invoices to indicate either a change to a subscription or a period advancement. <code>manual</code> is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The <code>upcoming</code> value is reserved for simulated invoices per the upcoming invoice endpoint. <code>subscription_threshold</code> indicates an invoice created due to a billing threshold being reached.
58
+ * @property null|string|\Stripe\Charge $charge ID of the latest charge generated for this invoice, if any.
59
+ * @property string $collection_method Either <code>charge_automatically</code>, or <code>send_invoice</code>. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
60
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
61
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
62
+ * @property null|\Stripe\StripeObject[] $custom_fields Custom fields displayed on the invoice.
63
+ * @property null|string|\Stripe\Customer $customer The ID of the customer who will be billed.
64
+ * @property null|\Stripe\StripeObject $customer_address The customer's address. Until the invoice is finalized, this field will equal <code>customer.address</code>. Once the invoice is finalized, this field will no longer be updated.
65
+ * @property null|string $customer_email The customer's email. Until the invoice is finalized, this field will equal <code>customer.email</code>. Once the invoice is finalized, this field will no longer be updated.
66
+ * @property null|string $customer_name The customer's name. Until the invoice is finalized, this field will equal <code>customer.name</code>. Once the invoice is finalized, this field will no longer be updated.
67
+ * @property null|string $customer_phone The customer's phone number. Until the invoice is finalized, this field will equal <code>customer.phone</code>. Once the invoice is finalized, this field will no longer be updated.
68
+ * @property null|\Stripe\StripeObject $customer_shipping The customer's shipping information. Until the invoice is finalized, this field will equal <code>customer.shipping</code>. Once the invoice is finalized, this field will no longer be updated.
69
+ * @property null|string $customer_tax_exempt The customer's tax exempt status. Until the invoice is finalized, this field will equal <code>customer.tax_exempt</code>. Once the invoice is finalized, this field will no longer be updated.
70
+ * @property null|\Stripe\StripeObject[] $customer_tax_ids The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as <code>customer.tax_ids</code>. Once the invoice is finalized, this field will no longer be updated.
71
+ * @property null|string|\Stripe\PaymentMethod $default_payment_method ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
72
+ * @property null|string|\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source $default_source ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
73
+ * @property \Stripe\TaxRate[] $default_tax_rates The tax rates applied to this invoice, if any.
74
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
75
+ * @property null|\Stripe\Discount $discount Describes the current discount applied to this invoice, if there is one. Not populated if there are multiple discounts.
76
+ * @property null|(string|\Stripe\Discount)[] $discounts The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use <code>expand[]=discounts</code> to expand each discount.
77
+ * @property null|int $due_date The date on which payment for this invoice is due. This value will be <code>null</code> for invoices where <code>collection_method=charge_automatically</code>.
78
+ * @property null|int $ending_balance Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
79
+ * @property null|string $footer Footer displayed on the invoice.
80
+ * @property null|string $hosted_invoice_url The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.
81
+ * @property null|string $invoice_pdf The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.
82
+ * @property null|\Stripe\ErrorObject $last_finalization_error The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
83
+ * @property \Stripe\Collection $lines The individual line items that make up the invoice. <code>lines</code> is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.
84
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
85
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
86
+ * @property null|int $next_payment_attempt The time at which payment will next be attempted. This value will be <code>null</code> for invoices where <code>collection_method=send_invoice</code>.
87
+ * @property null|string $number A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.
88
+ * @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the <a href="https://stripe.com/docs/billing/invoices/connect">Invoices with Connect</a> documentation for details.
89
+ * @property bool $paid Whether payment was successfully collected for this invoice. An invoice can be paid (most commonly) with a charge or with credit from the customer's account balance.
90
+ * @property null|string|\Stripe\PaymentIntent $payment_intent The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice. Note that voiding an invoice will cancel the PaymentIntent.
91
+ * @property \Stripe\StripeObject $payment_settings
92
+ * @property int $period_end End of the usage period during which invoice items were added to this invoice.
93
+ * @property int $period_start Start of the usage period during which invoice items were added to this invoice.
94
+ * @property int $post_payment_credit_notes_amount Total amount of all post-payment credit notes issued for this invoice.
95
+ * @property int $pre_payment_credit_notes_amount Total amount of all pre-payment credit notes issued for this invoice.
96
+ * @property null|string|\Stripe\Quote $quote The quote this invoice was generated from.
97
+ * @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this invoice.
98
+ * @property int $starting_balance Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance.
99
+ * @property null|string $statement_descriptor Extra information about an invoice for the customer's credit card statement.
100
+ * @property null|string $status The status of the invoice, one of <code>draft</code>, <code>open</code>, <code>paid</code>, <code>uncollectible</code>, or <code>void</code>. <a href="https://stripe.com/docs/billing/invoices/workflow#workflow-overview">Learn more</a>
101
+ * @property \Stripe\StripeObject $status_transitions
102
+ * @property null|string|\Stripe\Subscription $subscription The subscription that this invoice was prepared for, if any.
103
+ * @property int $subscription_proration_date Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
104
+ * @property int $subtotal Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
105
+ * @property null|int $tax The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice.
106
+ * @property \Stripe\StripeObject $threshold_reason
107
+ * @property int $total Total after discounts and taxes.
108
+ * @property null|\Stripe\StripeObject[] $total_discount_amounts The aggregate amounts calculated per discount across all line items.
109
+ * @property \Stripe\StripeObject[] $total_tax_amounts The aggregate amounts calculated per tax rate for all line items.
110
+ * @property null|int $webhooks_delivered_at Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have <a href="https://stripe.com/docs/billing/webhooks#understand">been exhausted</a>. This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
111
+ */
112
+ class Invoice extends ApiResource
113
+ {
114
+ const OBJECT_NAME = 'invoice';
115
+
116
+ use ApiOperations\All;
117
+ use ApiOperations\Create;
118
+ use ApiOperations\Delete;
119
+ use ApiOperations\Retrieve;
120
+ use ApiOperations\Update;
121
+
122
+ const BILLING_CHARGE_AUTOMATICALLY = 'charge_automatically';
123
+ const BILLING_SEND_INVOICE = 'send_invoice';
124
+
125
+ const BILLING_REASON_MANUAL = 'manual';
126
+ const BILLING_REASON_QUOTE_ACCEPT = 'quote_accept';
127
+ const BILLING_REASON_SUBSCRIPTION = 'subscription';
128
+ const BILLING_REASON_SUBSCRIPTION_CREATE = 'subscription_create';
129
+ const BILLING_REASON_SUBSCRIPTION_CYCLE = 'subscription_cycle';
130
+ const BILLING_REASON_SUBSCRIPTION_THRESHOLD = 'subscription_threshold';
131
+ const BILLING_REASON_SUBSCRIPTION_UPDATE = 'subscription_update';
132
+ const BILLING_REASON_UPCOMING = 'upcoming';
133
+
134
+ const COLLECTION_METHOD_CHARGE_AUTOMATICALLY = 'charge_automatically';
135
+ const COLLECTION_METHOD_SEND_INVOICE = 'send_invoice';
136
+
137
+ const STATUS_DELETED = 'deleted';
138
+ const STATUS_DRAFT = 'draft';
139
+ const STATUS_OPEN = 'open';
140
+ const STATUS_PAID = 'paid';
141
+ const STATUS_UNCOLLECTIBLE = 'uncollectible';
142
+ const STATUS_VOID = 'void';
143
+
144
+ use ApiOperations\NestedResource;
145
+
146
+ const PATH_LINES = '/lines';
147
+
148
+ /**
149
+ * @param string $id the ID of the invoice on which to retrieve the lines
150
+ * @param null|array $params
151
+ * @param null|array|string $opts
152
+ *
153
+ * @throws StripeExceptionApiErrorException if the request fails
154
+ *
155
+ * @return \Stripe\Collection the list of lines (InvoiceLineItem)
156
+ */
157
+ public static function allLines($id, $params = null, $opts = null)
158
+ {
159
+ return self::_allNestedResources($id, static::PATH_LINES, $params, $opts);
160
+ }
161
+
162
+ /**
163
+ * @param null|array $params
164
+ * @param null|array|string $opts
165
+ *
166
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
167
+ *
168
+ * @return \Stripe\Invoice the finalized invoice
169
+ */
170
+ public function finalizeInvoice($params = null, $opts = null)
171
+ {
172
+ $url = $this->instanceUrl() . '/finalize';
173
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
174
+ $this->refreshFrom($response, $opts);
175
+
176
+ return $this;
177
+ }
178
+
179
+ /**
180
+ * @param null|array $params
181
+ * @param null|array|string $opts
182
+ *
183
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
184
+ *
185
+ * @return \Stripe\Invoice the uncollectible invoice
186
+ */
187
+ public function markUncollectible($params = null, $opts = null)
188
+ {
189
+ $url = $this->instanceUrl() . '/mark_uncollectible';
190
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
191
+ $this->refreshFrom($response, $opts);
192
+
193
+ return $this;
194
+ }
195
+
196
+ /**
197
+ * @param null|array $params
198
+ * @param null|array|string $opts
199
+ *
200
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
201
+ *
202
+ * @return \Stripe\Invoice the paid invoice
203
+ */
204
+ public function pay($params = null, $opts = null)
205
+ {
206
+ $url = $this->instanceUrl() . '/pay';
207
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
208
+ $this->refreshFrom($response, $opts);
209
+
210
+ return $this;
211
+ }
212
+
213
+ /**
214
+ * @param null|array $params
215
+ * @param null|array|string $opts
216
+ *
217
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
218
+ *
219
+ * @return \Stripe\Invoice the sent invoice
220
+ */
221
+ public function sendInvoice($params = null, $opts = null)
222
+ {
223
+ $url = $this->instanceUrl() . '/send';
224
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
225
+ $this->refreshFrom($response, $opts);
226
+
227
+ return $this;
228
+ }
229
+
230
+ /**
231
+ * @param null|array $params
232
+ * @param null|array|string $opts
233
+ *
234
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
235
+ *
236
+ * @return \Stripe\Invoice the upcoming invoice
237
+ */
238
+ public static function upcoming($params = null, $opts = null)
239
+ {
240
+ $url = static::classUrl() . '/upcoming';
241
+ list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
242
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
243
+ $obj->setLastResponse($response);
244
+
245
+ return $obj;
246
+ }
247
+
248
+ /**
249
+ * @param null|array $params
250
+ * @param null|array|string $opts
251
+ *
252
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
253
+ *
254
+ * @return \Stripe\Invoice the voided invoice
255
+ */
256
+ public function voidInvoice($params = null, $opts = null)
257
+ {
258
+ $url = $this->instanceUrl() . '/void';
259
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
260
+ $this->refreshFrom($response, $opts);
261
+
262
+ return $this;
263
+ }
264
+ }
lib/stripe-php/lib/InvoiceItem.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Sometimes you want to add a charge or credit to a customer, but actually charge
9
+ * or credit the customer's card only at the end of a regular billing cycle. This
10
+ * is useful for combining several charges (to minimize per-transaction fees), or
11
+ * for having Stripe tabulate your usage-based billing totals.
12
+ *
13
+ * Related guide: <a
14
+ * href="https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items">Subscription
15
+ * Invoices</a>.
16
+ *
17
+ * @property string $id Unique identifier for the object.
18
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
19
+ * @property int $amount Amount (in the <code>currency</code> specified) of the invoice item. This should always be equal to <code>unit_amount * quantity</code>.
20
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
21
+ * @property string|\Stripe\Customer $customer The ID of the customer who will be billed when this invoice item is billed.
22
+ * @property int $date Time at which the object was created. Measured in seconds since the Unix epoch.
23
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
24
+ * @property bool $discountable If true, discounts will apply to this invoice item. Always false for prorations.
25
+ * @property null|(string|\Stripe\Discount)[] $discounts The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use <code>expand[]=discounts</code> to expand each discount.
26
+ * @property null|string|\Stripe\Invoice $invoice The ID of the invoice this invoice item belongs to.
27
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
28
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
29
+ * @property \Stripe\StripeObject $period
30
+ * @property null|\Stripe\Plan $plan If the invoice item is a proration, the plan of the subscription that the proration was computed for.
31
+ * @property null|\Stripe\Price $price The price of the invoice item.
32
+ * @property bool $proration Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
33
+ * @property int $quantity Quantity of units for the invoice item. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.
34
+ * @property null|string|\Stripe\Subscription $subscription The subscription that this invoice item has been created for, if any.
35
+ * @property string $subscription_item The subscription item that this invoice item has been created for, if any.
36
+ * @property null|\Stripe\TaxRate[] $tax_rates The tax rates which apply to the invoice item. When set, the <code>default_tax_rates</code> on the invoice do not apply to this invoice item.
37
+ * @property null|int $unit_amount Unit amount (in the <code>currency</code> specified) of the invoice item.
38
+ * @property null|string $unit_amount_decimal Same as <code>unit_amount</code>, but contains a decimal value with at most 12 decimal places.
39
+ */
40
+ class InvoiceItem extends ApiResource
41
+ {
42
+ const OBJECT_NAME = 'invoiceitem';
43
+
44
+ use ApiOperations\All;
45
+ use ApiOperations\Create;
46
+ use ApiOperations\Delete;
47
+ use ApiOperations\Retrieve;
48
+ use ApiOperations\Update;
49
+ }
lib/stripe-php/lib/InvoiceLineItem.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * @property string $id Unique identifier for the object.
9
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
10
+ * @property int $amount The amount, in %s.
11
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
12
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
13
+ * @property null|\Stripe\StripeObject[] $discount_amounts The amount of discount calculated per discount for this line item.
14
+ * @property bool $discountable If true, discounts will apply to this line item. Always false for prorations.
15
+ * @property null|(string|\Stripe\Discount)[] $discounts The discounts applied to the invoice line item. Line item discounts are applied before invoice discounts. Use <code>expand[]=discounts</code> to expand each discount.
16
+ * @property string $invoice_item The ID of the <a href="https://stripe.com/docs/api/invoiceitems">invoice item</a> associated with this line item if any.
17
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
18
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Note that for line items with <code>type=subscription</code> this will reflect the metadata of the subscription that caused the line item to be created.
19
+ * @property \Stripe\StripeObject $period
20
+ * @property null|\Stripe\Plan $plan The plan of the subscription, if the line item is a subscription or a proration.
21
+ * @property null|\Stripe\Price $price The price of the line item.
22
+ * @property bool $proration Whether this is a proration.
23
+ * @property null|int $quantity The quantity of the subscription, if the line item is a subscription or a proration.
24
+ * @property null|string $subscription The subscription that the invoice item pertains to, if any.
25
+ * @property string $subscription_item The subscription item that generated this invoice item. Left empty if the line item is not an explicit result of a subscription.
26
+ * @property \Stripe\StripeObject[] $tax_amounts The amount of tax calculated per tax rate for this line item
27
+ * @property \Stripe\TaxRate[] $tax_rates The tax rates which apply to the line item.
28
+ * @property string $type A string identifying the type of the source of this line item, either an <code>invoiceitem</code> or a <code>subscription</code>.
29
+ */
30
+ class InvoiceLineItem extends ApiResource
31
+ {
32
+ const OBJECT_NAME = 'line_item';
33
+ }
lib/stripe-php/lib/Issuing/Authorization.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Issuing;
6
+
7
+ /**
8
+ * When an <a href="https://stripe.com/docs/issuing">issued card</a> is used to
9
+ * make a purchase, an Issuing <code>Authorization</code> object is created. <a
10
+ * href="https://stripe.com/docs/issuing/purchases/authorizations">Authorizations</a>
11
+ * must be approved for the purchase to be completed successfully.
12
+ *
13
+ * Related guide: <a
14
+ * href="https://stripe.com/docs/issuing/purchases/authorizations">Issued Card
15
+ * Authorizations</a>.
16
+ *
17
+ * @property string $id Unique identifier for the object.
18
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
19
+ * @property int $amount The total amount that was authorized or rejected. This amount is in the card's currency and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
20
+ * @property null|\Stripe\StripeObject $amount_details Detailed breakdown of amount components. These amounts are denominated in <code>currency</code> and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
21
+ * @property bool $approved Whether the authorization has been approved.
22
+ * @property string $authorization_method How the card details were provided.
23
+ * @property \Stripe\BalanceTransaction[] $balance_transactions List of balance transactions associated with this authorization.
24
+ * @property \Stripe\Issuing\Card $card You can <a href="https://stripe.com/docs/issuing/cards">create physical or virtual cards</a> that are issued to cardholders.
25
+ * @property null|string|\Stripe\Issuing\Cardholder $cardholder The cardholder to whom this authorization belongs.
26
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
27
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
28
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
29
+ * @property int $merchant_amount The total amount that was authorized or rejected. This amount is in the <code>merchant_currency</code> and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
30
+ * @property string $merchant_currency The currency that was presented to the cardholder for the authorization. Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
31
+ * @property \Stripe\StripeObject $merchant_data
32
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
33
+ * @property null|\Stripe\StripeObject $pending_request The pending authorization request. This field will only be non-null during an <code>issuing_authorization.request</code> webhook.
34
+ * @property \Stripe\StripeObject[] $request_history History of every time <code>pending_request</code> was approved/denied, either by you directly or by Stripe (e.g. based on your <code>spending_controls</code>). If the merchant changes the authorization by performing an <a href="https://stripe.com/docs/issuing/purchases/authorizations">incremental authorization</a>, you can look at this field to see the previous requests for the authorization.
35
+ * @property string $status The current status of the authorization in its lifecycle.
36
+ * @property \Stripe\Issuing\Transaction[] $transactions List of <a href="https://stripe.com/docs/api/issuing/transactions">transactions</a> associated with this authorization.
37
+ * @property \Stripe\StripeObject $verification_data
38
+ * @property null|string $wallet The digital wallet used for this authorization. One of <code>apple_pay</code>, <code>google_pay</code>, or <code>samsung_pay</code>.
39
+ */
40
+ class Authorization extends \Stripe\ApiResource
41
+ {
42
+ const OBJECT_NAME = 'issuing.authorization';
43
+
44
+ use \Stripe\ApiOperations\All;
45
+ use \Stripe\ApiOperations\Retrieve;
46
+ use \Stripe\ApiOperations\Update;
47
+
48
+ /**
49
+ * @param null|array $params
50
+ * @param null|array|string $opts
51
+ *
52
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
53
+ *
54
+ * @return \Stripe\Authorization the approved authorization
55
+ */
56
+ public function approve($params = null, $opts = null)
57
+ {
58
+ $url = $this->instanceUrl() . '/approve';
59
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
60
+ $this->refreshFrom($response, $opts);
61
+
62
+ return $this;
63
+ }
64
+
65
+ /**
66
+ * @param null|array $params
67
+ * @param null|array|string $opts
68
+ *
69
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
70
+ *
71
+ * @return \Stripe\Authorization the declined authorization
72
+ */
73
+ public function decline($params = null, $opts = null)
74
+ {
75
+ $url = $this->instanceUrl() . '/decline';
76
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
77
+ $this->refreshFrom($response, $opts);
78
+
79
+ return $this;
80
+ }
81
+ }
lib/stripe-php/lib/Issuing/Card.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Issuing;
6
+
7
+ /**
8
+ * You can <a href="https://stripe.com/docs/issuing/cards">create physical or
9
+ * virtual cards</a> that are issued to cardholders.
10
+ *
11
+ * @property string $id Unique identifier for the object.
12
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
13
+ * @property string $brand The brand of the card.
14
+ * @property null|string $cancellation_reason The reason why the card was canceled.
15
+ * @property \Stripe\Issuing\Cardholder $cardholder <p>An Issuing <code>Cardholder</code> object represents an individual or business entity who is <a href="https://stripe.com/docs/issuing">issued</a> cards.</p><p>Related guide: <a href="https://stripe.com/docs/issuing/cards#create-cardholder">How to create a Cardholder</a></p>
16
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
17
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
18
+ * @property string $cvc The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with <a href="https://stripe.com/docs/api/expanding_objects">the <code>expand</code> parameter</a>. Additionally, it's only available via the <a href="https://stripe.com/docs/api/issuing/cards/retrieve">&quot;Retrieve a card&quot; endpoint</a>, not via &quot;List all cards&quot; or any other endpoint.
19
+ * @property int $exp_month The expiration month of the card.
20
+ * @property int $exp_year The expiration year of the card.
21
+ * @property string $last4 The last 4 digits of the card number.
22
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
23
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
24
+ * @property string $number The full unredacted card number. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with <a href="https://stripe.com/docs/api/expanding_objects">the <code>expand</code> parameter</a>. Additionally, it's only available via the <a href="https://stripe.com/docs/api/issuing/cards/retrieve">&quot;Retrieve a card&quot; endpoint</a>, not via &quot;List all cards&quot; or any other endpoint.
25
+ * @property null|string|\Stripe\Issuing\Card $replaced_by The latest card that replaces this card, if any.
26
+ * @property null|string|\Stripe\Issuing\Card $replacement_for The card this card replaces, if any.
27
+ * @property null|string $replacement_reason The reason why the previous card needed to be replaced.
28
+ * @property null|\Stripe\StripeObject $shipping Where and how the card will be shipped.
29
+ * @property \Stripe\StripeObject $spending_controls
30
+ * @property string $status Whether authorizations can be approved on this card.
31
+ * @property string $type The type of the card.
32
+ */
33
+ class Card extends \Stripe\ApiResource
34
+ {
35
+ const OBJECT_NAME = 'issuing.card';
36
+
37
+ use \Stripe\ApiOperations\All;
38
+ use \Stripe\ApiOperations\Create;
39
+ use \Stripe\ApiOperations\Retrieve;
40
+ use \Stripe\ApiOperations\Update;
41
+
42
+ /**
43
+ * @param null|array $params
44
+ * @param null|array|string $opts
45
+ *
46
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
47
+ *
48
+ * @return \Stripe\Issuing\CardDetails the card details associated with that issuing card
49
+ */
50
+ public function details($params = null, $opts = null)
51
+ {
52
+ $url = $this->instanceUrl() . '/details';
53
+ list($response, $opts) = $this->_request('get', $url, $params, $opts);
54
+ $obj = \Stripe\Util\Util::convertToStripeObject($response, $opts);
55
+ $obj->setLastResponse($response);
56
+
57
+ return $obj;
58
+ }
59
+ }
lib/stripe-php/lib/Issuing/CardDetails.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Issuing;
4
+
5
+ /**
6
+ * Class CardDetails.
7
+ *
8
+ * @property string $id
9
+ * @property string $object
10
+ * @property Card $card
11
+ * @property string $cvc
12
+ * @property int $exp_month
13
+ * @property int $exp_year
14
+ * @property string $number
15
+ */
16
+ class CardDetails extends \Stripe\ApiResource
17
+ {
18
+ const OBJECT_NAME = 'issuing.card_details';
19
+ }
lib/stripe-php/lib/Issuing/Cardholder.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Issuing;
6
+
7
+ /**
8
+ * An Issuing <code>Cardholder</code> object represents an individual or business
9
+ * entity who is <a href="https://stripe.com/docs/issuing">issued</a> cards.
10
+ *
11
+ * Related guide: <a
12
+ * href="https://stripe.com/docs/issuing/cards#create-cardholder">How to create a
13
+ * Cardholder</a>
14
+ *
15
+ * @property string $id Unique identifier for the object.
16
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
17
+ * @property \Stripe\StripeObject $billing
18
+ * @property null|\Stripe\StripeObject $company Additional information about a <code>company</code> cardholder.
19
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
20
+ * @property null|string $email The cardholder's email address.
21
+ * @property null|\Stripe\StripeObject $individual Additional information about an <code>individual</code> cardholder.
22
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
23
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
24
+ * @property string $name The cardholder's name. This will be printed on cards issued to them.
25
+ * @property null|string $phone_number The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the <a href="https://stripe.com/docs/issuing/3d-secure#when-is-3d-secure-applied">3D Secure documentation</a> for more details.
26
+ * @property \Stripe\StripeObject $requirements
27
+ * @property null|\Stripe\StripeObject $spending_controls Rules that control spending across this cardholder's cards. Refer to our <a href="https://stripe.com/docs/issuing/controls/spending-controls">documentation</a> for more details.
28
+ * @property string $status Specifies whether to permit authorizations on this cardholder's cards.
29
+ * @property string $type One of <code>individual</code> or <code>company</code>.
30
+ */
31
+ class Cardholder extends \Stripe\ApiResource
32
+ {
33
+ const OBJECT_NAME = 'issuing.cardholder';
34
+
35
+ use \Stripe\ApiOperations\All;
36
+ use \Stripe\ApiOperations\Create;
37
+ use \Stripe\ApiOperations\Retrieve;
38
+ use \Stripe\ApiOperations\Update;
39
+ }
lib/stripe-php/lib/Issuing/Dispute.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Issuing;
6
+
7
+ /**
8
+ * As a <a href="https://stripe.com/docs/issuing">card issuer</a>, you can dispute
9
+ * transactions that the cardholder does not recognize, suspects to be fraudulent,
10
+ * or has other issues with.
11
+ *
12
+ * Related guide: <a
13
+ * href="https://stripe.com/docs/issuing/purchases/disputes">Disputing
14
+ * Transactions</a>
15
+ *
16
+ * @property string $id Unique identifier for the object.
17
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
18
+ * @property int $amount Disputed amount. Usually the amount of the <code>transaction</code>, but can differ (usually because of currency fluctuation).
19
+ * @property null|\Stripe\BalanceTransaction[] $balance_transactions List of balance transactions associated with the dispute.
20
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
21
+ * @property string $currency The currency the <code>transaction</code> was made in.
22
+ * @property \Stripe\StripeObject $evidence
23
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
24
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
25
+ * @property string $status Current status of the dispute.
26
+ * @property string|\Stripe\Issuing\Transaction $transaction The transaction being disputed.
27
+ */
28
+ class Dispute extends \Stripe\ApiResource
29
+ {
30
+ const OBJECT_NAME = 'issuing.dispute';
31
+
32
+ use \Stripe\ApiOperations\All;
33
+ use \Stripe\ApiOperations\Create;
34
+ use \Stripe\ApiOperations\Retrieve;
35
+ use \Stripe\ApiOperations\Update;
36
+
37
+ /**
38
+ * @param null|array $params
39
+ * @param null|array|string $opts
40
+ *
41
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
42
+ *
43
+ * @return \Stripe\Dispute the submited dispute
44
+ */
45
+ public function submit($params = null, $opts = null)
46
+ {
47
+ $url = $this->instanceUrl() . '/submit';
48
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
49
+ $this->refreshFrom($response, $opts);
50
+
51
+ return $this;
52
+ }
53
+ }
lib/stripe-php/lib/Issuing/Transaction.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Issuing;
6
+
7
+ /**
8
+ * Any use of an <a href="https://stripe.com/docs/issuing">issued card</a> that
9
+ * results in funds entering or leaving your Stripe account, such as a completed
10
+ * purchase or refund, is represented by an Issuing <code>Transaction</code>
11
+ * object.
12
+ *
13
+ * Related guide: <a
14
+ * href="https://stripe.com/docs/issuing/purchases/transactions">Issued Card
15
+ * Transactions</a>.
16
+ *
17
+ * @property string $id Unique identifier for the object.
18
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
19
+ * @property int $amount The transaction amount, which will be reflected in your balance. This amount is in your currency and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
20
+ * @property null|\Stripe\StripeObject $amount_details Detailed breakdown of amount components. These amounts are denominated in <code>currency</code> and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
21
+ * @property null|string|\Stripe\Issuing\Authorization $authorization The <code>Authorization</code> object that led to this transaction.
22
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the <a href="https://stripe.com/docs/api/balance_transactions">balance transaction</a> associated with this transaction.
23
+ * @property string|\Stripe\Issuing\Card $card The card used to make this transaction.
24
+ * @property null|string|\Stripe\Issuing\Cardholder $cardholder The cardholder to whom this transaction belongs.
25
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
26
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
27
+ * @property null|string|\Stripe\Issuing\Dispute $dispute If you've disputed the transaction, the ID of the dispute.
28
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
29
+ * @property int $merchant_amount The amount that the merchant will receive, denominated in <code>merchant_currency</code> and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. It will be different from <code>amount</code> if the merchant is taking payment in a different currency.
30
+ * @property string $merchant_currency The currency with which the merchant is taking payment.
31
+ * @property \Stripe\StripeObject $merchant_data
32
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
33
+ * @property null|\Stripe\StripeObject $purchase_details Additional purchase information that is optionally provided by the merchant.
34
+ * @property string $type The nature of the transaction.
35
+ * @property null|string $wallet The digital wallet used for this transaction. One of <code>apple_pay</code>, <code>google_pay</code>, or <code>samsung_pay</code>.
36
+ */
37
+ class Transaction extends \Stripe\ApiResource
38
+ {
39
+ const OBJECT_NAME = 'issuing.transaction';
40
+
41
+ use \Stripe\ApiOperations\All;
42
+ use \Stripe\ApiOperations\Retrieve;
43
+ use \Stripe\ApiOperations\Update;
44
+ }
lib/stripe-php/lib/LineItem.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * A line item.
9
+ *
10
+ * @property string $id Unique identifier for the object.
11
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
12
+ * @property int $amount_subtotal Total before any discounts or taxes are applied.
13
+ * @property int $amount_total Total after discounts and taxes.
14
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
15
+ * @property string $description An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
16
+ * @property \Stripe\StripeObject[] $discounts The discounts applied to the line item.
17
+ * @property null|\Stripe\Price $price The price used to generate the line item.
18
+ * @property null|int $quantity The quantity of products being purchased.
19
+ * @property \Stripe\StripeObject[] $taxes The taxes applied to the line item.
20
+ */
21
+ class LineItem extends ApiResource
22
+ {
23
+ const OBJECT_NAME = 'item';
24
+
25
+ use ApiOperations\All;
26
+ }
lib/stripe-php/lib/LoginLink.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
9
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
10
+ * @property string $url The URL for the login link.
11
+ */
12
+ class LoginLink extends ApiResource
13
+ {
14
+ const OBJECT_NAME = 'login_link';
15
+ }
lib/stripe-php/lib/Mandate.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * A Mandate is a record of the permission a customer has given you to debit their
9
+ * payment method.
10
+ *
11
+ * @property string $id Unique identifier for the object.
12
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
13
+ * @property \Stripe\StripeObject $customer_acceptance
14
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
15
+ * @property \Stripe\StripeObject $multi_use
16
+ * @property string|\Stripe\PaymentMethod $payment_method ID of the payment method associated with this mandate.
17
+ * @property \Stripe\StripeObject $payment_method_details
18
+ * @property \Stripe\StripeObject $single_use
19
+ * @property string $status The status of the mandate, which indicates whether it can be used to initiate a payment.
20
+ * @property string $type The type of the mandate.
21
+ */
22
+ class Mandate extends ApiResource
23
+ {
24
+ const OBJECT_NAME = 'mandate';
25
+
26
+ use ApiOperations\Retrieve;
27
+ }
lib/stripe-php/lib/OAuth.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ abstract class OAuth
6
+ {
7
+ /**
8
+ * Generates a URL to Stripe's OAuth form.
9
+ *
10
+ * @param null|array $params
11
+ * @param null|array $opts
12
+ *
13
+ * @return string the URL to Stripe's OAuth form
14
+ */
15
+ public static function authorizeUrl($params = null, $opts = null)
16
+ {
17
+ $params = $params ?: [];
18
+
19
+ $base = ($opts && \array_key_exists('connect_base', $opts)) ? $opts['connect_base'] : Stripe::$connectBase;
20
+
21
+ $params['client_id'] = self::_getClientId($params);
22
+ if (!\array_key_exists('response_type', $params)) {
23
+ $params['response_type'] = 'code';
24
+ }
25
+ $query = Util\Util::encodeParameters($params);
26
+
27
+ return $base . '/oauth/authorize?' . $query;
28
+ }
29
+
30
+ /**
31
+ * Use an authoriztion code to connect an account to your platform and
32
+ * fetch the user's credentials.
33
+ *
34
+ * @param null|array $params
35
+ * @param null|array $opts
36
+ *
37
+ * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
38
+ *
39
+ * @return StripeObject object containing the response from the API
40
+ */
41
+ public static function token($params = null, $opts = null)
42
+ {
43
+ $base = ($opts && \array_key_exists('connect_base', $opts)) ? $opts['connect_base'] : Stripe::$connectBase;
44
+ $requestor = new ApiRequestor(null, $base);
45
+ list($response, $apiKey) = $requestor->request(
46
+ 'post',
47
+ '/oauth/token',
48
+ $params,
49
+ null
50
+ );
51
+
52
+ return Util\Util::convertToStripeObject($response->json, $opts);
53
+ }
54
+
55
+ /**
56
+ * Disconnects an account from your platform.
57
+ *
58
+ * @param null|array $params
59
+ * @param null|array $opts
60
+ *
61
+ * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
62
+ *
63
+ * @return StripeObject object containing the response from the API
64
+ */
65
+ public static function deauthorize($params = null, $opts = null)
66
+ {
67
+ $params = $params ?: [];
68
+ $base = ($opts && \array_key_exists('connect_base', $opts)) ? $opts['connect_base'] : Stripe::$connectBase;
69
+ $requestor = new ApiRequestor(null, $base);
70
+ $params['client_id'] = self::_getClientId($params);
71
+ list($response, $apiKey) = $requestor->request(
72
+ 'post',
73
+ '/oauth/deauthorize',
74
+ $params,
75
+ null
76
+ );
77
+
78
+ return Util\Util::convertToStripeObject($response->json, $opts);
79
+ }
80
+
81
+ private static function _getClientId($params = null)
82
+ {
83
+ $clientId = ($params && \array_key_exists('client_id', $params)) ? $params['client_id'] : null;
84
+ if (null === $clientId) {
85
+ $clientId = Stripe::getClientId();
86
+ }
87
+ if (null === $clientId) {
88
+ $msg = 'No client_id provided. (HINT: set your client_id using '
89
+ . '"Stripe::setClientId(<CLIENT-ID>)". You can find your client_ids '
90
+ . 'in your Stripe dashboard at '
91
+ . 'https://dashboard.stripe.com/account/applications/settings, '
92
+ . 'after registering your account as a platform. See '
93
+ . 'https://stripe.com/docs/connect/standard-accounts for details, '
94
+ . 'or email support@stripe.com if you have any questions.';
95
+
96
+ throw new Exception\AuthenticationException($msg);
97
+ }
98
+
99
+ return $clientId;
100
+ }
101
+ }
lib/stripe-php/lib/OAuthErrorObject.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Class OAuthErrorObject.
7
+ *
8
+ * @property string $error
9
+ * @property string $error_description
10
+ */
11
+ class OAuthErrorObject extends StripeObject
12
+ {
13
+ /**
14
+ * Refreshes this object using the provided values.
15
+ *
16
+ * @param array $values
17
+ * @param null|array|string|Util\RequestOptions $opts
18
+ * @param bool $partial defaults to false
19
+ */
20
+ public function refreshFrom($values, $opts, $partial = false)
21
+ {
22
+ // Unlike most other API resources, the API will omit attributes in
23
+ // error objects when they have a null value. We manually set default
24
+ // values here to facilitate generic error handling.
25
+ $values = \array_merge([
26
+ 'error' => null,
27
+ 'error_description' => null,
28
+ ], $values);
29
+ parent::refreshFrom($values, $opts, $partial);
30
+ }
31
+ }
lib/stripe-php/lib/Order.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Order objects are created to handle end customers' purchases of previously
9
+ * defined <a href="https://stripe.com/docs/api#products">products</a>. You can
10
+ * create, retrieve, and pay individual orders, as well as list all orders. Orders
11
+ * are identified by a unique, random ID.
12
+ *
13
+ * Related guide: <a href="https://stripe.com/docs/orders">Tax, Shipping, and
14
+ * Inventory</a>.
15
+ *
16
+ * @property string $id Unique identifier for the object.
17
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
18
+ * @property int $amount A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order.
19
+ * @property null|int $amount_returned The total amount that was returned to the customer.
20
+ * @property null|string $application ID of the Connect Application that created the order.
21
+ * @property null|int $application_fee A fee in cents that will be applied to the order and transferred to the application owner’s Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees documentation.
22
+ * @property null|string|\Stripe\Charge $charge The ID of the payment used to pay for the order. Present if the order status is <code>paid</code>, <code>fulfilled</code>, or <code>refunded</code>.
23
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
24
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
25
+ * @property null|string|\Stripe\Customer $customer The customer used for the order.
26
+ * @property null|string $email The email address of the customer placing the order.
27
+ * @property string $external_coupon_code External coupon code to load for this order.
28
+ * @property \Stripe\OrderItem[] $items List of items constituting the order. An order can have up to 25 items.
29
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
30
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
31
+ * @property null|\Stripe\Collection $returns A list of returns that have taken place for this order.
32
+ * @property null|string $selected_shipping_method The shipping method that is currently selected for this order, if any. If present, it is equal to one of the <code>id</code>s of shipping methods in the <code>shipping_methods</code> array. At order creation time, if there are multiple shipping methods, Stripe will automatically selected the first method.
33
+ * @property null|\Stripe\StripeObject $shipping The shipping address for the order. Present if the order is for goods to be shipped.
34
+ * @property null|\Stripe\StripeObject[] $shipping_methods A list of supported shipping methods for this order. The desired shipping method can be specified either by updating the order, or when paying it.
35
+ * @property string $status Current order status. One of <code>created</code>, <code>paid</code>, <code>canceled</code>, <code>fulfilled</code>, or <code>returned</code>. More details in the <a href="https://stripe.com/docs/orders/guide#understanding-order-statuses">Orders Guide</a>.
36
+ * @property null|\Stripe\StripeObject $status_transitions The timestamps at which the order status was updated.
37
+ * @property null|int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
38
+ * @property string $upstream_id The user's order ID if it is different from the Stripe order ID.
39
+ */
40
+ class Order extends ApiResource
41
+ {
42
+ const OBJECT_NAME = 'order';
43
+
44
+ use ApiOperations\All;
45
+ use ApiOperations\Create;
46
+ use ApiOperations\Retrieve;
47
+ use ApiOperations\Update;
48
+
49
+ /**
50
+ * @param null|array $params
51
+ * @param null|array|string $opts
52
+ *
53
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
54
+ *
55
+ * @return \Stripe\OrderReturn the newly created return
56
+ */
57
+ public function returnOrder($params = null, $opts = null)
58
+ {
59
+ $url = $this->instanceUrl() . '/returns';
60
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
61
+
62
+ return Util\Util::convertToStripeObject($response, $opts);
63
+ }
64
+
65
+ /**
66
+ * @param null|array $params
67
+ * @param null|array|string $opts
68
+ *
69
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
70
+ *
71
+ * @return \Stripe\Order the paid order
72
+ */
73
+ public function pay($params = null, $opts = null)
74
+ {
75
+ $url = $this->instanceUrl() . '/pay';
76
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
77
+ $this->refreshFrom($response, $opts);
78
+
79
+ return $this;
80
+ }
81
+ }
lib/stripe-php/lib/OrderItem.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Class OrderItem.
7
+ *
8
+ * @property string $object
9
+ * @property int $amount
10
+ * @property string $currency
11
+ * @property string $description
12
+ * @property string $parent
13
+ * @property int $quantity
14
+ * @property string $type
15
+ */
16
+ class OrderItem extends StripeObject
17
+ {
18
+ const OBJECT_NAME = 'order_item';
19
+ }
lib/stripe-php/lib/OrderReturn.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * A return represents the full or partial return of a number of <a
9
+ * href="https://stripe.com/docs/api#order_items">order items</a>. Returns always
10
+ * belong to an order, and may optionally contain a refund.
11
+ *
12
+ * Related guide: <a
13
+ * href="https://stripe.com/docs/orders/guide#handling-returns">Handling
14
+ * Returns</a>.
15
+ *
16
+ * @property string $id Unique identifier for the object.
17
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
18
+ * @property int $amount A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item.
19
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
20
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
21
+ * @property \Stripe\OrderItem[] $items The items included in this order return.
22
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
23
+ * @property null|string|\Stripe\Order $order The order that this return includes items from.
24
+ * @property null|string|\Stripe\Refund $refund The ID of the refund issued for this return.
25
+ */
26
+ class OrderReturn extends ApiResource
27
+ {
28
+ const OBJECT_NAME = 'order_return';
29
+
30
+ use ApiOperations\All;
31
+ use ApiOperations\Retrieve;
32
+ }
lib/stripe-php/lib/PaymentIntent.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * A PaymentIntent guides you through the process of collecting a payment from your
9
+ * customer. We recommend that you create exactly one PaymentIntent for each order
10
+ * or customer session in your system. You can reference the PaymentIntent later to
11
+ * see the history of payment attempts for a particular session.
12
+ *
13
+ * A PaymentIntent transitions through <a
14
+ * href="https://stripe.com/docs/payments/intents#intent-statuses">multiple
15
+ * statuses</a> throughout its lifetime as it interfaces with Stripe.js to perform
16
+ * authentication flows and ultimately creates at most one successful charge.
17
+ *
18
+ * Related guide: <a
19
+ * href="https://stripe.com/docs/payments/payment-intents">Payment Intents API</a>.
20
+ *
21
+ * @property string $id Unique identifier for the object.
22
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
23
+ * @property int $amount Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a> (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or <a href="https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts">equivalent in charge currency</a>. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
24
+ * @property int $amount_capturable Amount that can be captured from this PaymentIntent.
25
+ * @property int $amount_received Amount that was collected by this PaymentIntent.
26
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect application that created the PaymentIntent.
27
+ * @property null|int $application_fee_amount The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents <a href="https://stripe.com/docs/payments/connected-accounts">use case for connected accounts</a>.
28
+ * @property null|int $canceled_at Populated when <code>status</code> is <code>canceled</code>, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
29
+ * @property null|string $cancellation_reason Reason for cancellation of this PaymentIntent, either user-provided (<code>duplicate</code>, <code>fraudulent</code>, <code>requested_by_customer</code>, or <code>abandoned</code>) or generated by Stripe internally (<code>failed_invoice</code>, <code>void_invoice</code>, or <code>automatic</code>).
30
+ * @property string $capture_method Controls when the funds will be captured from the customer's account.
31
+ * @property \Stripe\Collection $charges Charges that were created by this PaymentIntent, if any.
32
+ * @property null|string $client_secret <p>The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.</p><p>The client secret can be used to complete a payment from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.</p><p>Refer to our docs to <a href="https://stripe.com/docs/payments/accept-a-payment?integration=elements">accept a payment</a> and learn about how <code>client_secret</code> should be handled.</p>
33
+ * @property string $confirmation_method
34
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
35
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
36
+ * @property null|string|\Stripe\Customer $customer <p>ID of the Customer this PaymentIntent belongs to, if one exists.</p><p>Payment methods attached to other Customers cannot be used with this PaymentIntent.</p><p>If present in combination with <a href="https://stripe.com/docs/api#payment_intent_object-setup_future_usage">setup_future_usage</a>, this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete.</p>
37
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
38
+ * @property null|string|\Stripe\Invoice $invoice ID of the invoice that created this PaymentIntent, if it exists.
39
+ * @property null|\Stripe\ErrorObject $last_payment_error The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
40
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
41
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. For more information, see the <a href="https://stripe.com/docs/payments/payment-intents/creating-payment-intents#storing-information-in-metadata">documentation</a>.
42
+ * @property null|\Stripe\StripeObject $next_action If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
43
+ * @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents <a href="https://stripe.com/docs/payments/connected-accounts">use case for connected accounts</a> for details.
44
+ * @property null|string|\Stripe\PaymentMethod $payment_method ID of the payment method used in this PaymentIntent.
45
+ * @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for this PaymentIntent.
46
+ * @property string[] $payment_method_types The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.
47
+ * @property null|string $receipt_email Email address that the receipt for the resulting payment will be sent to. If <code>receipt_email</code> is specified for a payment in live mode, a receipt will be sent regardless of your <a href="https://dashboard.stripe.com/account/emails">email settings</a>.
48
+ * @property null|string|\Stripe\Review $review ID of the review associated with this PaymentIntent, if any.
49
+ * @property null|string $setup_future_usage <p>Indicates that you intend to make future payments with this PaymentIntent's payment method.</p><p>Providing this parameter will <a href="https://stripe.com/docs/payments/save-during-payment">attach the payment method</a> to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be <a href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer after the transaction completes.</p><p>When processing card payments, Stripe also uses <code>setup_future_usage</code> to dynamically optimize your payment flow and comply with regional legislation and network rules, such as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.</p>
50
+ * @property null|\Stripe\StripeObject $shipping Shipping information for this PaymentIntent.
51
+ * @property null|string|\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source $source This is a legacy field that will be removed in the future. It is the ID of the Source object that is associated with this PaymentIntent, if one was supplied.
52
+ * @property null|string $statement_descriptor For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.
53
+ * @property null|string $statement_descriptor_suffix Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
54
+ * @property string $status Status of this PaymentIntent, one of <code>requires_payment_method</code>, <code>requires_confirmation</code>, <code>requires_action</code>, <code>processing</code>, <code>requires_capture</code>, <code>canceled</code>, or <code>succeeded</code>. Read more about each PaymentIntent <a href="https://stripe.com/docs/payments/intents#intent-statuses">status</a>.
55
+ * @property null|\Stripe\StripeObject $transfer_data The data with which to automatically create a Transfer when the payment is finalized. See the PaymentIntents <a href="https://stripe.com/docs/payments/connected-accounts">use case for connected accounts</a> for details.
56
+ * @property null|string $transfer_group A string that identifies the resulting payment as part of a group. See the PaymentIntents <a href="https://stripe.com/docs/payments/connected-accounts">use case for connected accounts</a> for details.
57
+ */
58
+ class PaymentIntent extends ApiResource
59
+ {
60
+ const OBJECT_NAME = 'payment_intent';
61
+
62
+ use ApiOperations\All;
63
+ use ApiOperations\Create;
64
+ use ApiOperations\Retrieve;
65
+ use ApiOperations\Update;
66
+
67
+ const STATUS_CANCELED = 'canceled';
68
+ const STATUS_PROCESSING = 'processing';
69
+ const STATUS_REQUIRES_ACTION = 'requires_action';
70
+ const STATUS_REQUIRES_CAPTURE = 'requires_capture';
71
+ const STATUS_REQUIRES_CONFIRMATION = 'requires_confirmation';
72
+ const STATUS_REQUIRES_PAYMENT_METHOD = 'requires_payment_method';
73
+ const STATUS_SUCCEEDED = 'succeeded';
74
+
75
+ /**
76
+ * @param null|array $params
77
+ * @param null|array|string $opts
78
+ *
79
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
80
+ *
81
+ * @return \Stripe\PaymentIntent the canceled payment intent
82
+ */
83
+ public function cancel($params = null, $opts = null)
84
+ {
85
+ $url = $this->instanceUrl() . '/cancel';
86
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
87
+ $this->refreshFrom($response, $opts);
88
+
89
+ return $this;
90
+ }
91
+
92
+ /**
93
+ * @param null|array $params
94
+ * @param null|array|string $opts
95
+ *
96
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
97
+ *
98
+ * @return \Stripe\PaymentIntent the captured payment intent
99
+ */
100
+ public function capture($params = null, $opts = null)
101
+ {
102
+ $url = $this->instanceUrl() . '/capture';
103
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
104
+ $this->refreshFrom($response, $opts);
105
+
106
+ return $this;
107
+ }
108
+
109
+ /**
110
+ * @param null|array $params
111
+ * @param null|array|string $opts
112
+ *
113
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
114
+ *
115
+ * @return \Stripe\PaymentIntent the confirmed payment intent
116
+ */
117
+ public function confirm($params = null, $opts = null)
118
+ {
119
+ $url = $this->instanceUrl() . '/confirm';
120
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
121
+ $this->refreshFrom($response, $opts);
122
+
123
+ return $this;
124
+ }
125
+ }
lib/stripe-php/lib/PaymentMethod.php ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * PaymentMethod objects represent your customer's payment instruments. They can be
9
+ * used with <a
10
+ * href="https://stripe.com/docs/payments/payment-intents">PaymentIntents</a> to
11
+ * collect payments or saved to Customer objects to store instrument details for
12
+ * future payments.
13
+ *
14
+ * Related guides: <a
15
+ * href="https://stripe.com/docs/payments/payment-methods">Payment Methods</a> and
16
+ * <a href="https://stripe.com/docs/payments/more-payment-scenarios">More Payment
17
+ * Scenarios</a>.
18
+ *
19
+ * @property string $id Unique identifier for the object.
20
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
21
+ * @property \Stripe\StripeObject $acss_debit
22
+ * @property \Stripe\StripeObject $afterpay_clearpay
23
+ * @property \Stripe\StripeObject $alipay
24
+ * @property \Stripe\StripeObject $au_becs_debit
25
+ * @property \Stripe\StripeObject $bacs_debit
26
+ * @property \Stripe\StripeObject $bancontact
27
+ * @property \Stripe\StripeObject $billing_details
28
+ * @property \Stripe\StripeObject $boleto
29
+ * @property \Stripe\StripeObject $card
30
+ * @property \Stripe\StripeObject $card_present
31
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
32
+ * @property null|string|\Stripe\Customer $customer The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
33
+ * @property \Stripe\StripeObject $eps
34
+ * @property \Stripe\StripeObject $fpx
35
+ * @property \Stripe\StripeObject $giropay
36
+ * @property \Stripe\StripeObject $grabpay
37
+ * @property \Stripe\StripeObject $ideal
38
+ * @property \Stripe\StripeObject $interac_present
39
+ * @property \Stripe\StripeObject $klarna
40
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
41
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
42
+ * @property \Stripe\StripeObject $oxxo
43
+ * @property \Stripe\StripeObject $p24
44
+ * @property \Stripe\StripeObject $sepa_debit
45
+ * @property \Stripe\StripeObject $sofort
46
+ * @property string $type The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
47
+ * @property \Stripe\StripeObject $wechat_pay
48
+ */
49
+ class PaymentMethod extends ApiResource
50
+ {
51
+ const OBJECT_NAME = 'payment_method';
52
+
53
+ use ApiOperations\All;
54
+ use ApiOperations\Create;
55
+ use ApiOperations\Retrieve;
56
+ use ApiOperations\Update;
57
+
58
+ /**
59
+ * @param null|array $params
60
+ * @param null|array|string $opts
61
+ *
62
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
63
+ *
64
+ * @return \Stripe\PaymentMethod the attached payment method
65
+ */
66
+ public function attach($params = null, $opts = null)
67
+ {
68
+ $url = $this->instanceUrl() . '/attach';
69
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
70
+ $this->refreshFrom($response, $opts);
71
+
72
+ return $this;
73
+ }
74
+
75
+ /**
76
+ * @param null|array $params
77
+ * @param null|array|string $opts
78
+ *
79
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
80
+ *
81
+ * @return \Stripe\PaymentMethod the detached payment method
82
+ */
83
+ public function detach($params = null, $opts = null)
84
+ {
85
+ $url = $this->instanceUrl() . '/detach';
86
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
87
+ $this->refreshFrom($response, $opts);
88
+
89
+ return $this;
90
+ }
91
+ }
lib/stripe-php/lib/Payout.php ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * A <code>Payout</code> object is created when you receive funds from Stripe, or
9
+ * when you initiate a payout to either a bank account or debit card of a <a
10
+ * href="/docs/connect/bank-debit-card-payouts">connected Stripe account</a>. You
11
+ * can retrieve individual payouts, as well as list all payouts. Payouts are made
12
+ * on <a href="/docs/connect/manage-payout-schedule">varying schedules</a>,
13
+ * depending on your country and industry.
14
+ *
15
+ * Related guide: <a href="https://stripe.com/docs/payouts">Receiving Payouts</a>.
16
+ *
17
+ * @property string $id Unique identifier for the object.
18
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
19
+ * @property int $amount Amount (in %s) to be transferred to your bank account or debit card.
20
+ * @property int $arrival_date Date the payout is expected to arrive in the bank. This factors in delays like weekends or bank holidays.
21
+ * @property bool $automatic Returns <code>true</code> if the payout was created by an <a href="https://stripe.com/docs/payouts#payout-schedule">automated payout schedule</a>, and <code>false</code> if it was <a href="https://stripe.com/docs/payouts#manual-payouts">requested manually</a>.
22
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the balance transaction that describes the impact of this payout on your account balance.
23
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
24
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
25
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
26
+ * @property null|string|\Stripe\BankAccount|\Stripe\Card $destination ID of the bank account or card the payout was sent to.
27
+ * @property null|string|\Stripe\BalanceTransaction $failure_balance_transaction If the payout failed or was canceled, this will be the ID of the balance transaction that reversed the initial balance transaction, and puts the funds from the failed payout back in your balance.
28
+ * @property null|string $failure_code Error code explaining reason for payout failure if available. See <a href="https://stripe.com/docs/api#payout_failures">Types of payout failures</a> for a list of failure codes.
29
+ * @property null|string $failure_message Message to user further explaining reason for payout failure if available.
30
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
31
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
32
+ * @property string $method The method used to send this payout, which can be <code>standard</code> or <code>instant</code>. <code>instant</code> is only supported for payouts to debit cards. (See <a href="https://stripe.com/blog/instant-payouts-for-marketplaces">Instant payouts for marketplaces</a> for more information.)
33
+ * @property null|string|\Stripe\Payout $original_payout If the payout reverses another, this is the ID of the original payout.
34
+ * @property null|string|\Stripe\Payout $reversed_by If the payout was reversed, this is the ID of the payout that reverses this payout.
35
+ * @property string $source_type The source balance this payout came from. One of <code>card</code>, <code>fpx</code>, or <code>bank_account</code>.
36
+ * @property null|string $statement_descriptor Extra information about a payout to be displayed on the user's bank statement.
37
+ * @property string $status Current status of the payout: <code>paid</code>, <code>pending</code>, <code>in_transit</code>, <code>canceled</code> or <code>failed</code>. A payout is <code>pending</code> until it is submitted to the bank, when it becomes <code>in_transit</code>. The status then changes to <code>paid</code> if the transaction goes through, or to <code>failed</code> or <code>canceled</code> (within 5 business days). Some failed payouts may initially show as <code>paid</code> but then change to <code>failed</code>.
38
+ * @property string $type Can be <code>bank_account</code> or <code>card</code>.
39
+ */
40
+ class Payout extends ApiResource
41
+ {
42
+ const OBJECT_NAME = 'payout';
43
+
44
+ use ApiOperations\All;
45
+ use ApiOperations\Create;
46
+ use ApiOperations\Retrieve;
47
+ use ApiOperations\Update;
48
+
49
+ const FAILURE_ACCOUNT_CLOSED = 'account_closed';
50
+ const FAILURE_ACCOUNT_FROZEN = 'account_frozen';
51
+ const FAILURE_BANK_ACCOUNT_RESTRICTED = 'bank_account_restricted';
52
+ const FAILURE_BANK_OWNERSHIP_CHANGED = 'bank_ownership_changed';
53
+ const FAILURE_COULD_NOT_PROCESS = 'could_not_process';
54
+ const FAILURE_DEBIT_NOT_AUTHORIZED = 'debit_not_authorized';
55
+ const FAILURE_DECLINED = 'declined';
56
+ const FAILURE_INCORRECT_ACCOUNT_HOLDER_NAME = 'incorrect_account_holder_name';
57
+ const FAILURE_INSUFFICIENT_FUNDS = 'insufficient_funds';
58
+ const FAILURE_INVALID_ACCOUNT_NUMBER = 'invalid_account_number';
59
+ const FAILURE_INVALID_CURRENCY = 'invalid_currency';
60
+ const FAILURE_NO_ACCOUNT = 'no_account';
61
+ const FAILURE_UNSUPPORTED_CARD = 'unsupported_card';
62
+
63
+ const METHOD_INSTANT = 'instant';
64
+ const METHOD_STANDARD = 'standard';
65
+
66
+ const STATUS_CANCELED = 'canceled';
67
+ const STATUS_FAILED = 'failed';
68
+ const STATUS_IN_TRANSIT = 'in_transit';
69
+ const STATUS_PAID = 'paid';
70
+ const STATUS_PENDING = 'pending';
71
+
72
+ const TYPE_BANK_ACCOUNT = 'bank_account';
73
+ const TYPE_CARD = 'card';
74
+
75
+ /**
76
+ * @param null|array $params
77
+ * @param null|array|string $opts
78
+ *
79
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
80
+ *
81
+ * @return \Stripe\Payout the canceled payout
82
+ */
83
+ public function cancel($params = null, $opts = null)
84
+ {
85
+ $url = $this->instanceUrl() . '/cancel';
86
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
87
+ $this->refreshFrom($response, $opts);
88
+
89
+ return $this;
90
+ }
91
+
92
+ /**
93
+ * @param null|array $params
94
+ * @param null|array|string $opts
95
+ *
96
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
97
+ *
98
+ * @return \Stripe\Payout the reversed payout
99
+ */
100
+ public function reverse($params = null, $opts = null)
101
+ {
102
+ $url = $this->instanceUrl() . '/reverse';
103
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
104
+ $this->refreshFrom($response, $opts);
105
+
106
+ return $this;
107
+ }
108
+ }
lib/stripe-php/lib/Person.php ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * This is an object representing a person associated with a Stripe account.
9
+ *
10
+ * A platform cannot access a Standard or Express account's persons after the
11
+ * account starts onboarding, such as after generating an account link for the
12
+ * account. See the <a
13
+ * href="https://stripe.com/docs/connect/standard-accounts">Standard onboarding</a>
14
+ * or <a href="https://stripe.com/docs/connect/express-accounts">Express onboarding
15
+ * documentation</a> for information about platform pre-filling and account
16
+ * onboarding steps.
17
+ *
18
+ * Related guide: <a
19
+ * href="https://stripe.com/docs/connect/identity-verification-api#person-information">Handling
20
+ * Identity Verification with the API</a>.
21
+ *
22
+ * @property string $id Unique identifier for the object.
23
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
24
+ * @property string $account The account the person is associated with.
25
+ * @property \Stripe\StripeObject $address
26
+ * @property null|\Stripe\StripeObject $address_kana The Kana variation of the person's address (Japan only).
27
+ * @property null|\Stripe\StripeObject $address_kanji The Kanji variation of the person's address (Japan only).
28
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
29
+ * @property \Stripe\StripeObject $dob
30
+ * @property null|string $email The person's email address.
31
+ * @property null|string $first_name The person's first name.
32
+ * @property null|string $first_name_kana The Kana variation of the person's first name (Japan only).
33
+ * @property null|string $first_name_kanji The Kanji variation of the person's first name (Japan only).
34
+ * @property string[] $full_name_aliases A list of alternate names or aliases that the person is known by.
35
+ * @property null|\Stripe\StripeObject $future_requirements Information about the upcoming new requirements for this person, including what information needs to be collected, and by when.
36
+ * @property null|string $gender The person's gender (International regulations require either &quot;male&quot; or &quot;female&quot;).
37
+ * @property bool $id_number_provided Whether the person's <code>id_number</code> was provided.
38
+ * @property null|string $last_name The person's last name.
39
+ * @property null|string $last_name_kana The Kana variation of the person's last name (Japan only).
40
+ * @property null|string $last_name_kanji The Kanji variation of the person's last name (Japan only).
41
+ * @property null|string $maiden_name The person's maiden name.
42
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
43
+ * @property null|string $nationality The country where the person is a national.
44
+ * @property null|string $phone The person's phone number.
45
+ * @property string $political_exposure Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
46
+ * @property \Stripe\StripeObject $relationship
47
+ * @property null|\Stripe\StripeObject $requirements Information about the requirements for this person, including what information needs to be collected, and by when.
48
+ * @property bool $ssn_last_4_provided Whether the last four digits of the person's Social Security number have been provided (U.S. only).
49
+ * @property \Stripe\StripeObject $verification
50
+ */
51
+ class Person extends ApiResource
52
+ {
53
+ const OBJECT_NAME = 'person';
54
+
55
+ use ApiOperations\Delete;
56
+ use ApiOperations\Update;
57
+
58
+ const GENDER_FEMALE = 'female';
59
+ const GENDER_MALE = 'male';
60
+
61
+ const POLITICAL_EXPOSURE_EXISTING = 'existing';
62
+ const POLITICAL_EXPOSURE_NONE = 'none';
63
+
64
+ const VERIFICATION_STATUS_PENDING = 'pending';
65
+ const VERIFICATION_STATUS_UNVERIFIED = 'unverified';
66
+ const VERIFICATION_STATUS_VERIFIED = 'verified';
67
+
68
+ /**
69
+ * @return string the API URL for this Stripe account reversal
70
+ */
71
+ public function instanceUrl()
72
+ {
73
+ $id = $this['id'];
74
+ $account = $this['account'];
75
+ if (!$id) {
76
+ throw new Exception\UnexpectedValueException(
77
+ 'Could not determine which URL to request: ' .
78
+ "class instance has invalid ID: {$id}",
79
+ null
80
+ );
81
+ }
82
+ $id = Util\Util::utf8($id);
83
+ $account = Util\Util::utf8($account);
84
+
85
+ $base = Account::classUrl();
86
+ $accountExtn = \urlencode($account);
87
+ $extn = \urlencode($id);
88
+
89
+ return "{$base}/{$accountExtn}/persons/{$extn}";
90
+ }
91
+
92
+ /**
93
+ * @param array|string $_id
94
+ * @param null|array|string $_opts
95
+ *
96
+ * @throws \Stripe\Exception\BadMethodCallException
97
+ */
98
+ public static function retrieve($_id, $_opts = null)
99
+ {
100
+ $msg = 'Persons cannot be retrieved without an account ID. Retrieve ' .
101
+ "a person using `Account::retrievePerson('account_id', " .
102
+ "'person_id')`.";
103
+
104
+ throw new Exception\BadMethodCallException($msg);
105
+ }
106
+
107
+ /**
108
+ * @param string $_id
109
+ * @param null|array $_params
110
+ * @param null|array|string $_options
111
+ *
112
+ * @throws \Stripe\Exception\BadMethodCallException
113
+ */
114
+ public static function update($_id, $_params = null, $_options = null)
115
+ {
116
+ $msg = 'Persons cannot be updated without an account ID. Update ' .
117
+ "a person using `Account::updatePerson('account_id', " .
118
+ "'person_id', \$updateParams)`.";
119
+
120
+ throw new Exception\BadMethodCallException($msg);
121
+ }
122
+ }
lib/stripe-php/lib/Plan.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * You can now model subscriptions more flexibly using the <a
9
+ * href="https://stripe.com/docs/api#prices">Prices API</a>. It replaces the Plans
10
+ * API and is backwards compatible to simplify your migration.
11
+ *
12
+ * Plans define the base price, currency, and billing cycle for recurring purchases
13
+ * of products. <a href="https://stripe.com/docs/api#products">Products</a> help
14
+ * you track inventory or provisioning, and plans help you track pricing. Different
15
+ * physical goods or levels of service should be represented by products, and
16
+ * pricing options should be represented by plans. This approach lets you change
17
+ * prices without having to change your provisioning scheme.
18
+ *
19
+ * For example, you might have a single &quot;gold&quot; product that has plans for
20
+ * $10/month, $100/year, €9/month, and €90/year.
21
+ *
22
+ * Related guides: <a
23
+ * href="https://stripe.com/docs/billing/subscriptions/set-up-subscription">Set up
24
+ * a subscription</a> and more about <a
25
+ * href="https://stripe.com/docs/billing/prices-guide">products and prices</a>.
26
+ *
27
+ * @property string $id Unique identifier for the object.
28
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
29
+ * @property bool $active Whether the plan can be used for new purchases.
30
+ * @property null|string $aggregate_usage Specifies a usage aggregation strategy for plans of <code>usage_type=metered</code>. Allowed values are <code>sum</code> for summing up all usage during a period, <code>last_during_period</code> for using the last usage record reported within a period, <code>last_ever</code> for using the last usage record ever (across period bounds) or <code>max</code> which uses the usage record with the maximum reported usage during a period. Defaults to <code>sum</code>.
31
+ * @property null|int $amount The unit amount in %s to be charged, represented as a whole integer if possible. Only set if <code>billing_scheme=per_unit</code>.
32
+ * @property null|string $amount_decimal The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places. Only set if <code>billing_scheme=per_unit</code>.
33
+ * @property string $billing_scheme Describes how to compute the price per period. Either <code>per_unit</code> or <code>tiered</code>. <code>per_unit</code> indicates that the fixed amount (specified in <code>amount</code>) will be charged per unit in <code>quantity</code> (for plans with <code>usage_type=licensed</code>), or per unit of total usage (for plans with <code>usage_type=metered</code>). <code>tiered</code> indicates that the unit pricing will be computed using a tiering strategy as defined using the <code>tiers</code> and <code>tiers_mode</code> attributes.
34
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
35
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
36
+ * @property string $interval The frequency at which a subscription is billed. One of <code>day</code>, <code>week</code>, <code>month</code> or <code>year</code>.
37
+ * @property int $interval_count The number of intervals (specified in the <code>interval</code> attribute) between subscription billings. For example, <code>interval=month</code> and <code>interval_count=3</code> bills every 3 months.
38
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
39
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
40
+ * @property null|string $nickname A brief description of the plan, hidden from customers.
41
+ * @property null|string|\Stripe\Product $product The product whose pricing this plan determines.
42
+ * @property \Stripe\StripeObject[] $tiers Each element represents a pricing tier. This parameter requires <code>billing_scheme</code> to be set to <code>tiered</code>. See also the documentation for <code>billing_scheme</code>.
43
+ * @property null|string $tiers_mode Defines if the tiering price should be <code>graduated</code> or <code>volume</code> based. In <code>volume</code>-based tiering, the maximum quantity within a period determines the per unit price. In <code>graduated</code> tiering, pricing can change as the quantity grows.
44
+ * @property null|\Stripe\StripeObject $transform_usage Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with <code>tiers</code>.
45
+ * @property null|int $trial_period_days Default number of trial days when subscribing a customer to this plan using <a href="https://stripe.com/docs/api#create_subscription-trial_from_plan"><code>trial_from_plan=true</code></a>.
46
+ * @property string $usage_type Configures how the quantity per period should be determined. Can be either <code>metered</code> or <code>licensed</code>. <code>licensed</code> automatically bills the <code>quantity</code> set when adding it to a subscription. <code>metered</code> aggregates the total usage based on usage records. Defaults to <code>licensed</code>.
47
+ */
48
+ class Plan extends ApiResource
49
+ {
50
+ const OBJECT_NAME = 'plan';
51
+
52
+ use ApiOperations\All;
53
+ use ApiOperations\Create;
54
+ use ApiOperations\Delete;
55
+ use ApiOperations\Retrieve;
56
+ use ApiOperations\Update;
57
+ }
lib/stripe-php/lib/Price.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Prices define the unit cost, currency, and (optional) billing cycle for both
9
+ * recurring and one-time purchases of products. <a
10
+ * href="https://stripe.com/docs/api#products">Products</a> help you track
11
+ * inventory or provisioning, and prices help you track payment terms. Different
12
+ * physical goods or levels of service should be represented by products, and
13
+ * pricing options should be represented by prices. This approach lets you change
14
+ * prices without having to change your provisioning scheme.
15
+ *
16
+ * For example, you might have a single &quot;gold&quot; product that has prices
17
+ * for $10/month, $100/year, and €9 once.
18
+ *
19
+ * Related guides: <a
20
+ * href="https://stripe.com/docs/billing/subscriptions/set-up-subscription">Set up
21
+ * a subscription</a>, <a
22
+ * href="https://stripe.com/docs/billing/invoices/create">create an invoice</a>,
23
+ * and more about <a href="https://stripe.com/docs/billing/prices-guide">products
24
+ * and prices</a>.
25
+ *
26
+ * @property string $id Unique identifier for the object.
27
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
28
+ * @property bool $active Whether the price can be used for new purchases.
29
+ * @property string $billing_scheme Describes how to compute the price per period. Either <code>per_unit</code> or <code>tiered</code>. <code>per_unit</code> indicates that the fixed amount (specified in <code>unit_amount</code> or <code>unit_amount_decimal</code>) will be charged per unit in <code>quantity</code> (for prices with <code>usage_type=licensed</code>), or per unit of total usage (for prices with <code>usage_type=metered</code>). <code>tiered</code> indicates that the unit pricing will be computed using a tiering strategy as defined using the <code>tiers</code> and <code>tiers_mode</code> attributes.
30
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
31
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
32
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
33
+ * @property null|string $lookup_key A lookup key used to retrieve prices dynamically from a static string.
34
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
35
+ * @property null|string $nickname A brief description of the price, hidden from customers.
36
+ * @property string|\Stripe\Product $product The ID of the product this price is associated with.
37
+ * @property null|\Stripe\StripeObject $recurring The recurring components of a price such as <code>interval</code> and <code>usage_type</code>.
38
+ * @property null|string $tax_behavior Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of <code>inclusive</code>, <code>exclusive</code>, or <code>unspecified</code>. Once specified as either <code>inclusive</code> or <code>exclusive</code>, it cannot be changed.
39
+ * @property \Stripe\StripeObject[] $tiers Each element represents a pricing tier. This parameter requires <code>billing_scheme</code> to be set to <code>tiered</code>. See also the documentation for <code>billing_scheme</code>.
40
+ * @property null|string $tiers_mode Defines if the tiering price should be <code>graduated</code> or <code>volume</code> based. In <code>volume</code>-based tiering, the maximum quantity within a period determines the per unit price. In <code>graduated</code> tiering, pricing can change as the quantity grows.
41
+ * @property null|\Stripe\StripeObject $transform_quantity Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with <code>tiers</code>.
42
+ * @property string $type One of <code>one_time</code> or <code>recurring</code> depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
43
+ * @property null|int $unit_amount The unit amount in %s to be charged, represented as a whole integer if possible. Only set if <code>billing_scheme=per_unit</code>.
44
+ * @property null|string $unit_amount_decimal The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places. Only set if <code>billing_scheme=per_unit</code>.
45
+ */
46
+ class Price extends ApiResource
47
+ {
48
+ const OBJECT_NAME = 'price';
49
+
50
+ use ApiOperations\All;
51
+ use ApiOperations\Create;
52
+ use ApiOperations\Retrieve;
53
+ use ApiOperations\Update;
54
+
55
+ const BILLING_SCHEME_PER_UNIT = 'per_unit';
56
+ const BILLING_SCHEME_TIERED = 'tiered';
57
+
58
+ const TAX_BEHAVIOR_EXCLUSIVE = 'exclusive';
59
+ const TAX_BEHAVIOR_INCLUSIVE = 'inclusive';
60
+ const TAX_BEHAVIOR_UNSPECIFIED = 'unspecified';
61
+
62
+ const TIERS_MODE_GRADUATED = 'graduated';
63
+ const TIERS_MODE_VOLUME = 'volume';
64
+
65
+ const TYPE_ONE_TIME = 'one_time';
66
+ const TYPE_RECURRING = 'recurring';
67
+ }
lib/stripe-php/lib/Product.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Products describe the specific goods or services you offer to your customers.
9
+ * For example, you might offer a Standard and Premium version of your goods or
10
+ * service; each version would be a separate Product. They can be used in
11
+ * conjunction with <a href="https://stripe.com/docs/api#prices">Prices</a> to
12
+ * configure pricing in Checkout and Subscriptions.
13
+ *
14
+ * Related guides: <a
15
+ * href="https://stripe.com/docs/billing/subscriptions/set-up-subscription">Set up
16
+ * a subscription</a> or accept <a
17
+ * href="https://stripe.com/docs/payments/checkout/client#create-products">one-time
18
+ * payments with Checkout</a> and more about <a
19
+ * href="https://stripe.com/docs/billing/prices-guide">Products and Prices</a>
20
+ *
21
+ * @property string $id Unique identifier for the object.
22
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
23
+ * @property bool $active Whether the product is currently available for purchase.
24
+ * @property null|string[] $attributes A list of up to 5 attributes that each SKU can provide values for (e.g., <code>[&quot;color&quot;, &quot;size&quot;]</code>).
25
+ * @property null|string $caption A short one-line description of the product, meant to be displayable to the customer. Only applicable to products of <code>type=good</code>.
26
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
27
+ * @property string[] $deactivate_on An array of connect application identifiers that cannot purchase this product. Only applicable to products of <code>type=good</code>.
28
+ * @property null|string $description The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
29
+ * @property string[] $images A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
30
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
31
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
32
+ * @property string $name The product's name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.
33
+ * @property null|\Stripe\StripeObject $package_dimensions The dimensions of this product for shipping purposes.
34
+ * @property null|bool $shippable Whether this product is shipped (i.e., physical goods).
35
+ * @property null|string $statement_descriptor Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used.
36
+ * @property null|string|\Stripe\TaxCode $tax_code A <a href="https://stripe.com/docs/tax/tax-codes">tax code</a> ID.
37
+ * @property string $type The type of the product. The product is either of type <code>good</code>, which is eligible for use with Orders and SKUs, or <code>service</code>, which is eligible for use with Subscriptions and Plans.
38
+ * @property null|string $unit_label A label that represents units of this product in Stripe and on customers’ receipts and invoices. When set, this will be included in associated invoice line item descriptions.
39
+ * @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
40
+ * @property null|string $url A URL of a publicly-accessible webpage for this product.
41
+ */
42
+ class Product extends ApiResource
43
+ {
44
+ const OBJECT_NAME = 'product';
45
+
46
+ use ApiOperations\All;
47
+ use ApiOperations\Create;
48
+ use ApiOperations\Delete;
49
+ use ApiOperations\Retrieve;
50
+ use ApiOperations\Update;
51
+
52
+ const TYPE_GOOD = 'good';
53
+ const TYPE_SERVICE = 'service';
54
+ }
lib/stripe-php/lib/PromotionCode.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * A Promotion Code represents a customer-redeemable code for a coupon. It can be
9
+ * used to create multiple codes for a single coupon.
10
+ *
11
+ * @property string $id Unique identifier for the object.
12
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
13
+ * @property bool $active Whether the promotion code is currently active. A promotion code is only active if the coupon is also valid.
14
+ * @property string $code The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer.
15
+ * @property \Stripe\Coupon $coupon A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to <a href="https://stripe.com/docs/api#invoices">invoices</a> or <a href="https://stripe.com/docs/api#create_order-coupon">orders</a>. Coupons do not work with conventional one-off <a href="https://stripe.com/docs/api#create_charge">charges</a>.
16
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
17
+ * @property null|string|\Stripe\Customer $customer The customer that this promotion code can be used by.
18
+ * @property null|int $expires_at Date at which the promotion code can no longer be redeemed.
19
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
20
+ * @property null|int $max_redemptions Maximum number of times this promotion code can be redeemed.
21
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
22
+ * @property \Stripe\StripeObject $restrictions
23
+ * @property int $times_redeemed Number of times this promotion code has been used.
24
+ */
25
+ class PromotionCode extends ApiResource
26
+ {
27
+ const OBJECT_NAME = 'promotion_code';
28
+
29
+ use ApiOperations\All;
30
+ use ApiOperations\Create;
31
+ use ApiOperations\Retrieve;
32
+ use ApiOperations\Update;
33
+ }
lib/stripe-php/lib/Quote.php ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * A Quote is a way to model prices that you'd like to provide to a customer. Once
9
+ * accepted, it will automatically create an invoice, subscription or subscription
10
+ * schedule.
11
+ *
12
+ * @property string $id Unique identifier for the object.
13
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
14
+ * @property int $amount_subtotal Total before any discounts or taxes are applied.
15
+ * @property int $amount_total Total after discounts and taxes are applied.
16
+ * @property null|int $application_fee_amount The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Only applicable if there are no line items with recurring prices on the quote.
17
+ * @property null|float $application_fee_percent A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. Only applicable if there are line items with recurring prices on the quote.
18
+ * @property \Stripe\StripeObject $automatic_tax
19
+ * @property string $collection_method Either <code>charge_automatically</code>, or <code>send_invoice</code>. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or on finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to <code>charge_automatically</code>.
20
+ * @property \Stripe\StripeObject $computed
21
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
22
+ * @property null|string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
23
+ * @property null|string|\Stripe\Customer $customer The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
24
+ * @property (string|\Stripe\TaxRate)[] $default_tax_rates The tax rates applied to this quote.
25
+ * @property null|string $description A description that will be displayed on the quote PDF.
26
+ * @property (string|\Stripe\Discount)[] $discounts The discounts applied to this quote.
27
+ * @property int $expires_at The date on which the quote will be canceled if in <code>open</code> or <code>draft</code> status. Measured in seconds since the Unix epoch.
28
+ * @property null|string $footer A footer that will be displayed on the quote PDF.
29
+ * @property null|\Stripe\StripeObject $from_quote Details of the quote that was cloned. See the <a href="https://stripe.com/docs/quotes/clone">cloning documentation</a> for more details.
30
+ * @property null|string $header A header that will be displayed on the quote PDF.
31
+ * @property null|string|\Stripe\Invoice $invoice The invoice that was created from this quote.
32
+ * @property null|\Stripe\StripeObject $invoice_settings All invoices will be billed using the specified settings.
33
+ * @property \Stripe\Collection $line_items A list of items the customer is being quoted for.
34
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
35
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
36
+ * @property null|string $number A unique number that identifies this particular quote. This number is assigned once the quote is <a href="https://stripe.com/docs/quotes/overview#finalize">finalized</a>.
37
+ * @property null|string|\Stripe\Account $on_behalf_of The account on behalf of which to charge. See the <a href="https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts">Connect documentation</a> for details.
38
+ * @property string $status The status of the quote.
39
+ * @property \Stripe\StripeObject $status_transitions
40
+ * @property null|string|\Stripe\Subscription $subscription The subscription that was created or updated from this quote.
41
+ * @property \Stripe\StripeObject $subscription_data
42
+ * @property null|string|\Stripe\SubscriptionSchedule $subscription_schedule The subscription schedule that was created or updated from this quote.
43
+ * @property \Stripe\StripeObject $total_details
44
+ * @property null|\Stripe\StripeObject $transfer_data The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the invoices.
45
+ */
46
+ class Quote extends ApiResource
47
+ {
48
+ const OBJECT_NAME = 'quote';
49
+
50
+ use ApiOperations\All;
51
+ use ApiOperations\Create;
52
+ use ApiOperations\Retrieve;
53
+ use ApiOperations\Update;
54
+
55
+ const COLLECTION_METHOD_CHARGE_AUTOMATICALLY = 'charge_automatically';
56
+ const COLLECTION_METHOD_SEND_INVOICE = 'send_invoice';
57
+
58
+ const STATUS_ACCEPTED = 'accepted';
59
+ const STATUS_CANCELED = 'canceled';
60
+ const STATUS_DRAFT = 'draft';
61
+ const STATUS_OPEN = 'open';
62
+
63
+ /**
64
+ * @param callable $readBodyChunkCallable
65
+ * @param null|array $params
66
+ * @param null|array|string $opts
67
+ *
68
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
69
+ *
70
+ * @return \Stripe\File the created file
71
+ */
72
+ public function pdf($readBodyChunkCallable, $params = null, $opts = null)
73
+ {
74
+ $opts = \Stripe\Util\RequestOptions::parse($opts);
75
+ if (null === $opts->apiBase) {
76
+ $opts->apiBase = Stripe::$apiUploadBase;
77
+ }
78
+
79
+ $url = $this->instanceUrl() . '/pdf';
80
+ $this->_requestStream('get', $url, $readBodyChunkCallable, $params, $opts);
81
+ }
82
+
83
+ /**
84
+ * @param null|array $params
85
+ * @param null|array|string $opts
86
+ *
87
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
88
+ *
89
+ * @return \Stripe\Quote the accepted quote
90
+ */
91
+ public function accept($params = null, $opts = null)
92
+ {
93
+ $url = $this->instanceUrl() . '/accept';
94
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
95
+ $this->refreshFrom($response, $opts);
96
+
97
+ return $this;
98
+ }
99
+
100
+ /**
101
+ * @param null|array $params
102
+ * @param null|array|string $opts
103
+ *
104
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
105
+ *
106
+ * @return \Stripe\Quote the canceled quote
107
+ */
108
+ public function cancel($params = null, $opts = null)
109
+ {
110
+ $url = $this->instanceUrl() . '/cancel';
111
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
112
+ $this->refreshFrom($response, $opts);
113
+
114
+ return $this;
115
+ }
116
+
117
+ /**
118
+ * @param null|array $params
119
+ * @param null|array|string $opts
120
+ *
121
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
122
+ *
123
+ * @return \Stripe\Quote the finalized quote
124
+ */
125
+ public function finalizeQuote($params = null, $opts = null)
126
+ {
127
+ $url = $this->instanceUrl() . '/finalize';
128
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
129
+ $this->refreshFrom($response, $opts);
130
+
131
+ return $this;
132
+ }
133
+
134
+ /**
135
+ * @param null|array $params
136
+ * @param null|array|string $opts
137
+ * @param mixed $id
138
+ *
139
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
140
+ *
141
+ * @return \Stripe\Collection list of LineItems
142
+ */
143
+ public static function allComputedUpfrontLineItems($id, $params = null, $opts = null)
144
+ {
145
+ $url = static::resourceUrl($id) . '/computed_upfront_line_items';
146
+ list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
147
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
148
+ $obj->setLastResponse($response);
149
+
150
+ return $obj;
151
+ }
152
+
153
+ /**
154
+ * @param null|array $params
155
+ * @param null|array|string $opts
156
+ * @param mixed $id
157
+ *
158
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
159
+ *
160
+ * @return \Stripe\Collection list of LineItems
161
+ */
162
+ public static function allLineItems($id, $params = null, $opts = null)
163
+ {
164
+ $url = static::resourceUrl($id) . '/line_items';
165
+ list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
166
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
167
+ $obj->setLastResponse($response);
168
+
169
+ return $obj;
170
+ }
171
+ }
lib/stripe-php/lib/Radar/EarlyFraudWarning.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Radar;
6
+
7
+ /**
8
+ * An early fraud warning indicates that the card issuer has notified us that a
9
+ * charge may be fraudulent.
10
+ *
11
+ * Related guide: <a
12
+ * href="https://stripe.com/docs/disputes/measuring#early-fraud-warnings">Early
13
+ * Fraud Warnings</a>.
14
+ *
15
+ * @property string $id Unique identifier for the object.
16
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
17
+ * @property bool $actionable An EFW is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later.
18
+ * @property string|\Stripe\Charge $charge ID of the charge this early fraud warning is for, optionally expanded.
19
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
20
+ * @property string $fraud_type The type of fraud labelled by the issuer. One of <code>card_never_received</code>, <code>fraudulent_card_application</code>, <code>made_with_counterfeit_card</code>, <code>made_with_lost_card</code>, <code>made_with_stolen_card</code>, <code>misc</code>, <code>unauthorized_use_of_card</code>.
21
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
22
+ * @property string|\Stripe\PaymentIntent $payment_intent ID of the Payment Intent this early fraud warning is for, optionally expanded.
23
+ */
24
+ class EarlyFraudWarning extends \Stripe\ApiResource
25
+ {
26
+ const OBJECT_NAME = 'radar.early_fraud_warning';
27
+
28
+ use \Stripe\ApiOperations\All;
29
+ use \Stripe\ApiOperations\Retrieve;
30
+
31
+ const FRAUD_TYPE_CARD_NEVER_RECEIVED = 'card_never_received';
32
+ const FRAUD_TYPE_FRAUDULENT_CARD_APPLICATION = 'fraudulent_card_application';
33
+ const FRAUD_TYPE_MADE_WITH_COUNTERFEIT_CARD = 'made_with_counterfeit_card';
34
+ const FRAUD_TYPE_MADE_WITH_LOST_CARD = 'made_with_lost_card';
35
+ const FRAUD_TYPE_MADE_WITH_STOLEN_CARD = 'made_with_stolen_card';
36
+ const FRAUD_TYPE_MISC = 'misc';
37
+ const FRAUD_TYPE_UNAUTHORIZED_USE_OF_CARD = 'unauthorized_use_of_card';
38
+ }
lib/stripe-php/lib/Radar/ValueList.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Radar;
6
+
7
+ /**
8
+ * Value lists allow you to group values together which can then be referenced in
9
+ * rules.
10
+ *
11
+ * Related guide: <a
12
+ * href="https://stripe.com/docs/radar/lists#managing-list-items">Default Stripe
13
+ * Lists</a>.
14
+ *
15
+ * @property string $id Unique identifier for the object.
16
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
17
+ * @property string $alias The name of the value list for use in rules.
18
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
19
+ * @property string $created_by The name or email address of the user who created this value list.
20
+ * @property string $item_type The type of items in the value list. One of <code>card_fingerprint</code>, <code>card_bin</code>, <code>email</code>, <code>ip_address</code>, <code>country</code>, <code>string</code>, <code>case_sensitive_string</code>, or <code>customer_id</code>.
21
+ * @property \Stripe\Collection $list_items List of items contained within this value list.
22
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
23
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
24
+ * @property string $name The name of the value list.
25
+ */
26
+ class ValueList extends \Stripe\ApiResource
27
+ {
28
+ const OBJECT_NAME = 'radar.value_list';
29
+
30
+ use \Stripe\ApiOperations\All;
31
+ use \Stripe\ApiOperations\Create;
32
+ use \Stripe\ApiOperations\Delete;
33
+ use \Stripe\ApiOperations\Retrieve;
34
+ use \Stripe\ApiOperations\Update;
35
+ }
lib/stripe-php/lib/Radar/ValueListItem.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Radar;
6
+
7
+ /**
8
+ * Value list items allow you to add specific values to a given Radar value list,
9
+ * which can then be used in rules.
10
+ *
11
+ * Related guide: <a
12
+ * href="https://stripe.com/docs/radar/lists#managing-list-items">Managing List
13
+ * Items</a>.
14
+ *
15
+ * @property string $id Unique identifier for the object.
16
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
17
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
18
+ * @property string $created_by The name or email address of the user who added this item to the value list.
19
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
20
+ * @property string $value The value of the item.
21
+ * @property string $value_list The identifier of the value list this item belongs to.
22
+ */
23
+ class ValueListItem extends \Stripe\ApiResource
24
+ {
25
+ const OBJECT_NAME = 'radar.value_list_item';
26
+
27
+ use \Stripe\ApiOperations\All;
28
+ use \Stripe\ApiOperations\Create;
29
+ use \Stripe\ApiOperations\Delete;
30
+ use \Stripe\ApiOperations\Retrieve;
31
+ }
lib/stripe-php/lib/Recipient.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * With <code>Recipient</code> objects, you can transfer money from your Stripe
9
+ * account to a third-party bank account or debit card. The API allows you to
10
+ * create, delete, and update your recipients. You can retrieve individual
11
+ * recipients as well as a list of all your recipients.
12
+ *
13
+ * <strong><code>Recipient</code> objects have been deprecated in favor of <a
14
+ * href="https://stripe.com/docs/connect">Connect</a>, specifically Connect's much
15
+ * more powerful <a href="https://stripe.com/docs/api#account">Account objects</a>.
16
+ * Stripe accounts that don't already use recipients can no longer begin doing so.
17
+ * Please use <code>Account</code> objects instead.</strong>
18
+ *
19
+ * @property string $id Unique identifier for the object.
20
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
21
+ * @property null|\Stripe\BankAccount $active_account Hash describing the current account on the recipient, if there is one.
22
+ * @property null|\Stripe\Collection $cards
23
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
24
+ * @property null|string|\Stripe\Card $default_card The default card to use for creating transfers to this recipient.
25
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
26
+ * @property null|string $email
27
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
28
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
29
+ * @property null|string|\Stripe\Account $migrated_to The ID of the <a href="https://stripe.com/docs/connect/custom-accounts">Custom account</a> this recipient was migrated to. If set, the recipient can no longer be updated, nor can transfers be made to it: use the Custom account instead.
30
+ * @property null|string $name Full, legal name of the recipient.
31
+ * @property string|\Stripe\Account $rolled_back_from
32
+ * @property string $type Type of the recipient, one of <code>individual</code> or <code>corporation</code>.
33
+ * @property bool $verified Whether the recipient has been verified. This field is non-standard, and maybe removed in the future
34
+ */
35
+ class Recipient extends ApiResource
36
+ {
37
+ const OBJECT_NAME = 'recipient';
38
+
39
+ use ApiOperations\All;
40
+ use ApiOperations\Create;
41
+ use ApiOperations\Delete;
42
+ use ApiOperations\Retrieve;
43
+ use ApiOperations\Update;
44
+ }
lib/stripe-php/lib/RecipientTransfer.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Class RecipientTransfer.
7
+ *
8
+ * @property string $id
9
+ * @property string $object
10
+ * @property int $amount
11
+ * @property int $amount_reversed
12
+ * @property string $balance_transaction
13
+ * @property string $bank_account
14
+ * @property string $card
15
+ * @property int $created
16
+ * @property string $currency
17
+ * @property int $date
18
+ * @property string $description
19
+ * @property string $destination
20
+ * @property string $failure_code
21
+ * @property string $failure_message
22
+ * @property bool $livemode
23
+ * @property \Stripe\StripeObject $metadata
24
+ * @property string $method
25
+ * @property string $recipient
26
+ * @property \Stripe\Collection $reversals
27
+ * @property bool $reversed
28
+ * @property string $source_type
29
+ * @property string $statement_descriptor
30
+ * @property string $status
31
+ * @property string $type
32
+ */
33
+ class RecipientTransfer extends ApiResource
34
+ {
35
+ const OBJECT_NAME = 'recipient_transfer';
36
+ }
lib/stripe-php/lib/Refund.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * <code>Refund</code> objects allow you to refund a charge that has previously
9
+ * been created but not yet refunded. Funds will be refunded to the credit or debit
10
+ * card that was originally charged.
11
+ *
12
+ * Related guide: <a href="https://stripe.com/docs/refunds">Refunds</a>.
13
+ *
14
+ * @property string $id Unique identifier for the object.
15
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
16
+ * @property int $amount Amount, in %s.
17
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact on your account balance.
18
+ * @property null|string|\Stripe\Charge $charge ID of the charge that was refunded.
19
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
20
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
21
+ * @property string $description An arbitrary string attached to the object. Often useful for displaying to users. (Available on non-card refunds only)
22
+ * @property string|\Stripe\BalanceTransaction $failure_balance_transaction If the refund failed, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction.
23
+ * @property string $failure_reason If the refund failed, the reason for refund failure if known. Possible values are <code>lost_or_stolen_card</code>, <code>expired_or_canceled_card</code>, or <code>unknown</code>.
24
+ * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
25
+ * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent that was refunded.
26
+ * @property null|string $reason Reason for the refund, either user-provided (<code>duplicate</code>, <code>fraudulent</code>, or <code>requested_by_customer</code>) or generated by Stripe internally (<code>expired_uncaptured_charge</code>).
27
+ * @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this refund.
28
+ * @property null|string|\Stripe\TransferReversal $source_transfer_reversal The transfer reversal that is associated with the refund. Only present if the charge came from another Stripe account. See the Connect documentation for details.
29
+ * @property null|string $status Status of the refund. For credit card refunds, this can be <code>pending</code>, <code>succeeded</code>, or <code>failed</code>. For other types of refunds, it can be <code>pending</code>, <code>succeeded</code>, <code>failed</code>, or <code>canceled</code>. Refer to our <a href="https://stripe.com/docs/refunds#failed-refunds">refunds</a> documentation for more details.
30
+ * @property null|string|\Stripe\TransferReversal $transfer_reversal If the accompanying transfer was reversed, the transfer reversal object. Only applicable if the charge was created using the destination parameter.
31
+ */
32
+ class Refund extends ApiResource
33
+ {
34
+ const OBJECT_NAME = 'refund';
35
+
36
+ use ApiOperations\All;
37
+ use ApiOperations\Create;
38
+ use ApiOperations\Retrieve;
39
+ use ApiOperations\Update;
40
+
41
+ const FAILURE_REASON_EXPIRED_OR_CANCELED_CARD = 'expired_or_canceled_card';
42
+ const FAILURE_REASON_LOST_OR_STOLEN_CARD = 'lost_or_stolen_card';
43
+ const FAILURE_REASON_UNKNOWN = 'unknown';
44
+
45
+ const REASON_DUPLICATE = 'duplicate';
46
+ const REASON_FRAUDULENT = 'fraudulent';
47
+ const REASON_REQUESTED_BY_CUSTOMER = 'requested_by_customer';
48
+
49
+ const STATUS_CANCELED = 'canceled';
50
+ const STATUS_FAILED = 'failed';
51
+ const STATUS_PENDING = 'pending';
52
+ const STATUS_SUCCEEDED = 'succeeded';
53
+
54
+ /**
55
+ * @deprecated use FAILURE_REASON_EXPIRED_OR_CANCELED_CARD instead
56
+ */
57
+ const FAILURE_REASON = 'expired_or_canceled_card';
58
+ }
lib/stripe-php/lib/Reporting/ReportRun.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Reporting;
6
+
7
+ /**
8
+ * The Report Run object represents an instance of a report type generated with
9
+ * specific run parameters. Once the object is created, Stripe begins processing
10
+ * the report. When the report has finished running, it will give you a reference
11
+ * to a file where you can retrieve your results. For an overview, see <a
12
+ * href="https://stripe.com/docs/reporting/statements/api">API Access to
13
+ * Reports</a>.
14
+ *
15
+ * Note that certain report types can only be run based on your live-mode data (not
16
+ * test-mode data), and will error when queried without a <a
17
+ * href="https://stripe.com/docs/keys#test-live-modes">live-mode API key</a>.
18
+ *
19
+ * @property string $id Unique identifier for the object.
20
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
21
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
22
+ * @property null|string $error If something should go wrong during the run, a message about the failure (populated when <code>status=failed</code>).
23
+ * @property bool $livemode <code>true</code> if the report is run on live mode data and <code>false</code> if it is run on test mode data.
24
+ * @property \Stripe\StripeObject $parameters
25
+ * @property string $report_type The ID of the <a href="https://stripe.com/docs/reports/report-types">report type</a> to run, such as <code>&quot;balance.summary.1&quot;</code>.
26
+ * @property null|\Stripe\File $result The file object representing the result of the report run (populated when <code>status=succeeded</code>).
27
+ * @property string $status Status of this report run. This will be <code>pending</code> when the run is initially created. When the run finishes, this will be set to <code>succeeded</code> and the <code>result</code> field will be populated. Rarely, we may encounter an error, at which point this will be set to <code>failed</code> and the <code>error</code> field will be populated.
28
+ * @property null|int $succeeded_at Timestamp at which this run successfully finished (populated when <code>status=succeeded</code>). Measured in seconds since the Unix epoch.
29
+ */
30
+ class ReportRun extends \Stripe\ApiResource
31
+ {
32
+ const OBJECT_NAME = 'reporting.report_run';
33
+
34
+ use \Stripe\ApiOperations\All;
35
+ use \Stripe\ApiOperations\Create;
36
+ use \Stripe\ApiOperations\Retrieve;
37
+ }
lib/stripe-php/lib/Reporting/ReportType.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Reporting;
6
+
7
+ /**
8
+ * The Report Type resource corresponds to a particular type of report, such as the
9
+ * &quot;Activity summary&quot; or &quot;Itemized payouts&quot; reports. These
10
+ * objects are identified by an ID belonging to a set of enumerated values. See <a
11
+ * href="https://stripe.com/docs/reporting/statements/api">API Access to Reports
12
+ * documentation</a> for those Report Type IDs, along with required and optional
13
+ * parameters.
14
+ *
15
+ * Note that certain report types can only be run based on your live-mode data (not
16
+ * test-mode data), and will error when queried without a <a
17
+ * href="https://stripe.com/docs/keys#test-live-modes">live-mode API key</a>.
18
+ *
19
+ * @property string $id The <a href="https://stripe.com/docs/reporting/statements/api#available-report-types">ID of the Report Type</a>, such as <code>balance.summary.1</code>.
20
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
21
+ * @property int $data_available_end Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch.
22
+ * @property int $data_available_start Earliest time for which this Report Type is available. Measured in seconds since the Unix epoch.
23
+ * @property null|string[] $default_columns List of column names that are included by default when this Report Type gets run. (If the Report Type doesn't support the <code>columns</code> parameter, this will be null.)
24
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
25
+ * @property string $name Human-readable name of the Report Type
26
+ * @property int $updated When this Report Type was latest updated. Measured in seconds since the Unix epoch.
27
+ * @property int $version Version of the Report Type. Different versions report with the same ID will have the same purpose, but may take different run parameters or have different result schemas.
28
+ */
29
+ class ReportType extends \Stripe\ApiResource
30
+ {
31
+ const OBJECT_NAME = 'reporting.report_type';
32
+
33
+ use \Stripe\ApiOperations\All;
34
+ use \Stripe\ApiOperations\Retrieve;
35
+ }
lib/stripe-php/lib/RequestTelemetry.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe;
4
+
5
+ /**
6
+ * Class RequestTelemetry.
7
+ *
8
+ * Tracks client request telemetry
9
+ */
10
+ class RequestTelemetry
11
+ {
12
+ public $requestId;
13
+ public $requestDuration;
14
+
15
+ /**
16
+ * Initialize a new telemetry object.
17
+ *
18
+ * @param string $requestId the request's request ID
19
+ * @param int $requestDuration the request's duration in milliseconds
20
+ */
21
+ public function __construct($requestId, $requestDuration)
22
+ {
23
+ $this->requestId = $requestId;
24
+ $this->requestDuration = $requestDuration;
25
+ }
26
+ }
lib/stripe-php/lib/Review.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Reviews can be used to supplement automated fraud detection with human
9
+ * expertise.
10
+ *
11
+ * Learn more about <a href="/radar">Radar</a> and reviewing payments <a
12
+ * href="https://stripe.com/docs/radar/reviews">here</a>.
13
+ *
14
+ * @property string $id Unique identifier for the object.
15
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
16
+ * @property null|string $billing_zip The ZIP or postal code of the card used, if applicable.
17
+ * @property null|string|\Stripe\Charge $charge The charge associated with this review.
18
+ * @property null|string $closed_reason The reason the review was closed, or null if it has not yet been closed. One of <code>approved</code>, <code>refunded</code>, <code>refunded_as_fraud</code>, <code>disputed</code>, or <code>redacted</code>.
19
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
20
+ * @property null|string $ip_address The IP address where the payment originated.
21
+ * @property null|\Stripe\StripeObject $ip_address_location Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
22
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
23
+ * @property bool $open If <code>true</code>, the review needs action.
24
+ * @property string $opened_reason The reason the review was opened. One of <code>rule</code> or <code>manual</code>.
25
+ * @property string|\Stripe\PaymentIntent $payment_intent The PaymentIntent ID associated with this review, if one exists.
26
+ * @property string $reason The reason the review is currently open or closed. One of <code>rule</code>, <code>manual</code>, <code>approved</code>, <code>refunded</code>, <code>refunded_as_fraud</code>, <code>disputed</code>, or <code>redacted</code>.
27
+ * @property null|\Stripe\StripeObject $session Information related to the browsing session of the user who initiated the payment.
28
+ */
29
+ class Review extends ApiResource
30
+ {
31
+ const OBJECT_NAME = 'review';
32
+
33
+ use ApiOperations\All;
34
+ use ApiOperations\Retrieve;
35
+
36
+ /**
37
+ * Possible string representations of the current, the opening or the closure reason of the review.
38
+ * Not all of these enumeration apply to all of the ´reason´ fields. Please consult the Review object to
39
+ * determine where these are apply.
40
+ *
41
+ * @see https://stripe.com/docs/api/radar/reviews/object
42
+ */
43
+ const REASON_APPROVED = 'approved';
44
+ const REASON_DISPUTED = 'disputed';
45
+ const REASON_MANUAL = 'manual';
46
+ const REASON_REFUNDED = 'refunded';
47
+ const REASON_REFUNDED_AS_FRAUD = 'refunded_as_fraud';
48
+ const REASON_RULE = 'rule';
49
+
50
+ /**
51
+ * @param null|array $params
52
+ * @param null|array|string $opts
53
+ *
54
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
55
+ *
56
+ * @return \Stripe\Review the approved review
57
+ */
58
+ public function approve($params = null, $opts = null)
59
+ {
60
+ $url = $this->instanceUrl() . '/approve';
61
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
62
+ $this->refreshFrom($response, $opts);
63
+
64
+ return $this;
65
+ }
66
+ }
lib/stripe-php/lib/SKU.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe;
6
+
7
+ /**
8
+ * Stores representations of <a
9
+ * href="http://en.wikipedia.org/wiki/Stock_keeping_unit">stock keeping units</a>.
10
+ * SKUs describe specific product variations, taking into account any combination
11
+ * of: attributes, currency, and cost. For example, a product may be a T-shirt,
12
+ * whereas a specific SKU represents the <code>size: large</code>, <code>color:
13
+ * red</code> version of that shirt.
14
+ *
15
+ * Can also be used to manage inventory.
16
+ *
17
+ * Related guide: <a href="https://stripe.com/docs/orders">Tax, Shipping, and
18
+ * Inventory</a>.
19
+ *
20
+ * @property string $id Unique identifier for the object.
21
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
22
+ * @property bool $active Whether the SKU is available for purchase.
23
+ * @property \Stripe\StripeObject $attributes A dictionary of attributes and values for the attributes defined by the product. If, for example, a product's attributes are <code>[&quot;size&quot;, &quot;gender&quot;]</code>, a valid SKU has the following dictionary of attributes: <code>{&quot;size&quot;: &quot;Medium&quot;, &quot;gender&quot;: &quot;Unisex&quot;}</code>.
24
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
25
+ * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
26
+ * @property null|string $image The URL of an image for this SKU, meant to be displayable to the customer.
27
+ * @property \Stripe\StripeObject $inventory
28
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
29
+ * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
30
+ * @property null|\Stripe\StripeObject $package_dimensions The dimensions of this SKU for shipping purposes.
31
+ * @property int $price The cost of the item as a positive integer in the smallest currency unit (that is, 100 cents to charge $1.00, or 100 to charge ¥100, Japanese Yen being a zero-decimal currency).
32
+ * @property string|\Stripe\Product $product The ID of the product this SKU is associated with. The product must be currently active.
33
+ * @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
34
+ */
35
+ class SKU extends ApiResource
36
+ {
37
+ const OBJECT_NAME = 'sku';
38
+
39
+ use ApiOperations\All;
40
+ use ApiOperations\Create;
41
+ use ApiOperations\Delete;
42
+ use ApiOperations\Retrieve;
43
+ use ApiOperations\Update;
44
+ }
lib/stripe-php/lib/Service/AbstractService.php ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Service;
4
+
5
+ /**
6
+ * Abstract base class for all services.
7
+ */
8
+ abstract class AbstractService
9
+ {
10
+ /**
11
+ * @var \Stripe\StripeClientInterface
12
+ */
13
+ protected $client;
14
+
15
+ /**
16
+ * @var \Stripe\StripeStreamingClientInterface
17
+ */
18
+ protected $streamingClient;
19
+
20
+ /**
21
+ * Initializes a new instance of the {@link AbstractService} class.
22
+ *
23
+ * @param \Stripe\StripeClientInterface $client
24
+ */
25
+ public function __construct($client)
26
+ {
27
+ $this->client = $client;
28
+ $this->streamingClient = $client;
29
+ }
30
+
31
+ /**
32
+ * Gets the client used by this service to send requests.
33
+ *
34
+ * @return \Stripe\StripeClientInterface
35
+ */
36
+ public function getClient()
37
+ {
38
+ return $this->client;
39
+ }
40
+
41
+ /**
42
+ * Gets the client used by this service to send requests.
43
+ *
44
+ * @return \Stripe\StripeStreamingClientInterface
45
+ */
46
+ public function getStreamingClient()
47
+ {
48
+ return $this->streamingClient;
49
+ }
50
+
51
+ /**
52
+ * Translate null values to empty strings. For service methods,
53
+ * we interpret null as a request to unset the field, which
54
+ * corresponds to sending an empty string for the field to the
55
+ * API.
56
+ *
57
+ * @param null|array $params
58
+ */
59
+ private static function formatParams($params)
60
+ {
61
+ if (null === $params) {
62
+ return null;
63
+ }
64
+ \array_walk_recursive($params, function (&$value, $key) {
65
+ if (null === $value) {
66
+ $value = '';
67
+ }
68
+ });
69
+
70
+ return $params;
71
+ }
72
+
73
+ protected function request($method, $path, $params, $opts)
74
+ {
75
+ return $this->getClient()->request($method, $path, static::formatParams($params), $opts);
76
+ }
77
+
78
+ protected function requestStream($method, $path, $readBodyChunkCallable, $params, $opts)
79
+ {
80
+ return $this->getStreamingClient()->requestStream($method, $path, $readBodyChunkCallable, static::formatParams($params), $opts);
81
+ }
82
+
83
+ protected function requestCollection($method, $path, $params, $opts)
84
+ {
85
+ return $this->getClient()->requestCollection($method, $path, static::formatParams($params), $opts);
86
+ }
87
+
88
+ protected function buildPath($basePath, ...$ids)
89
+ {
90
+ foreach ($ids as $id) {
91
+ if (null === $id || '' === \trim($id)) {
92
+ $msg = 'The resource ID cannot be null or whitespace.';
93
+
94
+ throw new \Stripe\Exception\InvalidArgumentException($msg);
95
+ }
96
+ }
97
+
98
+ return \sprintf($basePath, ...\array_map('\urlencode', $ids));
99
+ }
100
+ }
lib/stripe-php/lib/Service/AbstractServiceFactory.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Service;
4
+
5
+ /**
6
+ * Abstract base class for all service factories used to expose service
7
+ * instances through {@link \Stripe\StripeClient}.
8
+ *
9
+ * Service factories serve two purposes:
10
+ *
11
+ * 1. Expose properties for all services through the `__get()` magic method.
12
+ * 2. Lazily initialize each service instance the first time the property for
13
+ * a given service is used.
14
+ */
15
+ abstract class AbstractServiceFactory
16
+ {
17
+ /** @var \Stripe\StripeClientInterface */
18
+ private $client;
19
+
20
+ /** @var array<string, AbstractService|AbstractServiceFactory> */
21
+ private $services;
22
+
23
+ /**
24
+ * @param \Stripe\StripeClientInterface $client
25
+ */
26
+ public function __construct($client)
27
+ {
28
+ $this->client = $client;
29
+ $this->services = [];
30
+ }
31
+
32
+ /**
33
+ * @param string $name
34
+ *
35
+ * @return null|string
36
+ */
37
+ abstract protected function getServiceClass($name);
38
+
39
+ /**
40
+ * @param string $name
41
+ *
42
+ * @return null|AbstractService|AbstractServiceFactory
43
+ */
44
+ public function __get($name)
45
+ {
46
+ $serviceClass = $this->getServiceClass($name);
47
+ if (null !== $serviceClass) {
48
+ if (!\array_key_exists($name, $this->services)) {
49
+ $this->services[$name] = new $serviceClass($this->client);
50
+ }
51
+
52
+ return $this->services[$name];
53
+ }
54
+
55
+ \trigger_error('Undefined property: ' . static::class . '::$' . $name);
56
+
57
+ return null;
58
+ }
59
+ }
lib/stripe-php/lib/Service/AccountLinkService.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class AccountLinkService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Creates an AccountLink object that includes a single-use Stripe URL that the
11
+ * platform can redirect their user to in order to take them through the Connect
12
+ * Onboarding flow.
13
+ *
14
+ * @param null|array $params
15
+ * @param null|array|\Stripe\Util\RequestOptions $opts
16
+ *
17
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
18
+ *
19
+ * @return \Stripe\AccountLink
20
+ */
21
+ public function create($params = null, $opts = null)
22
+ {
23
+ return $this->request('post', '/v1/account_links', $params, $opts);
24
+ }
25
+ }
lib/stripe-php/lib/Service/AccountService.php ADDED
@@ -0,0 +1,381 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class AccountService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of accounts connected to your platform via <a
11
+ * href="/docs/connect">Connect</a>. If you’re not a platform, the list is empty.
12
+ *
13
+ * @param null|array $params
14
+ * @param null|array|\Stripe\Util\RequestOptions $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\Collection
19
+ */
20
+ public function all($params = null, $opts = null)
21
+ {
22
+ return $this->requestCollection('get', '/v1/accounts', $params, $opts);
23
+ }
24
+
25
+ /**
26
+ * Returns a list of capabilities associated with the account. The capabilities are
27
+ * returned sorted by creation date, with the most recent capability appearing
28
+ * first.
29
+ *
30
+ * @param string $parentId
31
+ * @param null|array $params
32
+ * @param null|array|\Stripe\Util\RequestOptions $opts
33
+ *
34
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
35
+ *
36
+ * @return \Stripe\Collection
37
+ */
38
+ public function allCapabilities($parentId, $params = null, $opts = null)
39
+ {
40
+ return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/capabilities', $parentId), $params, $opts);
41
+ }
42
+
43
+ /**
44
+ * List external accounts for an account.
45
+ *
46
+ * @param string $parentId
47
+ * @param null|array $params
48
+ * @param null|array|\Stripe\Util\RequestOptions $opts
49
+ *
50
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
51
+ *
52
+ * @return \Stripe\Collection
53
+ */
54
+ public function allExternalAccounts($parentId, $params = null, $opts = null)
55
+ {
56
+ return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/external_accounts', $parentId), $params, $opts);
57
+ }
58
+
59
+ /**
60
+ * Returns a list of people associated with the account’s legal entity. The people
61
+ * are returned sorted by creation date, with the most recent people appearing
62
+ * first.
63
+ *
64
+ * @param string $parentId
65
+ * @param null|array $params
66
+ * @param null|array|\Stripe\Util\RequestOptions $opts
67
+ *
68
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
69
+ *
70
+ * @return \Stripe\Collection
71
+ */
72
+ public function allPersons($parentId, $params = null, $opts = null)
73
+ {
74
+ return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/persons', $parentId), $params, $opts);
75
+ }
76
+
77
+ /**
78
+ * With <a href="/docs/connect">Connect</a>, you can create Stripe accounts for
79
+ * your users. To do this, you’ll first need to <a
80
+ * href="https://dashboard.stripe.com/account/applications/settings">register your
81
+ * platform</a>.
82
+ *
83
+ * @param null|array $params
84
+ * @param null|array|\Stripe\Util\RequestOptions $opts
85
+ *
86
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
87
+ *
88
+ * @return \Stripe\Account
89
+ */
90
+ public function create($params = null, $opts = null)
91
+ {
92
+ return $this->request('post', '/v1/accounts', $params, $opts);
93
+ }
94
+
95
+ /**
96
+ * Create an external account for a given account.
97
+ *
98
+ * @param string $parentId
99
+ * @param null|array $params
100
+ * @param null|array|\Stripe\Util\RequestOptions $opts
101
+ *
102
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
103
+ *
104
+ * @return \Stripe\BankAccount|\Stripe\Card
105
+ */
106
+ public function createExternalAccount($parentId, $params = null, $opts = null)
107
+ {
108
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/external_accounts', $parentId), $params, $opts);
109
+ }
110
+
111
+ /**
112
+ * Creates a single-use login link for an Express account to access their Stripe
113
+ * dashboard.
114
+ *
115
+ * <strong>You may only create login links for <a
116
+ * href="/docs/connect/express-accounts">Express accounts</a> connected to your
117
+ * platform</strong>.
118
+ *
119
+ * @param string $parentId
120
+ * @param null|array $params
121
+ * @param null|array|\Stripe\Util\RequestOptions $opts
122
+ *
123
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
124
+ *
125
+ * @return \Stripe\LoginLink
126
+ */
127
+ public function createLoginLink($parentId, $params = null, $opts = null)
128
+ {
129
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/login_links', $parentId), $params, $opts);
130
+ }
131
+
132
+ /**
133
+ * Creates a new person.
134
+ *
135
+ * @param string $parentId
136
+ * @param null|array $params
137
+ * @param null|array|\Stripe\Util\RequestOptions $opts
138
+ *
139
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
140
+ *
141
+ * @return \Stripe\Person
142
+ */
143
+ public function createPerson($parentId, $params = null, $opts = null)
144
+ {
145
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/persons', $parentId), $params, $opts);
146
+ }
147
+
148
+ /**
149
+ * With <a href="/docs/connect">Connect</a>, you can delete accounts you manage.
150
+ *
151
+ * Accounts created using test-mode keys can be deleted at any time. Custom or
152
+ * Express accounts created using live-mode keys can only be deleted once all
153
+ * balances are zero.
154
+ *
155
+ * If you want to delete your own account, use the <a
156
+ * href="https://dashboard.stripe.com/account">account information tab in your
157
+ * account settings</a> instead.
158
+ *
159
+ * @param string $id
160
+ * @param null|array $params
161
+ * @param null|array|\Stripe\Util\RequestOptions $opts
162
+ *
163
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
164
+ *
165
+ * @return \Stripe\Account
166
+ */
167
+ public function delete($id, $params = null, $opts = null)
168
+ {
169
+ return $this->request('delete', $this->buildPath('/v1/accounts/%s', $id), $params, $opts);
170
+ }
171
+
172
+ /**
173
+ * Delete a specified external account for a given account.
174
+ *
175
+ * @param string $parentId
176
+ * @param string $id
177
+ * @param null|array $params
178
+ * @param null|array|\Stripe\Util\RequestOptions $opts
179
+ *
180
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
181
+ *
182
+ * @return \Stripe\BankAccount|\Stripe\Card
183
+ */
184
+ public function deleteExternalAccount($parentId, $id, $params = null, $opts = null)
185
+ {
186
+ return $this->request('delete', $this->buildPath('/v1/accounts/%s/external_accounts/%s', $parentId, $id), $params, $opts);
187
+ }
188
+
189
+ /**
190
+ * Deletes an existing person’s relationship to the account’s legal entity. Any
191
+ * person with a relationship for an account can be deleted through the API, except
192
+ * if the person is the <code>account_opener</code>. If your integration is using
193
+ * the <code>executive</code> parameter, you cannot delete the only verified
194
+ * <code>executive</code> on file.
195
+ *
196
+ * @param string $parentId
197
+ * @param string $id
198
+ * @param null|array $params
199
+ * @param null|array|\Stripe\Util\RequestOptions $opts
200
+ *
201
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
202
+ *
203
+ * @return \Stripe\Person
204
+ */
205
+ public function deletePerson($parentId, $id, $params = null, $opts = null)
206
+ {
207
+ return $this->request('delete', $this->buildPath('/v1/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
208
+ }
209
+
210
+ /**
211
+ * With <a href="/docs/connect">Connect</a>, you may flag accounts as suspicious.
212
+ *
213
+ * Test-mode Custom and Express accounts can be rejected at any time. Accounts
214
+ * created using live-mode keys may only be rejected once all balances are zero.
215
+ *
216
+ * @param string $id
217
+ * @param null|array $params
218
+ * @param null|array|\Stripe\Util\RequestOptions $opts
219
+ *
220
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
221
+ *
222
+ * @return \Stripe\Account
223
+ */
224
+ public function reject($id, $params = null, $opts = null)
225
+ {
226
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/reject', $id), $params, $opts);
227
+ }
228
+
229
+ /**
230
+ * Retrieves information about the specified Account Capability.
231
+ *
232
+ * @param string $parentId
233
+ * @param string $id
234
+ * @param null|array $params
235
+ * @param null|array|\Stripe\Util\RequestOptions $opts
236
+ *
237
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
238
+ *
239
+ * @return \Stripe\Capability
240
+ */
241
+ public function retrieveCapability($parentId, $id, $params = null, $opts = null)
242
+ {
243
+ return $this->request('get', $this->buildPath('/v1/accounts/%s/capabilities/%s', $parentId, $id), $params, $opts);
244
+ }
245
+
246
+ /**
247
+ * Retrieve a specified external account for a given account.
248
+ *
249
+ * @param string $parentId
250
+ * @param string $id
251
+ * @param null|array $params
252
+ * @param null|array|\Stripe\Util\RequestOptions $opts
253
+ *
254
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
255
+ *
256
+ * @return \Stripe\BankAccount|\Stripe\Card
257
+ */
258
+ public function retrieveExternalAccount($parentId, $id, $params = null, $opts = null)
259
+ {
260
+ return $this->request('get', $this->buildPath('/v1/accounts/%s/external_accounts/%s', $parentId, $id), $params, $opts);
261
+ }
262
+
263
+ /**
264
+ * Retrieves an existing person.
265
+ *
266
+ * @param string $parentId
267
+ * @param string $id
268
+ * @param null|array $params
269
+ * @param null|array|\Stripe\Util\RequestOptions $opts
270
+ *
271
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
272
+ *
273
+ * @return \Stripe\Person
274
+ */
275
+ public function retrievePerson($parentId, $id, $params = null, $opts = null)
276
+ {
277
+ return $this->request('get', $this->buildPath('/v1/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
278
+ }
279
+
280
+ /**
281
+ * Updates a <a href="/docs/connect/accounts">connected account</a> by setting the
282
+ * values of the parameters passed. Any parameters not provided are left unchanged.
283
+ * Most parameters can be changed only for Custom accounts. (These are marked
284
+ * <strong>Custom Only</strong> below.) Parameters marked <strong>Custom and
285
+ * Express</strong> are not supported for Standard accounts.
286
+ *
287
+ * To update your own account, use the <a
288
+ * href="https://dashboard.stripe.com/account">Dashboard</a>. Refer to our <a
289
+ * href="/docs/connect/updating-accounts">Connect</a> documentation to learn more
290
+ * about updating accounts.
291
+ *
292
+ * @param string $id
293
+ * @param null|array $params
294
+ * @param null|array|\Stripe\Util\RequestOptions $opts
295
+ *
296
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
297
+ *
298
+ * @return \Stripe\Account
299
+ */
300
+ public function update($id, $params = null, $opts = null)
301
+ {
302
+ return $this->request('post', $this->buildPath('/v1/accounts/%s', $id), $params, $opts);
303
+ }
304
+
305
+ /**
306
+ * Updates an existing Account Capability.
307
+ *
308
+ * @param string $parentId
309
+ * @param string $id
310
+ * @param null|array $params
311
+ * @param null|array|\Stripe\Util\RequestOptions $opts
312
+ *
313
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
314
+ *
315
+ * @return \Stripe\Capability
316
+ */
317
+ public function updateCapability($parentId, $id, $params = null, $opts = null)
318
+ {
319
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/capabilities/%s', $parentId, $id), $params, $opts);
320
+ }
321
+
322
+ /**
323
+ * Updates the metadata, account holder name, account holder type of a bank account
324
+ * belonging to a <a href="/docs/connect/custom-accounts">Custom account</a>, and
325
+ * optionally sets it as the default for its currency. Other bank account details
326
+ * are not editable by design.
327
+ *
328
+ * You can re-enable a disabled bank account by performing an update call without
329
+ * providing any arguments or changes.
330
+ *
331
+ * @param string $parentId
332
+ * @param string $id
333
+ * @param null|array $params
334
+ * @param null|array|\Stripe\Util\RequestOptions $opts
335
+ *
336
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
337
+ *
338
+ * @return \Stripe\BankAccount|\Stripe\Card
339
+ */
340
+ public function updateExternalAccount($parentId, $id, $params = null, $opts = null)
341
+ {
342
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/external_accounts/%s', $parentId, $id), $params, $opts);
343
+ }
344
+
345
+ /**
346
+ * Updates an existing person.
347
+ *
348
+ * @param string $parentId
349
+ * @param string $id
350
+ * @param null|array $params
351
+ * @param null|array|\Stripe\Util\RequestOptions $opts
352
+ *
353
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
354
+ *
355
+ * @return \Stripe\Person
356
+ */
357
+ public function updatePerson($parentId, $id, $params = null, $opts = null)
358
+ {
359
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
360
+ }
361
+
362
+ /**
363
+ * Retrieves the details of an account.
364
+ *
365
+ * @param null|string $id
366
+ * @param null|array $params
367
+ * @param null|array|StripeUtilRequestOptions $opts
368
+ *
369
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
370
+ *
371
+ * @return \Stripe\Account
372
+ */
373
+ public function retrieve($id = null, $params = null, $opts = null)
374
+ {
375
+ if (null === $id) {
376
+ return $this->request('get', '/v1/account', $params, $opts);
377
+ }
378
+
379
+ return $this->request('get', $this->buildPath('/v1/accounts/%s', $id), $params, $opts);
380
+ }
381
+ }
lib/stripe-php/lib/Service/ApplePayDomainService.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class ApplePayDomainService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * List apple pay domains.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\Collection
18
+ */
19
+ public function all($params = null, $opts = null)
20
+ {
21
+ return $this->requestCollection('get', '/v1/apple_pay/domains', $params, $opts);
22
+ }
23
+
24
+ /**
25
+ * Create an apple pay domain.
26
+ *
27
+ * @param null|array $params
28
+ * @param null|array|\Stripe\Util\RequestOptions $opts
29
+ *
30
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
31
+ *
32
+ * @return \Stripe\ApplePayDomain
33
+ */
34
+ public function create($params = null, $opts = null)
35
+ {
36
+ return $this->request('post', '/v1/apple_pay/domains', $params, $opts);
37
+ }
38
+
39
+ /**
40
+ * Delete an apple pay domain.
41
+ *
42
+ * @param string $id
43
+ * @param null|array $params
44
+ * @param null|array|\Stripe\Util\RequestOptions $opts
45
+ *
46
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
47
+ *
48
+ * @return \Stripe\ApplePayDomain
49
+ */
50
+ public function delete($id, $params = null, $opts = null)
51
+ {
52
+ return $this->request('delete', $this->buildPath('/v1/apple_pay/domains/%s', $id), $params, $opts);
53
+ }
54
+
55
+ /**
56
+ * Retrieve an apple pay domain.
57
+ *
58
+ * @param string $id
59
+ * @param null|array $params
60
+ * @param null|array|\Stripe\Util\RequestOptions $opts
61
+ *
62
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
63
+ *
64
+ * @return \Stripe\ApplePayDomain
65
+ */
66
+ public function retrieve($id, $params = null, $opts = null)
67
+ {
68
+ return $this->request('get', $this->buildPath('/v1/apple_pay/domains/%s', $id), $params, $opts);
69
+ }
70
+ }
lib/stripe-php/lib/Service/ApplicationFeeService.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class ApplicationFeeService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of application fees you’ve previously collected. The application
11
+ * fees are returned in sorted order, with the most recent fees appearing first.
12
+ *
13
+ * @param null|array $params
14
+ * @param null|array|\Stripe\Util\RequestOptions $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\Collection
19
+ */
20
+ public function all($params = null, $opts = null)
21
+ {
22
+ return $this->requestCollection('get', '/v1/application_fees', $params, $opts);
23
+ }
24
+
25
+ /**
26
+ * You can see a list of the refunds belonging to a specific application fee. Note
27
+ * that the 10 most recent refunds are always available by default on the
28
+ * application fee object. If you need more than those 10, you can use this API
29
+ * method and the <code>limit</code> and <code>starting_after</code> parameters to
30
+ * page through additional refunds.
31
+ *
32
+ * @param string $parentId
33
+ * @param null|array $params
34
+ * @param null|array|\Stripe\Util\RequestOptions $opts
35
+ *
36
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
37
+ *
38
+ * @return \Stripe\Collection
39
+ */
40
+ public function allRefunds($parentId, $params = null, $opts = null)
41
+ {
42
+ return $this->requestCollection('get', $this->buildPath('/v1/application_fees/%s/refunds', $parentId), $params, $opts);
43
+ }
44
+
45
+ /**
46
+ * Refunds an application fee that has previously been collected but not yet
47
+ * refunded. Funds will be refunded to the Stripe account from which the fee was
48
+ * originally collected.
49
+ *
50
+ * You can optionally refund only part of an application fee. You can do so
51
+ * multiple times, until the entire fee has been refunded.
52
+ *
53
+ * Once entirely refunded, an application fee can’t be refunded again. This method
54
+ * will raise an error when called on an already-refunded application fee, or when
55
+ * trying to refund more money than is left on an application fee.
56
+ *
57
+ * @param string $parentId
58
+ * @param null|array $params
59
+ * @param null|array|\Stripe\Util\RequestOptions $opts
60
+ *
61
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
62
+ *
63
+ * @return \Stripe\ApplicationFeeRefund
64
+ */
65
+ public function createRefund($parentId, $params = null, $opts = null)
66
+ {
67
+ return $this->request('post', $this->buildPath('/v1/application_fees/%s/refunds', $parentId), $params, $opts);
68
+ }
69
+
70
+ /**
71
+ * Retrieves the details of an application fee that your account has collected. The
72
+ * same information is returned when refunding the application fee.
73
+ *
74
+ * @param string $id
75
+ * @param null|array $params
76
+ * @param null|array|\Stripe\Util\RequestOptions $opts
77
+ *
78
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
79
+ *
80
+ * @return \Stripe\ApplicationFee
81
+ */
82
+ public function retrieve($id, $params = null, $opts = null)
83
+ {
84
+ return $this->request('get', $this->buildPath('/v1/application_fees/%s', $id), $params, $opts);
85
+ }
86
+
87
+ /**
88
+ * By default, you can see the 10 most recent refunds stored directly on the
89
+ * application fee object, but you can also retrieve details about a specific
90
+ * refund stored on the application fee.
91
+ *
92
+ * @param string $parentId
93
+ * @param string $id
94
+ * @param null|array $params
95
+ * @param null|array|\Stripe\Util\RequestOptions $opts
96
+ *
97
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
98
+ *
99
+ * @return \Stripe\ApplicationFeeRefund
100
+ */
101
+ public function retrieveRefund($parentId, $id, $params = null, $opts = null)
102
+ {
103
+ return $this->request('get', $this->buildPath('/v1/application_fees/%s/refunds/%s', $parentId, $id), $params, $opts);
104
+ }
105
+
106
+ /**
107
+ * Updates the specified application fee refund by setting the values of the
108
+ * parameters passed. Any parameters not provided will be left unchanged.
109
+ *
110
+ * This request only accepts metadata as an argument.
111
+ *
112
+ * @param string $parentId
113
+ * @param string $id
114
+ * @param null|array $params
115
+ * @param null|array|\Stripe\Util\RequestOptions $opts
116
+ *
117
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
118
+ *
119
+ * @return \Stripe\ApplicationFeeRefund
120
+ */
121
+ public function updateRefund($parentId, $id, $params = null, $opts = null)
122
+ {
123
+ return $this->request('post', $this->buildPath('/v1/application_fees/%s/refunds/%s', $parentId, $id), $params, $opts);
124
+ }
125
+ }
lib/stripe-php/lib/Service/BalanceService.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class BalanceService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Retrieves the current account balance, based on the authentication that was used
11
+ * to make the request. For a sample request, see <a
12
+ * href="/docs/connect/account-balances#accounting-for-negative-balances">Accounting
13
+ * for negative balances</a>.
14
+ *
15
+ * @param null|array $params
16
+ * @param null|array|\Stripe\Util\RequestOptions $opts
17
+ *
18
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
19
+ *
20
+ * @return \Stripe\Balance
21
+ */
22
+ public function retrieve($params = null, $opts = null)
23
+ {
24
+ return $this->request('get', '/v1/balance', $params, $opts);
25
+ }
26
+ }
lib/stripe-php/lib/Service/BalanceTransactionService.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class BalanceTransactionService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of transactions that have contributed to the Stripe account
11
+ * balance (e.g., charges, transfers, and so forth). The transactions are returned
12
+ * in sorted order, with the most recent transactions appearing first.
13
+ *
14
+ * Note that this endpoint was previously called “Balance history” and used the
15
+ * path <code>/v1/balance/history</code>.
16
+ *
17
+ * @param null|array $params
18
+ * @param null|array|\Stripe\Util\RequestOptions $opts
19
+ *
20
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
21
+ *
22
+ * @return \Stripe\Collection
23
+ */
24
+ public function all($params = null, $opts = null)
25
+ {
26
+ return $this->requestCollection('get', '/v1/balance_transactions', $params, $opts);
27
+ }
28
+
29
+ /**
30
+ * Retrieves the balance transaction with the given ID.
31
+ *
32
+ * Note that this endpoint previously used the path
33
+ * <code>/v1/balance/history/:id</code>.
34
+ *
35
+ * @param string $id
36
+ * @param null|array $params
37
+ * @param null|array|\Stripe\Util\RequestOptions $opts
38
+ *
39
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
40
+ *
41
+ * @return \Stripe\BalanceTransaction
42
+ */
43
+ public function retrieve($id, $params = null, $opts = null)
44
+ {
45
+ return $this->request('get', $this->buildPath('/v1/balance_transactions/%s', $id), $params, $opts);
46
+ }
47
+ }
lib/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\BillingPortal;
6
+
7
+ /**
8
+ * Service factory class for API resources in the BillingPortal namespace.
9
+ *
10
+ * @property ConfigurationService $configurations
11
+ * @property SessionService $sessions
12
+ */
13
+ class BillingPortalServiceFactory extends \Stripe\Service\AbstractServiceFactory
14
+ {
15
+ /**
16
+ * @var array<string, string>
17
+ */
18
+ private static $classMap = [
19
+ 'configurations' => ConfigurationService::class,
20
+ 'sessions' => SessionService::class,
21
+ ];
22
+
23
+ protected function getServiceClass($name)
24
+ {
25
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
26
+ }
27
+ }
lib/stripe-php/lib/Service/BillingPortal/ConfigurationService.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\BillingPortal;
6
+
7
+ class ConfigurationService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of configurations that describe the functionality of the customer
11
+ * portal.
12
+ *
13
+ * @param null|array $params
14
+ * @param null|array|\Stripe\Util\RequestOptions $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\Collection
19
+ */
20
+ public function all($params = null, $opts = null)
21
+ {
22
+ return $this->requestCollection('get', '/v1/billing_portal/configurations', $params, $opts);
23
+ }
24
+
25
+ /**
26
+ * Creates a configuration that describes the functionality and behavior of a
27
+ * PortalSession.
28
+ *
29
+ * @param null|array $params
30
+ * @param null|array|\Stripe\Util\RequestOptions $opts
31
+ *
32
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
33
+ *
34
+ * @return \Stripe\BillingPortal\Configuration
35
+ */
36
+ public function create($params = null, $opts = null)
37
+ {
38
+ return $this->request('post', '/v1/billing_portal/configurations', $params, $opts);
39
+ }
40
+
41
+ /**
42
+ * Retrieves a configuration that describes the functionality of the customer
43
+ * portal.
44
+ *
45
+ * @param string $id
46
+ * @param null|array $params
47
+ * @param null|array|\Stripe\Util\RequestOptions $opts
48
+ *
49
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
50
+ *
51
+ * @return \Stripe\BillingPortal\Configuration
52
+ */
53
+ public function retrieve($id, $params = null, $opts = null)
54
+ {
55
+ return $this->request('get', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts);
56
+ }
57
+
58
+ /**
59
+ * Updates a configuration that describes the functionality of the customer portal.
60
+ *
61
+ * @param string $id
62
+ * @param null|array $params
63
+ * @param null|array|\Stripe\Util\RequestOptions $opts
64
+ *
65
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
66
+ *
67
+ * @return \Stripe\BillingPortal\Configuration
68
+ */
69
+ public function update($id, $params = null, $opts = null)
70
+ {
71
+ return $this->request('post', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts);
72
+ }
73
+ }
lib/stripe-php/lib/Service/BillingPortal/SessionService.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\BillingPortal;
6
+
7
+ class SessionService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Creates a session of the customer portal.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\BillingPortal\Session
18
+ */
19
+ public function create($params = null, $opts = null)
20
+ {
21
+ return $this->request('post', '/v1/billing_portal/sessions', $params, $opts);
22
+ }
23
+ }
lib/stripe-php/lib/Service/ChargeService.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class ChargeService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of charges you’ve previously created. The charges are returned in
11
+ * sorted order, with the most recent charges appearing first.
12
+ *
13
+ * @param null|array $params
14
+ * @param null|array|\Stripe\Util\RequestOptions $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\Collection
19
+ */
20
+ public function all($params = null, $opts = null)
21
+ {
22
+ return $this->requestCollection('get', '/v1/charges', $params, $opts);
23
+ }
24
+
25
+ /**
26
+ * Capture the payment of an existing, uncaptured, charge. This is the second half
27
+ * of the two-step payment flow, where first you <a href="#create_charge">created a
28
+ * charge</a> with the capture option set to false.
29
+ *
30
+ * Uncaptured payments expire exactly seven days after they are created. If they
31
+ * are not captured by that point in time, they will be marked as refunded and will
32
+ * no longer be capturable.
33
+ *
34
+ * @param string $id
35
+ * @param null|array $params
36
+ * @param null|array|\Stripe\Util\RequestOptions $opts
37
+ *
38
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
39
+ *
40
+ * @return \Stripe\Charge
41
+ */
42
+ public function capture($id, $params = null, $opts = null)
43
+ {
44
+ return $this->request('post', $this->buildPath('/v1/charges/%s/capture', $id), $params, $opts);
45
+ }
46
+
47
+ /**
48
+ * To charge a credit card or other payment source, you create a
49
+ * <code>Charge</code> object. If your API key is in test mode, the supplied
50
+ * payment source (e.g., card) won’t actually be charged, although everything else
51
+ * will occur as if in live mode. (Stripe assumes that the charge would have
52
+ * completed successfully).
53
+ *
54
+ * @param null|array $params
55
+ * @param null|array|\Stripe\Util\RequestOptions $opts
56
+ *
57
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
58
+ *
59
+ * @return \Stripe\Charge
60
+ */
61
+ public function create($params = null, $opts = null)
62
+ {
63
+ return $this->request('post', '/v1/charges', $params, $opts);
64
+ }
65
+
66
+ /**
67
+ * Retrieves the details of a charge that has previously been created. Supply the
68
+ * unique charge ID that was returned from your previous request, and Stripe will
69
+ * return the corresponding charge information. The same information is returned
70
+ * when creating or refunding the charge.
71
+ *
72
+ * @param string $id
73
+ * @param null|array $params
74
+ * @param null|array|\Stripe\Util\RequestOptions $opts
75
+ *
76
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
77
+ *
78
+ * @return \Stripe\Charge
79
+ */
80
+ public function retrieve($id, $params = null, $opts = null)
81
+ {
82
+ return $this->request('get', $this->buildPath('/v1/charges/%s', $id), $params, $opts);
83
+ }
84
+
85
+ /**
86
+ * Updates the specified charge by setting the values of the parameters passed. Any
87
+ * parameters not provided will be left unchanged.
88
+ *
89
+ * @param string $id
90
+ * @param null|array $params
91
+ * @param null|array|\Stripe\Util\RequestOptions $opts
92
+ *
93
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
94
+ *
95
+ * @return \Stripe\Charge
96
+ */
97
+ public function update($id, $params = null, $opts = null)
98
+ {
99
+ return $this->request('post', $this->buildPath('/v1/charges/%s', $id), $params, $opts);
100
+ }
101
+ }
lib/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Checkout;
6
+
7
+ /**
8
+ * Service factory class for API resources in the Checkout namespace.
9
+ *
10
+ * @property SessionService $sessions
11
+ */
12
+ class CheckoutServiceFactory extends \Stripe\Service\AbstractServiceFactory
13
+ {
14
+ /**
15
+ * @var array<string, string>
16
+ */
17
+ private static $classMap = [
18
+ 'sessions' => SessionService::class,
19
+ ];
20
+
21
+ protected function getServiceClass($name)
22
+ {
23
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
24
+ }
25
+ }
lib/stripe-php/lib/Service/Checkout/SessionService.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Checkout;
6
+
7
+ class SessionService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of Checkout Sessions.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\Collection
18
+ */
19
+ public function all($params = null, $opts = null)
20
+ {
21
+ return $this->requestCollection('get', '/v1/checkout/sessions', $params, $opts);
22
+ }
23
+
24
+ /**
25
+ * When retrieving a Checkout Session, there is an includable
26
+ * <strong>line_items</strong> property containing the first handful of those
27
+ * items. There is also a URL where you can retrieve the full (paginated) list of
28
+ * line items.
29
+ *
30
+ * @param string $parentId
31
+ * @param null|array $params
32
+ * @param null|array|\Stripe\Util\RequestOptions $opts
33
+ *
34
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
35
+ *
36
+ * @return \Stripe\Collection
37
+ */
38
+ public function allLineItems($parentId, $params = null, $opts = null)
39
+ {
40
+ return $this->requestCollection('get', $this->buildPath('/v1/checkout/sessions/%s/line_items', $parentId), $params, $opts);
41
+ }
42
+
43
+ /**
44
+ * Creates a Session object.
45
+ *
46
+ * @param null|array $params
47
+ * @param null|array|\Stripe\Util\RequestOptions $opts
48
+ *
49
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
50
+ *
51
+ * @return \Stripe\Checkout\Session
52
+ */
53
+ public function create($params = null, $opts = null)
54
+ {
55
+ return $this->request('post', '/v1/checkout/sessions', $params, $opts);
56
+ }
57
+
58
+ /**
59
+ * Retrieves a Session object.
60
+ *
61
+ * @param string $id
62
+ * @param null|array $params
63
+ * @param null|array|\Stripe\Util\RequestOptions $opts
64
+ *
65
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
66
+ *
67
+ * @return \Stripe\Checkout\Session
68
+ */
69
+ public function retrieve($id, $params = null, $opts = null)
70
+ {
71
+ return $this->request('get', $this->buildPath('/v1/checkout/sessions/%s', $id), $params, $opts);
72
+ }
73
+ }
lib/stripe-php/lib/Service/CoreServiceFactory.php ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ /**
8
+ * Service factory class for API resources in the root namespace.
9
+ *
10
+ * @property AccountLinkService $accountLinks
11
+ * @property AccountService $accounts
12
+ * @property ApplePayDomainService $applePayDomains
13
+ * @property ApplicationFeeService $applicationFees
14
+ * @property BalanceService $balance
15
+ * @property BalanceTransactionService $balanceTransactions
16
+ * @property BillingPortal\BillingPortalServiceFactory $billingPortal
17
+ * @property ChargeService $charges
18
+ * @property Checkout\CheckoutServiceFactory $checkout
19
+ * @property CountrySpecService $countrySpecs
20
+ * @property CouponService $coupons
21
+ * @property CreditNoteService $creditNotes
22
+ * @property CustomerService $customers
23
+ * @property DisputeService $disputes
24
+ * @property EphemeralKeyService $ephemeralKeys
25
+ * @property EventService $events
26
+ * @property ExchangeRateService $exchangeRates
27
+ * @property FileLinkService $fileLinks
28
+ * @property FileService $files
29
+ * @property Identity\IdentityServiceFactory $identity
30
+ * @property InvoiceItemService $invoiceItems
31
+ * @property InvoiceService $invoices
32
+ * @property Issuing\IssuingServiceFactory $issuing
33
+ * @property MandateService $mandates
34
+ * @property OAuthService $oauth
35
+ * @property OrderReturnService $orderReturns
36
+ * @property OrderService $orders
37
+ * @property PaymentIntentService $paymentIntents
38
+ * @property PaymentMethodService $paymentMethods
39
+ * @property PayoutService $payouts
40
+ * @property PlanService $plans
41
+ * @property PriceService $prices
42
+ * @property ProductService $products
43
+ * @property PromotionCodeService $promotionCodes
44
+ * @property QuoteService $quotes
45
+ * @property Radar\RadarServiceFactory $radar
46
+ * @property RefundService $refunds
47
+ * @property Reporting\ReportingServiceFactory $reporting
48
+ * @property ReviewService $reviews
49
+ * @property SetupAttemptService $setupAttempts
50
+ * @property SetupIntentService $setupIntents
51
+ * @property Sigma\SigmaServiceFactory $sigma
52
+ * @property SkuService $skus
53
+ * @property SourceService $sources
54
+ * @property SubscriptionItemService $subscriptionItems
55
+ * @property SubscriptionService $subscriptions
56
+ * @property SubscriptionScheduleService $subscriptionSchedules
57
+ * @property TaxCodeService $taxCodes
58
+ * @property TaxRateService $taxRates
59
+ * @property Terminal\TerminalServiceFactory $terminal
60
+ * @property TokenService $tokens
61
+ * @property TopupService $topups
62
+ * @property TransferService $transfers
63
+ * @property WebhookEndpointService $webhookEndpoints
64
+ */
65
+ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
66
+ {
67
+ /**
68
+ * @var array<string, string>
69
+ */
70
+ private static $classMap = [
71
+ 'accountLinks' => AccountLinkService::class,
72
+ 'accounts' => AccountService::class,
73
+ 'applePayDomains' => ApplePayDomainService::class,
74
+ 'applicationFees' => ApplicationFeeService::class,
75
+ 'balance' => BalanceService::class,
76
+ 'balanceTransactions' => BalanceTransactionService::class,
77
+ 'billingPortal' => BillingPortal\BillingPortalServiceFactory::class,
78
+ 'charges' => ChargeService::class,
79
+ 'checkout' => Checkout\CheckoutServiceFactory::class,
80
+ 'countrySpecs' => CountrySpecService::class,
81
+ 'coupons' => CouponService::class,
82
+ 'creditNotes' => CreditNoteService::class,
83
+ 'customers' => CustomerService::class,
84
+ 'disputes' => DisputeService::class,
85
+ 'ephemeralKeys' => EphemeralKeyService::class,
86
+ 'events' => EventService::class,
87
+ 'exchangeRates' => ExchangeRateService::class,
88
+ 'fileLinks' => FileLinkService::class,
89
+ 'files' => FileService::class,
90
+ 'identity' => Identity\IdentityServiceFactory::class,
91
+ 'invoiceItems' => InvoiceItemService::class,
92
+ 'invoices' => InvoiceService::class,
93
+ 'issuing' => Issuing\IssuingServiceFactory::class,
94
+ 'mandates' => MandateService::class,
95
+ 'oauth' => OAuthService::class,
96
+ 'orderReturns' => OrderReturnService::class,
97
+ 'orders' => OrderService::class,
98
+ 'paymentIntents' => PaymentIntentService::class,
99
+ 'paymentMethods' => PaymentMethodService::class,
100
+ 'payouts' => PayoutService::class,
101
+ 'plans' => PlanService::class,
102
+ 'prices' => PriceService::class,
103
+ 'products' => ProductService::class,
104
+ 'promotionCodes' => PromotionCodeService::class,
105
+ 'quotes' => QuoteService::class,
106
+ 'radar' => Radar\RadarServiceFactory::class,
107
+ 'refunds' => RefundService::class,
108
+ 'reporting' => Reporting\ReportingServiceFactory::class,
109
+ 'reviews' => ReviewService::class,
110
+ 'setupAttempts' => SetupAttemptService::class,
111
+ 'setupIntents' => SetupIntentService::class,
112
+ 'sigma' => Sigma\SigmaServiceFactory::class,
113
+ 'skus' => SkuService::class,
114
+ 'sources' => SourceService::class,
115
+ 'subscriptionItems' => SubscriptionItemService::class,
116
+ 'subscriptions' => SubscriptionService::class,
117
+ 'subscriptionSchedules' => SubscriptionScheduleService::class,
118
+ 'taxCodes' => TaxCodeService::class,
119
+ 'taxRates' => TaxRateService::class,
120
+ 'terminal' => Terminal\TerminalServiceFactory::class,
121
+ 'tokens' => TokenService::class,
122
+ 'topups' => TopupService::class,
123
+ 'transfers' => TransferService::class,
124
+ 'webhookEndpoints' => WebhookEndpointService::class,
125
+ ];
126
+
127
+ protected function getServiceClass($name)
128
+ {
129
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
130
+ }
131
+ }
lib/stripe-php/lib/Service/CountrySpecService.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class CountrySpecService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Lists all Country Spec objects available in the API.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\Collection
18
+ */
19
+ public function all($params = null, $opts = null)
20
+ {
21
+ return $this->requestCollection('get', '/v1/country_specs', $params, $opts);
22
+ }
23
+
24
+ /**
25
+ * Returns a Country Spec for a given Country code.
26
+ *
27
+ * @param string $id
28
+ * @param null|array $params
29
+ * @param null|array|\Stripe\Util\RequestOptions $opts
30
+ *
31
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
32
+ *
33
+ * @return \Stripe\CountrySpec
34
+ */
35
+ public function retrieve($id, $params = null, $opts = null)
36
+ {
37
+ return $this->request('get', $this->buildPath('/v1/country_specs/%s', $id), $params, $opts);
38
+ }
39
+ }
lib/stripe-php/lib/Service/CouponService.php ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class CouponService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of your coupons.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\Collection
18
+ */
19
+ public function all($params = null, $opts = null)
20
+ {
21
+ return $this->requestCollection('get', '/v1/coupons', $params, $opts);
22
+ }
23
+
24
+ /**
25
+ * You can create coupons easily via the <a
26
+ * href="https://dashboard.stripe.com/coupons">coupon management</a> page of the
27
+ * Stripe dashboard. Coupon creation is also accessible via the API if you need to
28
+ * create coupons on the fly.
29
+ *
30
+ * A coupon has either a <code>percent_off</code> or an <code>amount_off</code> and
31
+ * <code>currency</code>. If you set an <code>amount_off</code>, that amount will
32
+ * be subtracted from any invoice’s subtotal. For example, an invoice with a
33
+ * subtotal of <currency>100</currency> will have a final total of
34
+ * <currency>0</currency> if a coupon with an <code>amount_off</code> of
35
+ * <amount>200</amount> is applied to it and an invoice with a subtotal of
36
+ * <currency>300</currency> will have a final total of <currency>100</currency> if
37
+ * a coupon with an <code>amount_off</code> of <amount>200</amount> is applied to
38
+ * it.
39
+ *
40
+ * @param null|array $params
41
+ * @param null|array|\Stripe\Util\RequestOptions $opts
42
+ *
43
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
44
+ *
45
+ * @return \Stripe\Coupon
46
+ */
47
+ public function create($params = null, $opts = null)
48
+ {
49
+ return $this->request('post', '/v1/coupons', $params, $opts);
50
+ }
51
+
52
+ /**
53
+ * You can delete coupons via the <a
54
+ * href="https://dashboard.stripe.com/coupons">coupon management</a> page of the
55
+ * Stripe dashboard. However, deleting a coupon does not affect any customers who
56
+ * have already applied the coupon; it means that new customers can’t redeem the
57
+ * coupon. You can also delete coupons via the API.
58
+ *
59
+ * @param string $id
60
+ * @param null|array $params
61
+ * @param null|array|\Stripe\Util\RequestOptions $opts
62
+ *
63
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
64
+ *
65
+ * @return \Stripe\Coupon
66
+ */
67
+ public function delete($id, $params = null, $opts = null)
68
+ {
69
+ return $this->request('delete', $this->buildPath('/v1/coupons/%s', $id), $params, $opts);
70
+ }
71
+
72
+ /**
73
+ * Retrieves the coupon with the given ID.
74
+ *
75
+ * @param string $id
76
+ * @param null|array $params
77
+ * @param null|array|\Stripe\Util\RequestOptions $opts
78
+ *
79
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
80
+ *
81
+ * @return \Stripe\Coupon
82
+ */
83
+ public function retrieve($id, $params = null, $opts = null)
84
+ {
85
+ return $this->request('get', $this->buildPath('/v1/coupons/%s', $id), $params, $opts);
86
+ }
87
+
88
+ /**
89
+ * Updates the metadata of a coupon. Other coupon details (currency, duration,
90
+ * amount_off) are, by design, not editable.
91
+ *
92
+ * @param string $id
93
+ * @param null|array $params
94
+ * @param null|array|\Stripe\Util\RequestOptions $opts
95
+ *
96
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
97
+ *
98
+ * @return \Stripe\Coupon
99
+ */
100
+ public function update($id, $params = null, $opts = null)
101
+ {
102
+ return $this->request('post', $this->buildPath('/v1/coupons/%s', $id), $params, $opts);
103
+ }
104
+ }
lib/stripe-php/lib/Service/CreditNoteService.php ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class CreditNoteService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of credit notes.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\Collection
18
+ */
19
+ public function all($params = null, $opts = null)
20
+ {
21
+ return $this->requestCollection('get', '/v1/credit_notes', $params, $opts);
22
+ }
23
+
24
+ /**
25
+ * When retrieving a credit note, you’ll get a <strong>lines</strong> property
26
+ * containing the the first handful of those items. There is also a URL where you
27
+ * can retrieve the full (paginated) list of line items.
28
+ *
29
+ * @param string $parentId
30
+ * @param null|array $params
31
+ * @param null|array|\Stripe\Util\RequestOptions $opts
32
+ *
33
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
34
+ *
35
+ * @return \Stripe\Collection
36
+ */
37
+ public function allLines($parentId, $params = null, $opts = null)
38
+ {
39
+ return $this->requestCollection('get', $this->buildPath('/v1/credit_notes/%s/lines', $parentId), $params, $opts);
40
+ }
41
+
42
+ /**
43
+ * Issue a credit note to adjust the amount of a finalized invoice. For a
44
+ * <code>status=open</code> invoice, a credit note reduces its
45
+ * <code>amount_due</code>. For a <code>status=paid</code> invoice, a credit note
46
+ * does not affect its <code>amount_due</code>. Instead, it can result in any
47
+ * combination of the following:.
48
+ *
49
+ * <ul> <li>Refund: create a new refund (using <code>refund_amount</code>) or link
50
+ * an existing refund (using <code>refund</code>).</li> <li>Customer balance
51
+ * credit: credit the customer’s balance (using <code>credit_amount</code>) which
52
+ * will be automatically applied to their next invoice when it’s finalized.</li>
53
+ * <li>Outside of Stripe credit: record the amount that is or will be credited
54
+ * outside of Stripe (using <code>out_of_band_amount</code>).</li> </ul>
55
+ *
56
+ * For post-payment credit notes the sum of the refund, credit and outside of
57
+ * Stripe amounts must equal the credit note total.
58
+ *
59
+ * You may issue multiple credit notes for an invoice. Each credit note will
60
+ * increment the invoice’s <code>pre_payment_credit_notes_amount</code> or
61
+ * <code>post_payment_credit_notes_amount</code> depending on its
62
+ * <code>status</code> at the time of credit note creation.
63
+ *
64
+ * @param null|array $params
65
+ * @param null|array|\Stripe\Util\RequestOptions $opts
66
+ *
67
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
68
+ *
69
+ * @return \Stripe\CreditNote
70
+ */
71
+ public function create($params = null, $opts = null)
72
+ {
73
+ return $this->request('post', '/v1/credit_notes', $params, $opts);
74
+ }
75
+
76
+ /**
77
+ * Get a preview of a credit note without creating it.
78
+ *
79
+ * @param null|array $params
80
+ * @param null|array|\Stripe\Util\RequestOptions $opts
81
+ *
82
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
83
+ *
84
+ * @return \Stripe\CreditNote
85
+ */
86
+ public function preview($params = null, $opts = null)
87
+ {
88
+ return $this->request('get', '/v1/credit_notes/preview', $params, $opts);
89
+ }
90
+
91
+ /**
92
+ * When retrieving a credit note preview, you’ll get a <strong>lines</strong>
93
+ * property containing the first handful of those items. This URL you can retrieve
94
+ * the full (paginated) list of line items.
95
+ *
96
+ * @param null|array $params
97
+ * @param null|array|\Stripe\Util\RequestOptions $opts
98
+ *
99
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
100
+ *
101
+ * @return \Stripe\Collection
102
+ */
103
+ public function previewLines($params = null, $opts = null)
104
+ {
105
+ return $this->requestCollection('get', '/v1/credit_notes/preview/lines', $params, $opts);
106
+ }
107
+
108
+ /**
109
+ * Retrieves the credit note object with the given identifier.
110
+ *
111
+ * @param string $id
112
+ * @param null|array $params
113
+ * @param null|array|\Stripe\Util\RequestOptions $opts
114
+ *
115
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
116
+ *
117
+ * @return \Stripe\CreditNote
118
+ */
119
+ public function retrieve($id, $params = null, $opts = null)
120
+ {
121
+ return $this->request('get', $this->buildPath('/v1/credit_notes/%s', $id), $params, $opts);
122
+ }
123
+
124
+ /**
125
+ * Updates an existing credit note.
126
+ *
127
+ * @param string $id
128
+ * @param null|array $params
129
+ * @param null|array|\Stripe\Util\RequestOptions $opts
130
+ *
131
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
132
+ *
133
+ * @return \Stripe\CreditNote
134
+ */
135
+ public function update($id, $params = null, $opts = null)
136
+ {
137
+ return $this->request('post', $this->buildPath('/v1/credit_notes/%s', $id), $params, $opts);
138
+ }
139
+
140
+ /**
141
+ * Marks a credit note as void. Learn more about <a
142
+ * href="/docs/billing/invoices/credit-notes#voiding">voiding credit notes</a>.
143
+ *
144
+ * @param string $id
145
+ * @param null|array $params
146
+ * @param null|array|\Stripe\Util\RequestOptions $opts
147
+ *
148
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
149
+ *
150
+ * @return \Stripe\CreditNote
151
+ */
152
+ public function voidCreditNote($id, $params = null, $opts = null)
153
+ {
154
+ return $this->request('post', $this->buildPath('/v1/credit_notes/%s/void', $id), $params, $opts);
155
+ }
156
+ }
lib/stripe-php/lib/Service/CustomerService.php ADDED
@@ -0,0 +1,369 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class CustomerService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of your customers. The customers are returned sorted by creation
11
+ * date, with the most recent customers appearing first.
12
+ *
13
+ * @param null|array $params
14
+ * @param null|array|\Stripe\Util\RequestOptions $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\Collection
19
+ */
20
+ public function all($params = null, $opts = null)
21
+ {
22
+ return $this->requestCollection('get', '/v1/customers', $params, $opts);
23
+ }
24
+
25
+ /**
26
+ * Returns a list of transactions that updated the customer’s <a
27
+ * href="/docs/billing/customer/balance">balances</a>.
28
+ *
29
+ * @param string $parentId
30
+ * @param null|array $params
31
+ * @param null|array|\Stripe\Util\RequestOptions $opts
32
+ *
33
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
34
+ *
35
+ * @return \Stripe\Collection
36
+ */
37
+ public function allBalanceTransactions($parentId, $params = null, $opts = null)
38
+ {
39
+ return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/balance_transactions', $parentId), $params, $opts);
40
+ }
41
+
42
+ /**
43
+ * Returns a list of PaymentMethods for a given Customer.
44
+ *
45
+ * @param string $id
46
+ * @param null|array $params
47
+ * @param null|array|\Stripe\Util\RequestOptions $opts
48
+ *
49
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
50
+ *
51
+ * @return \Stripe\Collection
52
+ */
53
+ public function allPaymentMethods($id, $params = null, $opts = null)
54
+ {
55
+ return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/payment_methods', $id), $params, $opts);
56
+ }
57
+
58
+ /**
59
+ * List sources for a specified customer.
60
+ *
61
+ * @param string $parentId
62
+ * @param null|array $params
63
+ * @param null|array|\Stripe\Util\RequestOptions $opts
64
+ *
65
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
66
+ *
67
+ * @return \Stripe\Collection
68
+ */
69
+ public function allSources($parentId, $params = null, $opts = null)
70
+ {
71
+ return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/sources', $parentId), $params, $opts);
72
+ }
73
+
74
+ /**
75
+ * Returns a list of tax IDs for a customer.
76
+ *
77
+ * @param string $parentId
78
+ * @param null|array $params
79
+ * @param null|array|\Stripe\Util\RequestOptions $opts
80
+ *
81
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
82
+ *
83
+ * @return \Stripe\Collection
84
+ */
85
+ public function allTaxIds($parentId, $params = null, $opts = null)
86
+ {
87
+ return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/tax_ids', $parentId), $params, $opts);
88
+ }
89
+
90
+ /**
91
+ * Creates a new customer object.
92
+ *
93
+ * @param null|array $params
94
+ * @param null|array|\Stripe\Util\RequestOptions $opts
95
+ *
96
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
97
+ *
98
+ * @return \Stripe\Customer
99
+ */
100
+ public function create($params = null, $opts = null)
101
+ {
102
+ return $this->request('post', '/v1/customers', $params, $opts);
103
+ }
104
+
105
+ /**
106
+ * Creates an immutable transaction that updates the customer’s credit <a
107
+ * href="/docs/billing/customer/balance">balance</a>.
108
+ *
109
+ * @param string $parentId
110
+ * @param null|array $params
111
+ * @param null|array|\Stripe\Util\RequestOptions $opts
112
+ *
113
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
114
+ *
115
+ * @return \Stripe\CustomerBalanceTransaction
116
+ */
117
+ public function createBalanceTransaction($parentId, $params = null, $opts = null)
118
+ {
119
+ return $this->request('post', $this->buildPath('/v1/customers/%s/balance_transactions', $parentId), $params, $opts);
120
+ }
121
+
122
+ /**
123
+ * When you create a new credit card, you must specify a customer or recipient on
124
+ * which to create it.
125
+ *
126
+ * If the card’s owner has no default card, then the new card will become the
127
+ * default. However, if the owner already has a default, then it will not change.
128
+ * To change the default, you should <a href="/docs/api#update_customer">update the
129
+ * customer</a> to have a new <code>default_source</code>.
130
+ *
131
+ * @param string $parentId
132
+ * @param null|array $params
133
+ * @param null|array|\Stripe\Util\RequestOptions $opts
134
+ *
135
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
136
+ *
137
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
138
+ */
139
+ public function createSource($parentId, $params = null, $opts = null)
140
+ {
141
+ return $this->request('post', $this->buildPath('/v1/customers/%s/sources', $parentId), $params, $opts);
142
+ }
143
+
144
+ /**
145
+ * Creates a new <code>TaxID</code> object for a customer.
146
+ *
147
+ * @param string $parentId
148
+ * @param null|array $params
149
+ * @param null|array|\Stripe\Util\RequestOptions $opts
150
+ *
151
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
152
+ *
153
+ * @return \Stripe\TaxId
154
+ */
155
+ public function createTaxId($parentId, $params = null, $opts = null)
156
+ {
157
+ return $this->request('post', $this->buildPath('/v1/customers/%s/tax_ids', $parentId), $params, $opts);
158
+ }
159
+
160
+ /**
161
+ * Permanently deletes a customer. It cannot be undone. Also immediately cancels
162
+ * any active subscriptions on the customer.
163
+ *
164
+ * @param string $id
165
+ * @param null|array $params
166
+ * @param null|array|\Stripe\Util\RequestOptions $opts
167
+ *
168
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
169
+ *
170
+ * @return \Stripe\Customer
171
+ */
172
+ public function delete($id, $params = null, $opts = null)
173
+ {
174
+ return $this->request('delete', $this->buildPath('/v1/customers/%s', $id), $params, $opts);
175
+ }
176
+
177
+ /**
178
+ * Removes the currently applied discount on a customer.
179
+ *
180
+ * @param string $id
181
+ * @param null|array $params
182
+ * @param null|array|\Stripe\Util\RequestOptions $opts
183
+ *
184
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
185
+ *
186
+ * @return \Stripe\Customer
187
+ */
188
+ public function deleteDiscount($id, $params = null, $opts = null)
189
+ {
190
+ return $this->request('delete', $this->buildPath('/v1/customers/%s/discount', $id), $params, $opts);
191
+ }
192
+
193
+ /**
194
+ * @param string $parentId
195
+ * @param string $id
196
+ * @param null|array $params
197
+ * @param null|array|\Stripe\Util\RequestOptions $opts
198
+ *
199
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
200
+ *
201
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
202
+ */
203
+ public function deleteSource($parentId, $id, $params = null, $opts = null)
204
+ {
205
+ return $this->request('delete', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
206
+ }
207
+
208
+ /**
209
+ * Deletes an existing <code>TaxID</code> object.
210
+ *
211
+ * @param string $parentId
212
+ * @param string $id
213
+ * @param null|array $params
214
+ * @param null|array|\Stripe\Util\RequestOptions $opts
215
+ *
216
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
217
+ *
218
+ * @return \Stripe\TaxId
219
+ */
220
+ public function deleteTaxId($parentId, $id, $params = null, $opts = null)
221
+ {
222
+ return $this->request('delete', $this->buildPath('/v1/customers/%s/tax_ids/%s', $parentId, $id), $params, $opts);
223
+ }
224
+
225
+ /**
226
+ * Retrieves the details of an existing customer. You need only supply the unique
227
+ * customer identifier that was returned upon customer creation.
228
+ *
229
+ * @param string $id
230
+ * @param null|array $params
231
+ * @param null|array|\Stripe\Util\RequestOptions $opts
232
+ *
233
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
234
+ *
235
+ * @return \Stripe\Customer
236
+ */
237
+ public function retrieve($id, $params = null, $opts = null)
238
+ {
239
+ return $this->request('get', $this->buildPath('/v1/customers/%s', $id), $params, $opts);
240
+ }
241
+
242
+ /**
243
+ * Retrieves a specific customer balance transaction that updated the customer’s <a
244
+ * href="/docs/billing/customer/balance">balances</a>.
245
+ *
246
+ * @param string $parentId
247
+ * @param string $id
248
+ * @param null|array $params
249
+ * @param null|array|\Stripe\Util\RequestOptions $opts
250
+ *
251
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
252
+ *
253
+ * @return \Stripe\CustomerBalanceTransaction
254
+ */
255
+ public function retrieveBalanceTransaction($parentId, $id, $params = null, $opts = null)
256
+ {
257
+ return $this->request('get', $this->buildPath('/v1/customers/%s/balance_transactions/%s', $parentId, $id), $params, $opts);
258
+ }
259
+
260
+ /**
261
+ * Retrieve a specified source for a given customer.
262
+ *
263
+ * @param string $parentId
264
+ * @param string $id
265
+ * @param null|array $params
266
+ * @param null|array|\Stripe\Util\RequestOptions $opts
267
+ *
268
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
269
+ *
270
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
271
+ */
272
+ public function retrieveSource($parentId, $id, $params = null, $opts = null)
273
+ {
274
+ return $this->request('get', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
275
+ }
276
+
277
+ /**
278
+ * Retrieves the <code>TaxID</code> object with the given identifier.
279
+ *
280
+ * @param string $parentId
281
+ * @param string $id
282
+ * @param null|array $params
283
+ * @param null|array|\Stripe\Util\RequestOptions $opts
284
+ *
285
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
286
+ *
287
+ * @return \Stripe\TaxId
288
+ */
289
+ public function retrieveTaxId($parentId, $id, $params = null, $opts = null)
290
+ {
291
+ return $this->request('get', $this->buildPath('/v1/customers/%s/tax_ids/%s', $parentId, $id), $params, $opts);
292
+ }
293
+
294
+ /**
295
+ * Updates the specified customer by setting the values of the parameters passed.
296
+ * Any parameters not provided will be left unchanged. For example, if you pass the
297
+ * <strong>source</strong> parameter, that becomes the customer’s active source
298
+ * (e.g., a card) to be used for all charges in the future. When you update a
299
+ * customer to a new valid card source by passing the <strong>source</strong>
300
+ * parameter: for each of the customer’s current subscriptions, if the subscription
301
+ * bills automatically and is in the <code>past_due</code> state, then the latest
302
+ * open invoice for the subscription with automatic collection enabled will be
303
+ * retried. This retry will not count as an automatic retry, and will not affect
304
+ * the next regularly scheduled payment for the invoice. Changing the
305
+ * <strong>default_source</strong> for a customer will not trigger this behavior.
306
+ *
307
+ * This request accepts mostly the same arguments as the customer creation call.
308
+ *
309
+ * @param string $id
310
+ * @param null|array $params
311
+ * @param null|array|\Stripe\Util\RequestOptions $opts
312
+ *
313
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
314
+ *
315
+ * @return \Stripe\Customer
316
+ */
317
+ public function update($id, $params = null, $opts = null)
318
+ {
319
+ return $this->request('post', $this->buildPath('/v1/customers/%s', $id), $params, $opts);
320
+ }
321
+
322
+ /**
323
+ * Most credit balance transaction fields are immutable, but you may update its
324
+ * <code>description</code> and <code>metadata</code>.
325
+ *
326
+ * @param string $parentId
327
+ * @param string $id
328
+ * @param null|array $params
329
+ * @param null|array|\Stripe\Util\RequestOptions $opts
330
+ *
331
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
332
+ *
333
+ * @return \Stripe\CustomerBalanceTransaction
334
+ */
335
+ public function updateBalanceTransaction($parentId, $id, $params = null, $opts = null)
336
+ {
337
+ return $this->request('post', $this->buildPath('/v1/customers/%s/balance_transactions/%s', $parentId, $id), $params, $opts);
338
+ }
339
+
340
+ /**
341
+ * @param string $parentId
342
+ * @param string $id
343
+ * @param null|array $params
344
+ * @param null|array|\Stripe\Util\RequestOptions $opts
345
+ *
346
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
347
+ *
348
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
349
+ */
350
+ public function updateSource($parentId, $id, $params = null, $opts = null)
351
+ {
352
+ return $this->request('post', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
353
+ }
354
+
355
+ /**
356
+ * @param string $parentId
357
+ * @param string $id
358
+ * @param null|array $params
359
+ * @param null|array|\Stripe\Util\RequestOptions $opts
360
+ *
361
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
362
+ *
363
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
364
+ */
365
+ public function verifySource($parentId, $id, $params = null, $opts = null)
366
+ {
367
+ return $this->request('post', $this->buildPath('/v1/customers/%s/sources/%s/verify', $parentId, $id), $params, $opts);
368
+ }
369
+ }
lib/stripe-php/lib/Service/DisputeService.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class DisputeService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of your disputes.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\Collection
18
+ */
19
+ public function all($params = null, $opts = null)
20
+ {
21
+ return $this->requestCollection('get', '/v1/disputes', $params, $opts);
22
+ }
23
+
24
+ /**
25
+ * Closing the dispute for a charge indicates that you do not have any evidence to
26
+ * submit and are essentially dismissing the dispute, acknowledging it as lost.
27
+ *
28
+ * The status of the dispute will change from <code>needs_response</code> to
29
+ * <code>lost</code>. <em>Closing a dispute is irreversible</em>.
30
+ *
31
+ * @param string $id
32
+ * @param null|array $params
33
+ * @param null|array|\Stripe\Util\RequestOptions $opts
34
+ *
35
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
36
+ *
37
+ * @return \Stripe\Dispute
38
+ */
39
+ public function close($id, $params = null, $opts = null)
40
+ {
41
+ return $this->request('post', $this->buildPath('/v1/disputes/%s/close', $id), $params, $opts);
42
+ }
43
+
44
+ /**
45
+ * Retrieves the dispute with the given ID.
46
+ *
47
+ * @param string $id
48
+ * @param null|array $params
49
+ * @param null|array|\Stripe\Util\RequestOptions $opts
50
+ *
51
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
52
+ *
53
+ * @return \Stripe\Dispute
54
+ */
55
+ public function retrieve($id, $params = null, $opts = null)
56
+ {
57
+ return $this->request('get', $this->buildPath('/v1/disputes/%s', $id), $params, $opts);
58
+ }
59
+
60
+ /**
61
+ * When you get a dispute, contacting your customer is always the best first step.
62
+ * If that doesn’t work, you can submit evidence to help us resolve the dispute in
63
+ * your favor. You can do this in your <a
64
+ * href="https://dashboard.stripe.com/disputes">dashboard</a>, but if you prefer,
65
+ * you can use the API to submit evidence programmatically.
66
+ *
67
+ * Depending on your dispute type, different evidence fields will give you a better
68
+ * chance of winning your dispute. To figure out which evidence fields to provide,
69
+ * see our <a href="/docs/disputes/categories">guide to dispute types</a>.
70
+ *
71
+ * @param string $id
72
+ * @param null|array $params
73
+ * @param null|array|\Stripe\Util\RequestOptions $opts
74
+ *
75
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
76
+ *
77
+ * @return \Stripe\Dispute
78
+ */
79
+ public function update($id, $params = null, $opts = null)
80
+ {
81
+ return $this->request('post', $this->buildPath('/v1/disputes/%s', $id), $params, $opts);
82
+ }
83
+ }
lib/stripe-php/lib/Service/EphemeralKeyService.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class EphemeralKeyService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Invalidates a short-lived API key for a given resource.
11
+ *
12
+ * @param string $id
13
+ * @param null|array $params
14
+ * @param null|array|\Stripe\Util\RequestOptions $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\EphemeralKey
19
+ */
20
+ public function delete($id, $params = null, $opts = null)
21
+ {
22
+ return $this->request('delete', $this->buildPath('/v1/ephemeral_keys/%s', $id), $params, $opts);
23
+ }
24
+
25
+ /**
26
+ * Creates a short-lived API key for a given resource.
27
+ *
28
+ * @param null|array $params
29
+ * @param null|array|\Stripe\Util\RequestOptions $opts
30
+ *
31
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
32
+ *
33
+ * @return \Stripe\EphemeralKey
34
+ */
35
+ public function create($params = null, $opts = null)
36
+ {
37
+ if (!$opts || !isset($opts['stripe_version'])) {
38
+ throw new \Stripe\Exception\InvalidArgumentException('stripe_version must be specified to create an ephemeral key');
39
+ }
40
+
41
+ return $this->request('post', '/v1/ephemeral_keys', $params, $opts);
42
+ }
43
+ }
lib/stripe-php/lib/Service/EventService.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class EventService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * List events, going back up to 30 days. Each event data is rendered according to
11
+ * Stripe API version at its creation time, specified in <a
12
+ * href="/docs/api/events/object">event object</a> <code>api_version</code>
13
+ * attribute (not according to your current Stripe API version or
14
+ * <code>Stripe-Version</code> header).
15
+ *
16
+ * @param null|array $params
17
+ * @param null|array|\Stripe\Util\RequestOptions $opts
18
+ *
19
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
20
+ *
21
+ * @return \Stripe\Collection
22
+ */
23
+ public function all($params = null, $opts = null)
24
+ {
25
+ return $this->requestCollection('get', '/v1/events', $params, $opts);
26
+ }
27
+
28
+ /**
29
+ * Retrieves the details of an event. Supply the unique identifier of the event,
30
+ * which you might have received in a webhook.
31
+ *
32
+ * @param string $id
33
+ * @param null|array $params
34
+ * @param null|array|\Stripe\Util\RequestOptions $opts
35
+ *
36
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
37
+ *
38
+ * @return \Stripe\Event
39
+ */
40
+ public function retrieve($id, $params = null, $opts = null)
41
+ {
42
+ return $this->request('get', $this->buildPath('/v1/events/%s', $id), $params, $opts);
43
+ }
44
+ }
lib/stripe-php/lib/Service/ExchangeRateService.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class ExchangeRateService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of objects that contain the rates at which foreign currencies are
11
+ * converted to one another. Only shows the currencies for which Stripe supports.
12
+ *
13
+ * @param null|array $params
14
+ * @param null|array|\Stripe\Util\RequestOptions $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\Collection
19
+ */
20
+ public function all($params = null, $opts = null)
21
+ {
22
+ return $this->requestCollection('get', '/v1/exchange_rates', $params, $opts);
23
+ }
24
+
25
+ /**
26
+ * Retrieves the exchange rates from the given currency to every supported
27
+ * currency.
28
+ *
29
+ * @param string $id
30
+ * @param null|array $params
31
+ * @param null|array|\Stripe\Util\RequestOptions $opts
32
+ *
33
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
34
+ *
35
+ * @return \Stripe\ExchangeRate
36
+ */
37
+ public function retrieve($id, $params = null, $opts = null)
38
+ {
39
+ return $this->request('get', $this->buildPath('/v1/exchange_rates/%s', $id), $params, $opts);
40
+ }
41
+ }
lib/stripe-php/lib/Service/FileLinkService.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class FileLinkService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of file links.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\Collection
18
+ */
19
+ public function all($params = null, $opts = null)
20
+ {
21
+ return $this->requestCollection('get', '/v1/file_links', $params, $opts);
22
+ }
23
+
24
+ /**
25
+ * Creates a new file link object.
26
+ *
27
+ * @param null|array $params
28
+ * @param null|array|\Stripe\Util\RequestOptions $opts
29
+ *
30
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
31
+ *
32
+ * @return \Stripe\FileLink
33
+ */
34
+ public function create($params = null, $opts = null)
35
+ {
36
+ return $this->request('post', '/v1/file_links', $params, $opts);
37
+ }
38
+
39
+ /**
40
+ * Retrieves the file link with the given ID.
41
+ *
42
+ * @param string $id
43
+ * @param null|array $params
44
+ * @param null|array|\Stripe\Util\RequestOptions $opts
45
+ *
46
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
47
+ *
48
+ * @return \Stripe\FileLink
49
+ */
50
+ public function retrieve($id, $params = null, $opts = null)
51
+ {
52
+ return $this->request('get', $this->buildPath('/v1/file_links/%s', $id), $params, $opts);
53
+ }
54
+
55
+ /**
56
+ * Updates an existing file link object. Expired links can no longer be updated.
57
+ *
58
+ * @param string $id
59
+ * @param null|array $params
60
+ * @param null|array|\Stripe\Util\RequestOptions $opts
61
+ *
62
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
63
+ *
64
+ * @return \Stripe\FileLink
65
+ */
66
+ public function update($id, $params = null, $opts = null)
67
+ {
68
+ return $this->request('post', $this->buildPath('/v1/file_links/%s', $id), $params, $opts);
69
+ }
70
+ }
lib/stripe-php/lib/Service/FileService.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class FileService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of the files that your account has access to. The files are
11
+ * returned sorted by creation date, with the most recently created files appearing
12
+ * first.
13
+ *
14
+ * @param null|array $params
15
+ * @param null|array|\Stripe\Util\RequestOptions $opts
16
+ *
17
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
18
+ *
19
+ * @return \Stripe\Collection
20
+ */
21
+ public function all($params = null, $opts = null)
22
+ {
23
+ return $this->requestCollection('get', '/v1/files', $params, $opts);
24
+ }
25
+
26
+ /**
27
+ * Retrieves the details of an existing file object. Supply the unique file ID from
28
+ * a file, and Stripe will return the corresponding file object. To access file
29
+ * contents, see the <a href="/docs/file-upload#download-file-contents">File Upload
30
+ * Guide</a>.
31
+ *
32
+ * @param string $id
33
+ * @param null|array $params
34
+ * @param null|array|\Stripe\Util\RequestOptions $opts
35
+ *
36
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
37
+ *
38
+ * @return \Stripe\File
39
+ */
40
+ public function retrieve($id, $params = null, $opts = null)
41
+ {
42
+ return $this->request('get', $this->buildPath('/v1/files/%s', $id), $params, $opts);
43
+ }
44
+
45
+ /**
46
+ * Create a file.
47
+ *
48
+ * @param null|array $params
49
+ * @param null|array|\Stripe\Util\RequestOptions $opts
50
+ *
51
+ * @return \Stripe\File
52
+ */
53
+ public function create($params = null, $opts = null)
54
+ {
55
+ $opts = \Stripe\Util\RequestOptions::parse($opts);
56
+ if (!isset($opts->apiBase)) {
57
+ $opts->apiBase = $this->getClient()->getFilesBase();
58
+ }
59
+
60
+ // Manually flatten params, otherwise curl's multipart encoder will
61
+ // choke on nested null|arrays.
62
+ $flatParams = \array_column(\Stripe\Util\Util::flattenParams($params), 1, 0);
63
+
64
+ return $this->request('post', '/v1/files', $flatParams, $opts);
65
+ }
66
+ }
lib/stripe-php/lib/Service/Identity/IdentityServiceFactory.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Identity;
6
+
7
+ /**
8
+ * Service factory class for API resources in the Identity namespace.
9
+ *
10
+ * @property VerificationReportService $verificationReports
11
+ * @property VerificationSessionService $verificationSessions
12
+ */
13
+ class IdentityServiceFactory extends \Stripe\Service\AbstractServiceFactory
14
+ {
15
+ /**
16
+ * @var array<string, string>
17
+ */
18
+ private static $classMap = [
19
+ 'verificationReports' => VerificationReportService::class,
20
+ 'verificationSessions' => VerificationSessionService::class,
21
+ ];
22
+
23
+ protected function getServiceClass($name)
24
+ {
25
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
26
+ }
27
+ }
lib/stripe-php/lib/Service/Identity/VerificationReportService.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Identity;
6
+
7
+ class VerificationReportService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * List all verification reports.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\Collection
18
+ */
19
+ public function all($params = null, $opts = null)
20
+ {
21
+ return $this->requestCollection('get', '/v1/identity/verification_reports', $params, $opts);
22
+ }
23
+
24
+ /**
25
+ * Retrieves an existing VerificationReport.
26
+ *
27
+ * @param string $id
28
+ * @param null|array $params
29
+ * @param null|array|\Stripe\Util\RequestOptions $opts
30
+ *
31
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
32
+ *
33
+ * @return \Stripe\Identity\VerificationReport
34
+ */
35
+ public function retrieve($id, $params = null, $opts = null)
36
+ {
37
+ return $this->request('get', $this->buildPath('/v1/identity/verification_reports/%s', $id), $params, $opts);
38
+ }
39
+ }
lib/stripe-php/lib/Service/Identity/VerificationSessionService.php ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Identity;
6
+
7
+ class VerificationSessionService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of VerificationSessions.
11
+ *
12
+ * @param null|array $params
13
+ * @param null|array|\Stripe\Util\RequestOptions $opts
14
+ *
15
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
16
+ *
17
+ * @return \Stripe\Collection
18
+ */
19
+ public function all($params = null, $opts = null)
20
+ {
21
+ return $this->requestCollection('get', '/v1/identity/verification_sessions', $params, $opts);
22
+ }
23
+
24
+ /**
25
+ * A VerificationSession object can be canceled when it is in
26
+ * <code>requires_input</code> <a
27
+ * href="/docs/identity/how-sessions-work">status</a>.
28
+ *
29
+ * Once canceled, future submission attempts are disabled. This cannot be undone.
30
+ * <a href="/docs/identity/verification-sessions#cancel">Learn more</a>.
31
+ *
32
+ * @param string $id
33
+ * @param null|array $params
34
+ * @param null|array|\Stripe\Util\RequestOptions $opts
35
+ *
36
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
37
+ *
38
+ * @return \Stripe\Identity\VerificationSession
39
+ */
40
+ public function cancel($id, $params = null, $opts = null)
41
+ {
42
+ return $this->request('post', $this->buildPath('/v1/identity/verification_sessions/%s/cancel', $id), $params, $opts);
43
+ }
44
+
45
+ /**
46
+ * Creates a VerificationSession object.
47
+ *
48
+ * After the VerificationSession is created, display a verification modal using the
49
+ * session <code>client_secret</code> or send your users to the session’s
50
+ * <code>url</code>.
51
+ *
52
+ * If your API key is in test mode, verification checks won’t actually process,
53
+ * though everything else will occur as if in live mode.
54
+ *
55
+ * Related guide: <a href="/docs/identity/verify-identity-documents">Verify your
56
+ * users’ identity documents</a>.
57
+ *
58
+ * @param null|array $params
59
+ * @param null|array|\Stripe\Util\RequestOptions $opts
60
+ *
61
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
62
+ *
63
+ * @return \Stripe\Identity\VerificationSession
64
+ */
65
+ public function create($params = null, $opts = null)
66
+ {
67
+ return $this->request('post', '/v1/identity/verification_sessions', $params, $opts);
68
+ }
69
+
70
+ /**
71
+ * Redact a VerificationSession to remove all collected information from Stripe.
72
+ * This will redact the VerificationSession and all objects related to it,
73
+ * including VerificationReports, Events, request logs, etc.
74
+ *
75
+ * A VerificationSession object can be redacted when it is in
76
+ * <code>requires_input</code> or <code>verified</code> <a
77
+ * href="/docs/identity/how-sessions-work">status</a>. Redacting a
78
+ * VerificationSession in <code>requires_action</code> state will automatically
79
+ * cancel it.
80
+ *
81
+ * The redaction process may take up to four days. When the redaction process is in
82
+ * progress, the VerificationSession’s <code>redaction.status</code> field will be
83
+ * set to <code>processing</code>; when the process is finished, it will change to
84
+ * <code>redacted</code> and an <code>identity.verification_session.redacted</code>
85
+ * event will be emitted.
86
+ *
87
+ * Redaction is irreversible. Redacted objects are still accessible in the Stripe
88
+ * API, but all the fields that contain personal data will be replaced by the
89
+ * string <code>[redacted]</code> or a similar placeholder. The
90
+ * <code>metadata</code> field will also be erased. Redacted objects cannot be
91
+ * updated or used for any purpose.
92
+ *
93
+ * <a href="/docs/identity/verification-sessions#redact">Learn more</a>.
94
+ *
95
+ * @param string $id
96
+ * @param null|array $params
97
+ * @param null|array|\Stripe\Util\RequestOptions $opts
98
+ *
99
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
100
+ *
101
+ * @return \Stripe\Identity\VerificationSession
102
+ */
103
+ public function redact($id, $params = null, $opts = null)
104
+ {
105
+ return $this->request('post', $this->buildPath('/v1/identity/verification_sessions/%s/redact', $id), $params, $opts);
106
+ }
107
+
108
+ /**
109
+ * Retrieves the details of a VerificationSession that was previously created.
110
+ *
111
+ * When the session status is <code>requires_input</code>, you can use this method
112
+ * to retrieve a valid <code>client_secret</code> or <code>url</code> to allow
113
+ * re-submission.
114
+ *
115
+ * @param string $id
116
+ * @param null|array $params
117
+ * @param null|array|\Stripe\Util\RequestOptions $opts
118
+ *
119
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
120
+ *
121
+ * @return \Stripe\Identity\VerificationSession
122
+ */
123
+ public function retrieve($id, $params = null, $opts = null)
124
+ {
125
+ return $this->request('get', $this->buildPath('/v1/identity/verification_sessions/%s', $id), $params, $opts);
126
+ }
127
+
128
+ /**
129
+ * Updates a VerificationSession object.
130
+ *
131
+ * When the session status is <code>requires_input</code>, you can use this method
132
+ * to update the verification check and options.
133
+ *
134
+ * @param string $id
135
+ * @param null|array $params
136
+ * @param null|array|\Stripe\Util\RequestOptions $opts
137
+ *
138
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
139
+ *
140
+ * @return \Stripe\Identity\VerificationSession
141
+ */
142
+ public function update($id, $params = null, $opts = null)
143
+ {
144
+ return $this->request('post', $this->buildPath('/v1/identity/verification_sessions/%s', $id), $params, $opts);
145
+ }
146
+ }
lib/stripe-php/lib/Service/InvoiceItemService.php ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class InvoiceItemService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of your invoice items. Invoice items are returned sorted by
11
+ * creation date, with the most recently created invoice items appearing first.
12
+ *
13
+ * @param null|array $params
14
+ * @param null|array|\Stripe\Util\RequestOptions $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\Collection
19
+ */
20
+ public function all($params = null, $opts = null)
21
+ {
22
+ return $this->requestCollection('get', '/v1/invoiceitems', $params, $opts);
23
+ }
24
+
25
+ /**
26
+ * Creates an item to be added to a draft invoice (up to 250 items per invoice). If
27
+ * no invoice is specified, the item will be on the next invoice created for the
28
+ * customer specified.
29
+ *
30
+ * @param null|array $params
31
+ * @param null|array|\Stripe\Util\RequestOptions $opts
32
+ *
33
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
34
+ *
35
+ * @return \Stripe\InvoiceItem
36
+ */
37
+ public function create($params = null, $opts = null)
38
+ {
39
+ return $this->request('post', '/v1/invoiceitems', $params, $opts);
40
+ }
41
+
42
+ /**
43
+ * Deletes an invoice item, removing it from an invoice. Deleting invoice items is
44
+ * only possible when they’re not attached to invoices, or if it’s attached to a
45
+ * draft invoice.
46
+ *
47
+ * @param string $id
48
+ * @param null|array $params
49
+ * @param null|array|\Stripe\Util\RequestOptions $opts
50
+ *
51
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
52
+ *
53
+ * @return \Stripe\InvoiceItem
54
+ */
55
+ public function delete($id, $params = null, $opts = null)
56
+ {
57
+ return $this->request('delete', $this->buildPath('/v1/invoiceitems/%s', $id), $params, $opts);
58
+ }
59
+
60
+ /**
61
+ * Retrieves the invoice item with the given ID.
62
+ *
63
+ * @param string $id
64
+ * @param null|array $params
65
+ * @param null|array|\Stripe\Util\RequestOptions $opts
66
+ *
67
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
68
+ *
69
+ * @return \Stripe\InvoiceItem
70
+ */
71
+ public function retrieve($id, $params = null, $opts = null)
72
+ {
73
+ return $this->request('get', $this->buildPath('/v1/invoiceitems/%s', $id), $params, $opts);
74
+ }
75
+
76
+ /**
77
+ * Updates the amount or description of an invoice item on an upcoming invoice.
78
+ * Updating an invoice item is only possible before the invoice it’s attached to is
79
+ * closed.
80
+ *
81
+ * @param string $id
82
+ * @param null|array $params
83
+ * @param null|array|\Stripe\Util\RequestOptions $opts
84
+ *
85
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
86
+ *
87
+ * @return \Stripe\InvoiceItem
88
+ */
89
+ public function update($id, $params = null, $opts = null)
90
+ {
91
+ return $this->request('post', $this->buildPath('/v1/invoiceitems/%s', $id), $params, $opts);
92
+ }
93
+ }
lib/stripe-php/lib/Service/InvoiceService.php ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class InvoiceService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * You can list all invoices, or list the invoices for a specific customer. The
11
+ * invoices are returned sorted by creation date, with the most recently created
12
+ * invoices appearing first.
13
+ *
14
+ * @param null|array $params
15
+ * @param null|array|\Stripe\Util\RequestOptions $opts
16
+ *
17
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
18
+ *
19
+ * @return \Stripe\Collection
20
+ */
21
+ public function all($params = null, $opts = null)
22
+ {
23
+ return $this->requestCollection('get', '/v1/invoices', $params, $opts);
24
+ }
25
+
26
+ /**
27
+ * When retrieving an invoice, you’ll get a <strong>lines</strong> property
28
+ * containing the total count of line items and the first handful of those items.
29
+ * There is also a URL where you can retrieve the full (paginated) list of line
30
+ * items.
31
+ *
32
+ * @param string $parentId
33
+ * @param null|array $params
34
+ * @param null|array|\Stripe\Util\RequestOptions $opts
35
+ *
36
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
37
+ *
38
+ * @return \Stripe\Collection
39
+ */
40
+ public function allLines($parentId, $params = null, $opts = null)
41
+ {
42
+ return $this->requestCollection('get', $this->buildPath('/v1/invoices/%s/lines', $parentId), $params, $opts);
43
+ }
44
+
45
+ /**
46
+ * This endpoint creates a draft invoice for a given customer. The draft invoice
47
+ * created pulls in all pending invoice items on that customer, including
48
+ * prorations. The invoice remains a draft until you <a
49
+ * href="#finalize_invoice">finalize</a> the invoice, which allows you to <a
50
+ * href="#pay_invoice">pay</a> or <a href="#send_invoice">send</a> the invoice to
51
+ * your customers.
52
+ *
53
+ * @param null|array $params
54
+ * @param null|array|\Stripe\Util\RequestOptions $opts
55
+ *
56
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
57
+ *
58
+ * @return \Stripe\Invoice
59
+ */
60
+ public function create($params = null, $opts = null)
61
+ {
62
+ return $this->request('post', '/v1/invoices', $params, $opts);
63
+ }
64
+
65
+ /**
66
+ * Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to
67
+ * delete invoices that are no longer in a draft state will fail; once an invoice
68
+ * has been finalized or if an invoice is for a subscription, it must be <a
69
+ * href="#void_invoice">voided</a>.
70
+ *
71
+ * @param string $id
72
+ * @param null|array $params
73
+ * @param null|array|\Stripe\Util\RequestOptions $opts
74
+ *
75
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
76
+ *
77
+ * @return \Stripe\Invoice
78
+ */
79
+ public function delete($id, $params = null, $opts = null)
80
+ {
81
+ return $this->request('delete', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
82
+ }
83
+
84
+ /**
85
+ * Stripe automatically finalizes drafts before sending and attempting payment on
86
+ * invoices. However, if you’d like to finalize a draft invoice manually, you can
87
+ * do so using this method.
88
+ *
89
+ * @param string $id
90
+ * @param null|array $params
91
+ * @param null|array|\Stripe\Util\RequestOptions $opts
92
+ *
93
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
94
+ *
95
+ * @return \Stripe\Invoice
96
+ */
97
+ public function finalizeInvoice($id, $params = null, $opts = null)
98
+ {
99
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/finalize', $id), $params, $opts);
100
+ }
101
+
102
+ /**
103
+ * Marking an invoice as uncollectible is useful for keeping track of bad debts
104
+ * that can be written off for accounting purposes.
105
+ *
106
+ * @param string $id
107
+ * @param null|array $params
108
+ * @param null|array|\Stripe\Util\RequestOptions $opts
109
+ *
110
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
111
+ *
112
+ * @return \Stripe\Invoice
113
+ */
114
+ public function markUncollectible($id, $params = null, $opts = null)
115
+ {
116
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/mark_uncollectible', $id), $params, $opts);
117
+ }
118
+
119
+ /**
120
+ * Stripe automatically creates and then attempts to collect payment on invoices
121
+ * for customers on subscriptions according to your <a
122
+ * href="https://dashboard.stripe.com/account/billing/automatic">subscriptions
123
+ * settings</a>. However, if you’d like to attempt payment on an invoice out of the
124
+ * normal collection schedule or for some other reason, you can do so.
125
+ *
126
+ * @param string $id
127
+ * @param null|array $params
128
+ * @param null|array|\Stripe\Util\RequestOptions $opts
129
+ *
130
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
131
+ *
132
+ * @return \Stripe\Invoice
133
+ */
134
+ public function pay($id, $params = null, $opts = null)
135
+ {
136
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/pay', $id), $params, $opts);
137
+ }
138
+
139
+ /**
140
+ * Retrieves the invoice with the given ID.
141
+ *
142
+ * @param string $id
143
+ * @param null|array $params
144
+ * @param null|array|\Stripe\Util\RequestOptions $opts
145
+ *
146
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
147
+ *
148
+ * @return \Stripe\Invoice
149
+ */
150
+ public function retrieve($id, $params = null, $opts = null)
151
+ {
152
+ return $this->request('get', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
153
+ }
154
+
155
+ /**
156
+ * Stripe will automatically send invoices to customers according to your <a
157
+ * href="https://dashboard.stripe.com/account/billing/automatic">subscriptions
158
+ * settings</a>. However, if you’d like to manually send an invoice to your
159
+ * customer out of the normal schedule, you can do so. When sending invoices that
160
+ * have already been paid, there will be no reference to the payment in the email.
161
+ *
162
+ * Requests made in test-mode result in no emails being sent, despite sending an
163
+ * <code>invoice.sent</code> event.
164
+ *
165
+ * @param string $id
166
+ * @param null|array $params
167
+ * @param null|array|\Stripe\Util\RequestOptions $opts
168
+ *
169
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
170
+ *
171
+ * @return \Stripe\Invoice
172
+ */
173
+ public function sendInvoice($id, $params = null, $opts = null)
174
+ {
175
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/send', $id), $params, $opts);
176
+ }
177
+
178
+ /**
179
+ * At any time, you can preview the upcoming invoice for a customer. This will show
180
+ * you all the charges that are pending, including subscription renewal charges,
181
+ * invoice item charges, etc. It will also show you any discounts that are
182
+ * applicable to the invoice.
183
+ *
184
+ * Note that when you are viewing an upcoming invoice, you are simply viewing a
185
+ * preview – the invoice has not yet been created. As such, the upcoming invoice
186
+ * will not show up in invoice listing calls, and you cannot use the API to pay or
187
+ * edit the invoice. If you want to change the amount that your customer will be
188
+ * billed, you can add, remove, or update pending invoice items, or update the
189
+ * customer’s discount.
190
+ *
191
+ * You can preview the effects of updating a subscription, including a preview of
192
+ * what proration will take place. To ensure that the actual proration is
193
+ * calculated exactly the same as the previewed proration, you should pass a
194
+ * <code>proration_date</code> parameter when doing the actual subscription update.
195
+ * The value passed in should be the same as the
196
+ * <code>subscription_proration_date</code> returned on the upcoming invoice
197
+ * resource. The recommended way to get only the prorations being previewed is to
198
+ * consider only proration line items where <code>period[start]</code> is equal to
199
+ * the <code>subscription_proration_date</code> on the upcoming invoice resource.
200
+ *
201
+ * @param null|array $params
202
+ * @param null|array|\Stripe\Util\RequestOptions $opts
203
+ *
204
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
205
+ *
206
+ * @return \Stripe\Invoice
207
+ */
208
+ public function upcoming($params = null, $opts = null)
209
+ {
210
+ return $this->request('get', '/v1/invoices/upcoming', $params, $opts);
211
+ }
212
+
213
+ /**
214
+ * When retrieving an upcoming invoice, you’ll get a <strong>lines</strong>
215
+ * property containing the total count of line items and the first handful of those
216
+ * items. There is also a URL where you can retrieve the full (paginated) list of
217
+ * line items.
218
+ *
219
+ * @param null|array $params
220
+ * @param null|array|\Stripe\Util\RequestOptions $opts
221
+ *
222
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
223
+ *
224
+ * @return \Stripe\Collection
225
+ */
226
+ public function upcomingLines($params = null, $opts = null)
227
+ {
228
+ return $this->requestCollection('get', '/v1/invoices/upcoming/lines', $params, $opts);
229
+ }
230
+
231
+ /**
232
+ * Draft invoices are fully editable. Once an invoice is <a
233
+ * href="/docs/billing/invoices/workflow#finalized">finalized</a>, monetary values,
234
+ * as well as <code>collection_method</code>, become uneditable.
235
+ *
236
+ * If you would like to stop the Stripe Billing engine from automatically
237
+ * finalizing, reattempting payments on, sending reminders for, or <a
238
+ * href="/docs/billing/invoices/reconciliation">automatically reconciling</a>
239
+ * invoices, pass <code>auto_advance=false</code>.
240
+ *
241
+ * @param string $id
242
+ * @param null|array $params
243
+ * @param null|array|\Stripe\Util\RequestOptions $opts
244
+ *
245
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
246
+ *
247
+ * @return \Stripe\Invoice
248
+ */
249
+ public function update($id, $params = null, $opts = null)
250
+ {
251
+ return $this->request('post', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
252
+ }
253
+
254
+ /**
255
+ * Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is
256
+ * similar to <a href="#delete_invoice">deletion</a>, however it only applies to
257
+ * finalized invoices and maintains a papertrail where the invoice can still be
258
+ * found.
259
+ *
260
+ * @param string $id
261
+ * @param null|array $params
262
+ * @param null|array|\Stripe\Util\RequestOptions $opts
263
+ *
264
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
265
+ *
266
+ * @return \Stripe\Invoice
267
+ */
268
+ public function voidInvoice($id, $params = null, $opts = null)
269
+ {
270
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/void', $id), $params, $opts);
271
+ }
272
+ }
lib/stripe-php/lib/Service/Issuing/AuthorizationService.php ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Issuing;
6
+
7
+ class AuthorizationService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of Issuing <code>Authorization</code> objects. The objects are
11
+ * sorted in descending order by creation date, with the most recently created
12
+ * object appearing first.
13
+ *
14
+ * @param null|array $params
15
+ * @param null|array|\Stripe\Util\RequestOptions $opts
16
+ *
17
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
18
+ *
19
+ * @return \Stripe\Collection
20
+ */
21
+ public function all($params = null, $opts = null)
22
+ {
23
+ return $this->requestCollection('get', '/v1/issuing/authorizations', $params, $opts);
24
+ }
25
+
26
+ /**
27
+ * Approves a pending Issuing <code>Authorization</code> object. This request
28
+ * should be made within the timeout window of the <a
29
+ * href="/docs/issuing/controls/real-time-authorizations">real-time
30
+ * authorization</a> flow.
31
+ *
32
+ * @param string $id
33
+ * @param null|array $params
34
+ * @param null|array|\Stripe\Util\RequestOptions $opts
35
+ *
36
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
37
+ *
38
+ * @return \Stripe\Issuing\Authorization
39
+ */
40
+ public function approve($id, $params = null, $opts = null)
41
+ {
42
+ return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s/approve', $id), $params, $opts);
43
+ }
44
+
45
+ /**
46
+ * Declines a pending Issuing <code>Authorization</code> object. This request
47
+ * should be made within the timeout window of the <a
48
+ * href="/docs/issuing/controls/real-time-authorizations">real time
49
+ * authorization</a> flow.
50
+ *
51
+ * @param string $id
52
+ * @param null|array $params
53
+ * @param null|array|\Stripe\Util\RequestOptions $opts
54
+ *
55
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
56
+ *
57
+ * @return \Stripe\Issuing\Authorization
58
+ */
59
+ public function decline($id, $params = null, $opts = null)
60
+ {
61
+ return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s/decline', $id), $params, $opts);
62
+ }
63
+
64
+ /**
65
+ * Retrieves an Issuing <code>Authorization</code> object.
66
+ *
67
+ * @param string $id
68
+ * @param null|array $params
69
+ * @param null|array|\Stripe\Util\RequestOptions $opts
70
+ *
71
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
72
+ *
73
+ * @return \Stripe\Issuing\Authorization
74
+ */
75
+ public function retrieve($id, $params = null, $opts = null)
76
+ {
77
+ return $this->request('get', $this->buildPath('/v1/issuing/authorizations/%s', $id), $params, $opts);
78
+ }
79
+
80
+ /**
81
+ * Updates the specified Issuing <code>Authorization</code> object by setting the
82
+ * values of the parameters passed. Any parameters not provided will be left
83
+ * unchanged.
84
+ *
85
+ * @param string $id
86
+ * @param null|array $params
87
+ * @param null|array|\Stripe\Util\RequestOptions $opts
88
+ *
89
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
90
+ *
91
+ * @return \Stripe\Issuing\Authorization
92
+ */
93
+ public function update($id, $params = null, $opts = null)
94
+ {
95
+ return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s', $id), $params, $opts);
96
+ }
97
+ }
lib/stripe-php/lib/Service/Issuing/CardService.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Issuing;
6
+
7
+ class CardService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of Issuing <code>Card</code> objects. The objects are sorted in
11
+ * descending order by creation date, with the most recently created object
12
+ * appearing first.
13
+ *
14
+ * @param null|array $params
15
+ * @param null|array|\Stripe\Util\RequestOptions $opts
16
+ *
17
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
18
+ *
19
+ * @return \Stripe\Collection
20
+ */
21
+ public function all($params = null, $opts = null)
22
+ {
23
+ return $this->requestCollection('get', '/v1/issuing/cards', $params, $opts);
24
+ }
25
+
26
+ /**
27
+ * Creates an Issuing <code>Card</code> object.
28
+ *
29
+ * @param null|array $params
30
+ * @param null|array|\Stripe\Util\RequestOptions $opts
31
+ *
32
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
33
+ *
34
+ * @return \Stripe\Issuing\Card
35
+ */
36
+ public function create($params = null, $opts = null)
37
+ {
38
+ return $this->request('post', '/v1/issuing/cards', $params, $opts);
39
+ }
40
+
41
+ /**
42
+ * Retrieves an Issuing <code>Card</code> object.
43
+ *
44
+ * @param string $id
45
+ * @param null|array $params
46
+ * @param null|array|\Stripe\Util\RequestOptions $opts
47
+ *
48
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
49
+ *
50
+ * @return \Stripe\Issuing\Card
51
+ */
52
+ public function retrieve($id, $params = null, $opts = null)
53
+ {
54
+ return $this->request('get', $this->buildPath('/v1/issuing/cards/%s', $id), $params, $opts);
55
+ }
56
+
57
+ /**
58
+ * Updates the specified Issuing <code>Card</code> object by setting the values of
59
+ * the parameters passed. Any parameters not provided will be left unchanged.
60
+ *
61
+ * @param string $id
62
+ * @param null|array $params
63
+ * @param null|array|\Stripe\Util\RequestOptions $opts
64
+ *
65
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
66
+ *
67
+ * @return \Stripe\Issuing\Card
68
+ */
69
+ public function update($id, $params = null, $opts = null)
70
+ {
71
+ return $this->request('post', $this->buildPath('/v1/issuing/cards/%s', $id), $params, $opts);
72
+ }
73
+ }
lib/stripe-php/lib/Service/Issuing/CardholderService.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Issuing;
6
+
7
+ class CardholderService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of Issuing <code>Cardholder</code> objects. The objects are
11
+ * sorted in descending order by creation date, with the most recently created
12
+ * object appearing first.
13
+ *
14
+ * @param null|array $params
15
+ * @param null|array|\Stripe\Util\RequestOptions $opts
16
+ *
17
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
18
+ *
19
+ * @return \Stripe\Collection
20
+ */
21
+ public function all($params = null, $opts = null)
22
+ {
23
+ return $this->requestCollection('get', '/v1/issuing/cardholders', $params, $opts);
24
+ }
25
+
26
+ /**
27
+ * Creates a new Issuing <code>Cardholder</code> object that can be issued cards.
28
+ *
29
+ * @param null|array $params
30
+ * @param null|array|\Stripe\Util\RequestOptions $opts
31
+ *
32
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
33
+ *
34
+ * @return \Stripe\Issuing\Cardholder
35
+ */
36
+ public function create($params = null, $opts = null)
37
+ {
38
+ return $this->request('post', '/v1/issuing/cardholders', $params, $opts);
39
+ }
40
+
41
+ /**
42
+ * Retrieves an Issuing <code>Cardholder</code> object.
43
+ *
44
+ * @param string $id
45
+ * @param null|array $params
46
+ * @param null|array|\Stripe\Util\RequestOptions $opts
47
+ *
48
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
49
+ *
50
+ * @return \Stripe\Issuing\Cardholder
51
+ */
52
+ public function retrieve($id, $params = null, $opts = null)
53
+ {
54
+ return $this->request('get', $this->buildPath('/v1/issuing/cardholders/%s', $id), $params, $opts);
55
+ }
56
+
57
+ /**
58
+ * Updates the specified Issuing <code>Cardholder</code> object by setting the
59
+ * values of the parameters passed. Any parameters not provided will be left
60
+ * unchanged.
61
+ *
62
+ * @param string $id
63
+ * @param null|array $params
64
+ * @param null|array|\Stripe\Util\RequestOptions $opts
65
+ *
66
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
67
+ *
68
+ * @return \Stripe\Issuing\Cardholder
69
+ */
70
+ public function update($id, $params = null, $opts = null)
71
+ {
72
+ return $this->request('post', $this->buildPath('/v1/issuing/cardholders/%s', $id), $params, $opts);
73
+ }
74
+ }
lib/stripe-php/lib/Service/Issuing/DisputeService.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Issuing;
6
+
7
+ class DisputeService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of Issuing <code>Dispute</code> objects. The objects are sorted
11
+ * in descending order by creation date, with the most recently created object
12
+ * appearing first.
13
+ *
14
+ * @param null|array $params
15
+ * @param null|array|\Stripe\Util\RequestOptions $opts
16
+ *
17
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
18
+ *
19
+ * @return \Stripe\Collection
20
+ */
21
+ public function all($params = null, $opts = null)
22
+ {
23
+ return $this->requestCollection('get', '/v1/issuing/disputes', $params, $opts);
24
+ }
25
+
26
+ /**
27
+ * Creates an Issuing <code>Dispute</code> object. Individual pieces of evidence
28
+ * within the <code>evidence</code> object are optional at this point. Stripe only
29
+ * validates that required evidence is present during submission. Refer to <a
30
+ * href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute
31
+ * reasons and evidence</a> for more details about evidence requirements.
32
+ *
33
+ * @param null|array $params
34
+ * @param null|array|\Stripe\Util\RequestOptions $opts
35
+ *
36
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
37
+ *
38
+ * @return \Stripe\Issuing\Dispute
39
+ */
40
+ public function create($params = null, $opts = null)
41
+ {
42
+ return $this->request('post', '/v1/issuing/disputes', $params, $opts);
43
+ }
44
+
45
+ /**
46
+ * Retrieves an Issuing <code>Dispute</code> object.
47
+ *
48
+ * @param string $id
49
+ * @param null|array $params
50
+ * @param null|array|\Stripe\Util\RequestOptions $opts
51
+ *
52
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
53
+ *
54
+ * @return \Stripe\Issuing\Dispute
55
+ */
56
+ public function retrieve($id, $params = null, $opts = null)
57
+ {
58
+ return $this->request('get', $this->buildPath('/v1/issuing/disputes/%s', $id), $params, $opts);
59
+ }
60
+
61
+ /**
62
+ * Submits an Issuing <code>Dispute</code> to the card network. Stripe validates
63
+ * that all evidence fields required for the dispute’s reason are present. For more
64
+ * details, see <a
65
+ * href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute
66
+ * reasons and evidence</a>.
67
+ *
68
+ * @param string $id
69
+ * @param null|array $params
70
+ * @param null|array|\Stripe\Util\RequestOptions $opts
71
+ *
72
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
73
+ *
74
+ * @return \Stripe\Issuing\Dispute
75
+ */
76
+ public function submit($id, $params = null, $opts = null)
77
+ {
78
+ return $this->request('post', $this->buildPath('/v1/issuing/disputes/%s/submit', $id), $params, $opts);
79
+ }
80
+
81
+ /**
82
+ * Updates the specified Issuing <code>Dispute</code> object by setting the values
83
+ * of the parameters passed. Any parameters not provided will be left unchanged.
84
+ * Properties on the <code>evidence</code> object can be unset by passing in an
85
+ * empty string.
86
+ *
87
+ * @param string $id
88
+ * @param null|array $params
89
+ * @param null|array|\Stripe\Util\RequestOptions $opts
90
+ *
91
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
92
+ *
93
+ * @return \Stripe\Issuing\Dispute
94
+ */
95
+ public function update($id, $params = null, $opts = null)
96
+ {
97
+ return $this->request('post', $this->buildPath('/v1/issuing/disputes/%s', $id), $params, $opts);
98
+ }
99
+ }
lib/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Issuing;
6
+
7
+ /**
8
+ * Service factory class for API resources in the Issuing namespace.
9
+ *
10
+ * @property AuthorizationService $authorizations
11
+ * @property CardholderService $cardholders
12
+ * @property CardService $cards
13
+ * @property DisputeService $disputes
14
+ * @property TransactionService $transactions
15
+ */
16
+ class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
17
+ {
18
+ /**
19
+ * @var array<string, string>
20
+ */
21
+ private static $classMap = [
22
+ 'authorizations' => AuthorizationService::class,
23
+ 'cardholders' => CardholderService::class,
24
+ 'cards' => CardService::class,
25
+ 'disputes' => DisputeService::class,
26
+ 'transactions' => TransactionService::class,
27
+ ];
28
+
29
+ protected function getServiceClass($name)
30
+ {
31
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
32
+ }
33
+ }
lib/stripe-php/lib/Service/Issuing/TransactionService.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service\Issuing;
6
+
7
+ class TransactionService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Returns a list of Issuing <code>Transaction</code> objects. The objects are
11
+ * sorted in descending order by creation date, with the most recently created
12
+ * object appearing first.
13
+ *
14
+ * @param null|array $params
15
+ * @param null|array|\Stripe\Util\RequestOptions $opts
16
+ *
17
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
18
+ *
19
+ * @return \Stripe\Collection
20
+ */
21
+ public function all($params = null, $opts = null)
22
+ {
23
+ return $this->requestCollection('get', '/v1/issuing/transactions', $params, $opts);
24
+ }
25
+
26
+ /**
27
+ * Retrieves an Issuing <code>Transaction</code> object.
28
+ *
29
+ * @param string $id
30
+ * @param null|array $params
31
+ * @param null|array|\Stripe\Util\RequestOptions $opts
32
+ *
33
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
34
+ *
35
+ * @return \Stripe\Issuing\Transaction
36
+ */
37
+ public function retrieve($id, $params = null, $opts = null)
38
+ {
39
+ return $this->request('get', $this->buildPath('/v1/issuing/transactions/%s', $id), $params, $opts);
40
+ }
41
+
42
+ /**
43
+ * Updates the specified Issuing <code>Transaction</code> object by setting the
44
+ * values of the parameters passed. Any parameters not provided will be left
45
+ * unchanged.
46
+ *
47
+ * @param string $id
48
+ * @param null|array $params
49
+ * @param null|array|\Stripe\Util\RequestOptions $opts
50
+ *
51
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
52
+ *
53
+ * @return \Stripe\Issuing\Transaction
54
+ */
55
+ public function update($id, $params = null, $opts = null)
56
+ {
57
+ return $this->request('post', $this->buildPath('/v1/issuing/transactions/%s', $id), $params, $opts);
58
+ }
59
+ }
lib/stripe-php/lib/Service/MandateService.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // File generated from our OpenAPI spec
4
+
5
+ namespace Stripe\Service;
6
+
7
+ class MandateService extends \Stripe\Service\AbstractService
8
+ {
9
+ /**
10
+ * Retrieves a Mandate object.
11
+ *
12
+ * @param string $id
13
+ * @param null|array $params
14
+ * @param null|array|\Stripe\Util\RequestOptions $opts
15
+ *
16
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
17
+ *
18
+ * @return \Stripe\Mandate
19
+ */
20
+ public function retrieve($id, $params = null, $opts = null)
21
+ {
22
+ return $this->request('get', $this->buildPath('/v1/mandates/%s', $id), $params, $opts);
23
+ }
24
+ }
lib/stripe-php/lib/Service/OAuthService.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Stripe\Service;
4
+
5
+ class OAuthService extends \Stripe\Service\AbstractService
6
+ {
7
+ /**
8
+ * Sends a request to Stripe's Connect API.
9
+ *
10
+ * @param string $method the HTTP method
11
+ * @param string $path the path of the request
12
+ * @param array $params the parameters of the request
13
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
14
+ *
15
+ * @return \Stripe\StripeObject the object returned by Stripe's Connect API
16
+ */
17
+ protected function requestConnect($method, $path, $params, $opts)
18
+ {
19
+ $opts = $this->_parseOpts($opts);
20
+ $opts->apiBase = $this->_getBase($opts);
21
+
22
+ return $this->request($method, $path, $params, $opts);
23
+ }
24
+
25
+ /**
26
+ * Generates a URL to Stripe's OAuth form.
27
+ *
28
+ * @param null|array $params
29
+ * @param null|array $opts
30
+ *
31
+ * @return string the URL to Stripe's OAuth form
32
+ */
33
+ public function authorizeUrl($params = null, $opts = null)
34
+ {
35
+ $params = $params ?: [];
36
+
37
+ $opts = $this->_parseOpts($opts);
38
+ $base = $this->_getBase($opts);
39
+
40
+ $params['client_id'] = $this->_getClientId($params);
41
+ if (!\array_key_exists('response_type', $params)) {
42
+ $params['response_type'] = 'code';
43
+ }
44
+ $query = \Stripe\Util\Util::encodeParameters($params);
45
+
46
+ return $base . '/oauth/authorize?' . $query;
47
+ }
48
+
49
+ /**
50
+ * Use an authoriztion code to connect an account to your platform and
51
+ * fetch the user's credentials.
52
+ *
53
+ * @param null|array $params
54
+ * @param null|array $opts
55
+ *
56
+ * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
57
+ *
58
+ * @return \Stripe\StripeObject object containing the response from the API
59
+ */
60
+ public function token($params = null, $opts = null)
61
+ {
62
+ $params = $params ?: [];
63
+ $params['client_secret'] = $this->_getClientSecret($params);
64
+
65
+ return $this->requestConnect('post', '/oauth/token', $params, $opts);
66
+ }
67
+
68
+ /**
69
+ * Disconnects an account from your platform.
70
+ *
71
+ * @param null|