Automattic / Automattic/jetpack

Simple payments block: default currency to user's preferred choise

Open
#11,888 0 comments 0 reactions 0 assignees View on GitHub
[Block] Pay With Paypal [Feature] Pay with PayPal [Focus] Blocks [Pri] Low Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

When creating a Simple Payments block in Gutenberg, the currency selection now always defaults to USD.

image

Currency should default to user's locale just like it does in Calypso Classic editor:

image

The currency could also default to _site's_ locale.

It could also default to previously chosen currency if available so that user wouldn't need to choose it for each block separately.

Contributor guide

Open the contributing guide

Research direction

Locate the Simple Payments block's currency-selection entry point and compare its defaulting behavior with the Calypso Classic editor. Resolve whether the default should use the user's locale, the site's locale, or a previously selected currency, then verify that a newly created block no longer always selects USD.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend, payments
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.