-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Bitcoin source support. See MIGRATING.md.
- Loading branch information
1 parent
da9c29a
commit e53d570
Showing
18 changed files
with
148 additions
and
266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -361,7 +361,6 @@ | |
8BCB6E612053389800629978 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 8BCB6E552053389800629978 /* [email protected] */; }; | ||
8BD213371F044B57007F6FD1 /* BankAccount.json in Resources */ = {isa = PBXBuildFile; fileRef = 8BD213361F044B57007F6FD1 /* BankAccount.json */; }; | ||
8BD213391F0457A1007F6FD1 /* FileUpload.json in Resources */ = {isa = PBXBuildFile; fileRef = 8BD213381F0457A1007F6FD1 /* FileUpload.json */; }; | ||
8BD2133C1F0458F5007F6FD1 /* BitcoinSource.json in Resources */ = {isa = PBXBuildFile; fileRef = 8BD2133B1F0458F5007F6FD1 /* BitcoinSource.json */; }; | ||
8BD2133E1F045D31007F6FD1 /* SEPADebitSource.json in Resources */ = {isa = PBXBuildFile; fileRef = 8BD2133D1F045D31007F6FD1 /* SEPADebitSource.json */; }; | ||
8BD87B881EFB131700269C2B /* STPSourceCardDetails+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BD87B871EFB131400269C2B /* STPSourceCardDetails+Private.h */; }; | ||
8BD87B891EFB131800269C2B /* STPSourceCardDetails+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BD87B871EFB131400269C2B /* STPSourceCardDetails+Private.h */; }; | ||
|
@@ -2514,7 +2513,6 @@ | |
C1CFCB7A1ED5F88D00BE45DF /* stp_test_upload_image.jpeg in Resources */, | ||
F152322F1EA9344600D65C67 /* iDEALSource.json in Resources */, | ||
F16AA26F1F5A0F1700207FFF /* AlipaySource.json in Resources */, | ||
8BD2133C1F0458F5007F6FD1 /* BitcoinSource.json in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
|
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 |
---|---|---|
|
@@ -10,14 +10,36 @@ | |
"livemode": false, | ||
"metadata": {}, | ||
"owner": { | ||
"address": null, | ||
"email": null, | ||
"name": null, | ||
"phone": null, | ||
"verified_address": null, | ||
"verified_email": null, | ||
"verified_name": null, | ||
"verified_phone": null | ||
"address": { | ||
"city": "Pittsburgh", | ||
"country": "US", | ||
"line1": "123 Fake St", | ||
"line2": "Apt 1", | ||
"postal_code": "19219", | ||
"state": "PA" | ||
}, | ||
"email": "[email protected]", | ||
"name": "Jenny Rosen", | ||
"phone": "555-867-5309", | ||
"verified_address": { | ||
"city": "Pittsburgh", | ||
"country": "US", | ||
"line1": "123 Fake St", | ||
"line2": "Apt 1", | ||
"postal_code": "19219", | ||
"state": "PA" | ||
}, | ||
"verified_email": "[email protected]", | ||
"verified_name": "Jenny Rosen", | ||
"verified_phone": "555-867-5309" | ||
}, | ||
"receiver": { | ||
"address": "test_1MBhWS3uv4ynCfQXF3xQjJkzFPukr4K56N", | ||
"amount_charged": 300, | ||
"amount_received": 200, | ||
"amount_returned": 100, | ||
"refund_attributes_method": "email", | ||
"refund_attributes_status": "missing" | ||
}, | ||
"redirect": { | ||
"return_url": "exampleappschema://stripe_callback", | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -48,33 +48,6 @@ - (void)testCreateSource_bancontact { | |
[self waitForExpectationsWithTimeout:5.0f handler:nil]; | ||
} | ||
|
||
- (void)testCreateSource_bitcoin { | ||
STPSourceParams *params = [STPSourceParams bitcoinParamsWithAmount:1000 | ||
currency:@"usd" | ||
email:@"[email protected]"]; | ||
params.metadata = @{@"foo": @"bar"}; | ||
|
||
STPAPIClient *client = [[STPAPIClient alloc] initWithPublishableKey:apiKey]; | ||
XCTestExpectation *expectation = [self expectationWithDescription:@"Source creation"]; | ||
[client createSourceWithParams:params completion:^(STPSource *source, NSError * error) { | ||
XCTAssertNil(error); | ||
XCTAssertNotNil(source); | ||
XCTAssertEqual(source.type, STPSourceTypeBitcoin); | ||
XCTAssertEqualObjects(source.amount, params.amount); | ||
XCTAssertEqualObjects(source.currency, params.currency); | ||
XCTAssertEqualObjects(source.owner.email, params.owner[@"email"]); | ||
XCTAssertEqualObjects(source.metadata, params.metadata); | ||
XCTAssertNotNil(source.receiver); | ||
XCTAssertNotNil(source.receiver.address); | ||
XCTAssertNotNil(source.receiver.amountCharged); | ||
XCTAssertNotNil(source.receiver.amountReceived); | ||
XCTAssertNotNil(source.receiver.amountReturned); | ||
|
||
[expectation fulfill]; | ||
}]; | ||
[self waitForExpectationsWithTimeout:5.0f handler:nil]; | ||
} | ||
|
||
- (void)testCreateSource_card { | ||
STPCardParams *card = [[STPCardParams alloc] init]; | ||
card.number = @"4242 4242 4242 4242"; | ||
|
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
Oops, something went wrong.