drastik / com.drastikbydesign.stripe

CMS Independent Stripe payment processor for CiviCRM 4.x
Other
35 stars 48 forks source link

Pass different billing info values for different countries (match address settings) #121

Open tttp opened 8 years ago

tttp commented 8 years ago

Hi,

I'd like to alter the billing block, eg. change the labels or remove the state field (that isn't common nor useful in europe).

Looking at stripe's documentation, the address fields don't seem mandatory, is there a way not to have them (or only some of them) in the payment page?

I tried to add a profile, but it removes the duplicate fields from the profile and keep the billing block unchecked.

willmowlam commented 7 years ago

Labels can be easily changed here: /civicrm/admin/options/wordreplacements?reset=1

I've changed "State" to "County" as all customers are in the UK.

Ideally it wouldn't show this field though as County is superflous in the UK - plus looks odd to have Country above Post Code, so investigating how to do this - maybe the form is hookable.

drastik commented 7 years ago

Sorry, this would be related to just CiviCRM, not Stripe.

I am surprised you'd have this issue though, because Civi has been used by several countries. Maybe a setting when you installed it to choose country? Look somewhere in the Settings area to set the home country of your Organization.

I wish I could be more help, but CiviCRM has changed so much over the years, I have a hard time keeping up with all the features!

willmowlam commented 7 years ago

Hi. This module doesn't seem to honour the address layout that you can indeed alter inside Civi.

drastik commented 7 years ago

Oh I see, the state will be passed as state. Yes it looks for certain fields you are right.