• Resolved ponk

    (@ponk)


    Hi, It’s a great plug-in.

    I’m in trouble with the following problem.

    ex)
    shortcode
    [direct-stripe type=”donation” amount=”JPY”]

    Enter 100 in the text box to specify the amount,
    In this case, I expect to settle 100 yen.
    Actually however, 10,000 yen has been settled.

    Therefore, by solving the problem by modifying the code as shown below.
    direct-stripe/process/ds_donation.php

    //$amount 	    = $pre_amount * 100;
    $amount 	    = $pre_amount * 1;

    I expect automaricary fix by types of amount.
    same type of amount
    BIF: CLP: DJF: GNF: JPY: KMF: KRW: MGA: PYG: RWF: VND: VUV: XAF: XOF: XPF:

    Thank you,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @ponk,

    Thank you for using Direct Stripe and for your feedback, it really valuable to me.

    It is definitely an option I will add for zero-decimal currencies users, as always I cannot promise exactlly when, but I’ll do my best to do it within next weeks.

    Best regards,

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @ponk,

    I updated Direct Stripe to version 2.0.6.
    This version includes a new shortcode argument zero_decimal. If set to yes, this will allow amounts in donation input field not to be transformed for decimals.

    zero_decimal=”yes”

    I also noticed in your example that you used amount argument with JPY, please note that the amount argument is useless with type=”donation” buttons and that there is the argument currency to set per button currencies ( currency=”JPY” ) or the global option in Direct Stripe -> Settings.

    Could you tell me if that works for you?

    Best regards,

    Thread Starter ponk

    (@ponk)

    Hello @nahuelmahe,

    Thanks for updating the plugin, I tried it.

    [direct-stripe type=”donation” amount=”JPY” zero_decimal=”true”]

    Completely working. excelent!

    I also noticed in your example that you used amount argument with JPY, please note that the amount argument is useless with type=”donation” buttons and that there is the argument currency to set per button currencies ( currency=”JPY” ) or the global option in Direct Stripe -> Settings.

    OK, I understand.

    Please take good rest next week, thanks.

    Thread Starter ponk

    (@ponk)

    And this topic is resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adaptation to zero-decimal currencies’ is closed to new replies.