Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Nov 14, 2017
1 parent ba65b27 commit 862a544
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Controller/CustomerReturn/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 2017-11-07
* Note 1.
* Stripe API documentaion → «3D Secure Card Payments with Sources» →
* Stripe API documentation → «3D Secure Card Payments with Sources» →
* «Step 4: Have the customer complete 3D Secure verification».
*
* «Once you determine if the card supports or requires 3D Secure,
Expand Down Expand Up @@ -58,7 +58,7 @@ class Index extends \Df\Payment\CustomerReturn {
* https://stripe.com/docs/sources/three-d-secure#customer-action
* Note 4.
* I treat the `pending` status as a successfull one because of this:
* «Stripe API documentaion → «3D Secure Card Payments with Sources» → «Step 5: Charge the Source».
* «Stripe API documentation → «3D Secure Card Payments with Sources» → «Step 5: Charge the Source».
* Once the customer has authenticated the payment,
* the source’s `status` transitions to `chargeable` and it can be used to make a charge request.
* This transition happens asynchronously
Expand Down
9 changes: 7 additions & 2 deletions Init/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected function redirectUrl() {return dfc($this, function() {
* and we have already handled it above.
*
* 2017-11-07
* Stripe API documentaion → «3D Secure Card Payments with Sources» →
* Stripe API documentation → «3D Secure Card Payments with Sources» →
* «Step 3: Create a 3D Secure Source object» → «Checking if verification is still required».
*
* *) When creating a 3D Secure source,
Expand Down Expand Up @@ -189,7 +189,7 @@ protected function transId() {return !$this->redirectUrl() ? null : $this->e2i(

/**
* 2017-11-06
* Stripe API documentaion → «3D Secure Card Payments with Sources» →
* Stripe API documentation → «3D Secure Card Payments with Sources» →
* «Step 2: Determine if the card supports or requires 3D Secure».
* «The behavior of, and support for, 3D Secure can vary across card networks and types.
* *) For cards that are not supported, perform a regular card payment instead.
Expand All @@ -209,6 +209,11 @@ protected function transId() {return !$this->redirectUrl() ? null : $this->e2i(
* The process must be completed for a charge to be successful.
* »
* https://stripe.com/docs/sources/three-d-secure#check-requirement
*
* 2017-11-14
* My answer to the "Stripe: How do i know whether card is 3d secure and how to charge it" question
* on Stack Overflow: https://stackoverflow.com/a/47276816
*
* @used-by source3DS()
* @return bool
*/
Expand Down

0 comments on commit 862a544

Please sign in to comment.