dualcube / moodle-enrol_stripepayment

Moodle Stripe Payment Collector
16 stars 27 forks source link

Amount in yen is multiplied by 100 at checkout. #135

Closed tenboshi closed 9 months ago

tenboshi commented 10 months ago

PHP:7.3 Moodle version:4.1 Plugin version: Stripe Payment (enrol_stripepayment) 3.4.4 (Build: 2023101400)

image

Course setting: cost: ¥ 1,500

image

enroll course: price is correct.

image

but on Checkout: price mutiplied by 100: ¥ 150,000

image

stripe dashboard: receives multiplied by 100: ¥ 150,000

image

moumitahalder commented 9 months ago

Hi @tenboshi, it might happen that stripe is accepting payments in cents.

That's why as you want to receive money 150, hence stripe will receive 150000 Please do contact stripe regarding this.

tenboshi commented 9 months ago

Hi @moumitahalder , thanks for commenting on my post.

send json data is "150000 JPY". it's already wrong.

  "line_items": {
    "0": {
      "price_data": {
        "unit_amount": "150000", 
        "currency": "JPY",