-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add suitable
STPPaymentMethod
protocol implementation in STPSource
- Loading branch information
1 parent
119a5c9
commit 4583ba8
Showing
14 changed files
with
412 additions
and
40 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
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, | ||
} | ||
} |
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,36 @@ | ||
// Source: https://stripe.com/docs/sources/giropay | ||
{ | ||
"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": null, | ||
"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": "giropay", | ||
"usage": "single_use", | ||
"giropay": { | ||
"bank_code": null, | ||
"bic": null, | ||
"bank_name": null, | ||
"statement_descriptor": 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Source: https://stripe.com/docs/sources/multibanco | ||
{ | ||
"id": "src_16xhynE8WzK49JbAs9M21jaR", | ||
"object": "source", | ||
"amount": 1099, | ||
"client_secret": "src_client_secret_UfwvW2WHpZ0s3QEn9g5x7waU", | ||
"created": 1445277809, | ||
"currency": "eur", | ||
"flow": "receiver", | ||
"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" | ||
}, | ||
"receiver": { | ||
"address": "12345-123456789", | ||
"amount_charged": 0, | ||
"amount_received": 0, | ||
"amount_returned": 0, | ||
"refund_attributes_method": "email", | ||
"refund_attributes_status": "missing" | ||
}, | ||
"statement_descriptor": null, | ||
"status": "pending", | ||
"type": "multibanco", | ||
"usage": "single_use", | ||
"multibanco": { | ||
"reference": "12345", | ||
"entity": "123456789", | ||
} | ||
} |
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,33 @@ | ||
// Source: https://stripe.com/docs/sources/p24 | ||
{ | ||
"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": "jenny.rosen@example.com", | ||
"name": "Jenny Rosen", | ||
"phone": null, | ||
"verified_address": null, | ||
"verified_email": "jenny.rosen@example.com", | ||
"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": "p24", | ||
"usage": "single_use", | ||
"p24": { | ||
"reference": "P24-000-111-222" | ||
} | ||
} |
Oops, something went wrong.