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

T18: Create Order Page 2/2 #34

Open
8 tasks done
aleyna-yildizli opened this issue May 23, 2024 · 0 comments
Open
8 tasks done

T18: Create Order Page 2/2 #34

aleyna-yildizli opened this issue May 23, 2024 · 0 comments
Assignees

Comments

@aleyna-yildizli
Copy link
Owner

aleyna-yildizli commented May 23, 2024

Payment methods will be implemented in this task

  • There willl be add new card option
  • Saved cards will be listed here
  • There will be payment options fetched by card data
  • POST Request to endpoint to create: /user/card
  • GET request to endpoint to list: /user/card

Untitled

Untitled

  • To get saved card data you need to create a GET request to “/user/card” endpoint

  • To save card data, you need to create a POST request to “/user/card” endpoint using data structure below:

    {
        "card_no": "1234123412341234",
        "expire_month": 12,
        "expire_year": 2025,
        "name_on_card": "Ali Baş"
    }
    
  • To update card data you need to create a PUT request to “/user/card” endpoint using data structure below:

    {
        "id": "1",
        "card_no": "1234123412341234",
        "expire_month": 1,
        "expire_year": 2030,
        "name_on_card": "Ahmet Taş"
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant