PotLock / next-app-old

NextJS application built for PotLock (on NEAR)
https://alpha.potlock.org
MIT License
4 stars 1 forks source link

[FEATURE] Cart - API - Trigger Donations + Donation Success Screen #41

Open codingshot opened 8 months ago

codingshot commented 8 months ago

Problem

Need to be able to transact on cart

User Story(s):

As a donor, I want to transact on the cart, so that I can actually make donatiosn

Description

Cart uses NEAR API JS to trigger transactions.

Acceptance Criteria

Limitations

lachlanglen commented 7 months ago

@phuongfunny I added one more item to Acceptance Criteria (clear successful donations from cart)

phuongfunny commented 7 months ago

@lachlanglen hello sir, how can we can get refferral id?

lachlanglen commented 7 months ago

@phuongfunny when a user clicks the "share" icon on a project profile, it adds the user's NEAR account ID to the copied URL for them to share, e.g. https://alpha.potlock.org/project/opact_near.near?referrerId=lachlan.near (note referrerId query param)

When a user visits a project profile and adds the project to their cart, you need to check for the referrerId query param in the URL; if it is present, you should record it in the cart item, and then you will ultimately pass this ID as referrer_id with the donation transaction.

Does this make sense?

vonhatcuong commented 7 months ago

@lachlanglen please check it