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

Feat/planet cash topup #307

Merged
merged 23 commits into from
Jul 5, 2022
Merged

Feat/planet cash topup #307

merged 23 commits into from
Jul 5, 2022

Conversation

Shreyaschorge
Copy link
Contributor

Changes in this pull request:

  • PlanetCash topup with param to=planetCash in the route, thus providing user with the url like http://paydev.pp.eco?to=planetCash&step=donate

@vercel
Copy link

vercel bot commented Jun 17, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
donate-with-planet ✅ Ready (Inspect) Visit Preview Jul 4, 2022 at 8:07AM (UTC)

Copy link
Collaborator

@norbertschuler norbertschuler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My quick functional UI test succeeded. I assume for this MR basic donation tests should be done to be sure no other donation processes are broken by this change.

Copy link
Contributor

@mohitb35 mohitb35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Shreyaschorge Functionally this works properly. I have added some comments for some of the code, please take a look.

src/Donations/Micros/PlanetCashSignup.tsx Show resolved Hide resolved
@@ -13,11 +13,11 @@ import { setCountryCode } from "src/Utils/setCountryCode";
import { DONATE } from "src/Utils/donationStepConstants";

interface Props {
projectDetails: Object;
projectDetails?: Object;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codefactor reports an issue here due to using type Object

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I am aware of that.
This will be fixed in #309

donationStep: any;
giftDetails: Object;
isGift: boolean;
resolvedUrl: any;
resolvedUrl?: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codefactor reports an issue here due to using type any

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be fixed in #309

@@ -28,7 +28,7 @@ interface Props {
allowTaxDeductionChange: boolean;
currency: any;
paymentSetup: any;
treecount: any;
treecount?: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codefactor reports an issue here due to using type any.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be fixed in #309

pages/index.tsx Outdated Show resolved Hide resolved
public/locales/en/common.json Show resolved Hide resolved
const _currentPlanetCashAccount = planetCashAccounts.find((account) => {
return account.country === _country;
});
if (_currentPlanetCashAccount) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Shreyaschorge Isn't this redundant?

The useEffect above also calls setCurrentPlanetCashAccount and is dependent on country and planetCashAccounts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here 68c8c0e

src/Layout/QueryParamContext.tsx Show resolved Hide resolved
src/Donations/Components/PaymentStatus.tsx Show resolved Hide resolved
src/Common/InputTypes/AutoCompleteCountry.tsx Outdated Show resolved Hide resolved
@mariahosfeld
Copy link
Contributor

I tested the functionality, works as I expected.

@mariahosfeld mariahosfeld merged commit c586df1 into develop Jul 5, 2022
@mariahosfeld mariahosfeld deleted the feat/planetCash-topup branch July 5, 2022 13:19
@mariahosfeld mariahosfeld mentioned this pull request Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants