Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove traces of former Stripe integration attempts #1882

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Modals/AuthorSupportModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const AuthorSupportModal = (props) => {
object_id: paper.id, // id of paper or author
amount,
payment_option: "SINGLE", // {'SINGLE', 'MONTHLY'},
payment_type: "RSC_OFF_CHAIN", //{'RSC_ON_CHAIN', 'RSC_OFF_CHAIN', 'ETH', 'BTC', 'STRIPE', 'PAYPAL'}
payment_type: "RSC_OFF_CHAIN", //{'RSC_ON_CHAIN', 'RSC_OFF_CHAIN', 'ETH', 'BTC', 'PAYPAL'}
};

return fetch(API.SUPPORT, API.POST_CONFIG(payload))
Expand Down
6 changes: 0 additions & 6 deletions components/Notifications/NotificationEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,6 @@ const styles = StyleSheet.create({
lineHeight: "100%",
verticalAlign: "middle",
},
stripeLogo: {
position: "absolute",
height: 20,
right: 0,
bottom: 0,
},
italics: {
fontStyle: "italic",
},
Expand Down
5 changes: 1 addition & 4 deletions config/types/root_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export type User = {
// onboarding fields
has_seen_first_coin_modal: boolean;
has_seen_orcid_connect_modal: boolean;
has_seen_stripe_modal: boolean;
has_completed_onboarding: boolean;

id: ID;
Expand Down Expand Up @@ -234,7 +233,6 @@ export const parseOrganization = (raw: any): Organization => {
};

export const parseUnifiedDocument = (raw: any): UnifiedDocument => {

if (typeof raw !== "object") {
return raw;
}
Expand Down Expand Up @@ -277,7 +275,6 @@ export const parseUnifiedDocument = (raw: any): UnifiedDocument => {
parsed["authors"] = unparsedInnerDoc.authors.map(parseAuthorProfile);
}


// @ts-ignore
return parsed;
};
Expand Down Expand Up @@ -311,7 +308,7 @@ export const parseAuthorProfile = (raw: any): AuthorProfile => {
return raw;
}

let url = `/author/${raw.id}`;
const url = `/author/${raw.id}`;

const parsed = {
id: raw.id,
Expand Down
6 changes: 0 additions & 6 deletions tests/cypress/fixtures/paper.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
"eth_address": null,
"btc_address": null,
"rsc_address": null,
"stripe_acc": null,
"stripe_verified": false,
"author": 397
}
}],
Expand Down Expand Up @@ -122,8 +120,6 @@
"eth_address": null,
"btc_address": null,
"rsc_address": null,
"stripe_acc": null,
"stripe_verified": false,
"author": 1
}
},
Expand Down Expand Up @@ -219,8 +215,6 @@
"eth_address": null,
"btc_address": null,
"rsc_address": null,
"stripe_acc": null,
"stripe_verified": false,
"author": 1
}
},
Expand Down
4 changes: 0 additions & 4 deletions tests/cypress/fixtures/search-best-results.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@
"eth_address": null,
"btc_address": null,
"rsc_address": null,
"stripe_acc": null,
"stripe_verified": false,
"author": 1
}
},
Expand Down Expand Up @@ -281,8 +279,6 @@
"eth_address": null,
"btc_address": null,
"rsc_address": null,
"stripe_acc": null,
"stripe_verified": false,
"author": 1
}
},
Expand Down