Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
STPSource
conform to STPPaymentMethod
, exposing labels & ima…
…ges (#976) * Make `STPSource`'s implementation of `STPPaymentMethod` public We originally made it a private implementation because the `STPPaymentMethod` protocol implementations don't return anything useful for `label` and `image` but we're going to improve on that next. * Add suitable `STPPaymentMethod` protocol implementation in `STPSource` * Add localization options for [STPSource label] * Update documentation on `STPPaymentMethod`
- Loading branch information
1 parent
a84e0da
commit df4fded
Showing
20 changed files
with
474 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Source: https://stripe.com/docs/sources/bancontact | ||
{ | ||
"id": "src_16xhynE8WzK49JbAs9M21jaR", | ||
"object": "source", | ||
"amount": 1099, | ||
"client_secret": "src_client_secret_UfwvW2WHpZ0s3QEn9g5x7waU", | ||
"created": 1445277809, | ||
"currency": "eur", | ||
"statement_descriptor": null, | ||
"flow": "redirect", | ||
"livemode": true, | ||
"owner": { | ||
"address": null, | ||
"email": null, | ||
"name": "Jenny Rosen", | ||
"phone": null, | ||
"verified_address": null, | ||
"verified_email": null, | ||
"verified_name": "Jenny Rosen", | ||
"verified_phone": null | ||
}, | ||
"redirect": { | ||
"return_url": "https://shop.example.com/crtA6B28E1", | ||
"status": "pending", | ||
"url": "https://pay.stripe.com/redirect/src_16xhynE8WzK49JbAs9M21jaR?client_secret=src_client_secret_UfwvW2WHpZ0s3QEn9g5x7waU" | ||
}, | ||
"status": "pending", | ||
"type": "bancontact", | ||
"usage": "single_use", | ||
"bancontact": { | ||
"bank_code": null, | ||
"bic": null, | ||
"bank_name": null, | ||
"iban_last4": null, | ||
"statement_descriptor": null, | ||
"preferred_language": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// Source: https://stripe.com/docs/sources/cards | ||
{ | ||
"id": "src_123", | ||
"object": "source", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Source: https://stripe.com/docs/sources/eps | ||
{ | ||
"id": "src_16xhynE8WzK49JbAs9M21jaR", | ||
"object": "source", | ||
"amount": 1099, | ||
"client_secret": "src_client_secret_UfwvW2WHpZ0s3QEn9g5x7waU", | ||
"created": 1445277809, | ||
"currency": "eur", | ||
"flow": "redirect", | ||
"livemode": true, | ||
"owner": { | ||
"address": null, | ||
"email": null, | ||
"name": "Jenny Rosen", | ||
"phone": null, | ||
"verified_address": null, | ||
"verified_email": null, | ||
"verified_name": "Jenny Rosen", | ||
"verified_phone": null | ||
}, | ||
"redirect": { | ||
"return_url": "https://shop.example.com/crtA6B28E1", | ||
"status": "pending", | ||
"url": "https://pay.stripe.com/redirect/src_16xhynE8WzK49JbAs9M21jaR?client_secret=src_client_secret_UfwvW2WHpZ0s3QEn9g5x7waU" | ||
}, | ||
"statement_descriptor": null, | ||
"status": "pending", | ||
"type": "eps", | ||
"usage": "single_use", | ||
"eps": { | ||
"reference": null, | ||
"statement_descriptor": null, | ||
} | ||
} |
Oops, something went wrong.