What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Bug Stripe shows payments as unpaid + PayPal order creation fails

VisEntities

Active Member
I'm still getting users purchasing through Stripe where the payments do go through and show up on Stripe, but on the dashboard, they’re marked as Unpaid. There are no errors showing on the server either

Also PayPal payments sometimes fail. One user reported this message:
“Failed to create PayPal order: The requested action could not be performed, semantically incorrect, or failed business validation.”
 
Sorry for the delay answering.
In terms of value, what would that lead to ? I mean price with coupon deducted ?

Wrt. Stripe issue, what does the payment provider logs display in admincp for those payments ?
 
This's the Stripe error (If has senstive info please delete)

Code:
Payment provider log
Action
Error: Invalid cost amount
User
Hwang
Date
Today at 6:44 PM
Purchase request key
ZsOrhtTSazmnvH6StfLDKrgujEJB_ec2
Transaction ID
evt_3RVhXSDPgQg0qWsQ2YkxqoZt
Subscriber ID
N/A
Payment profile
Stripe
Purchasable details
Purchase
Purchasable item
Order - 442
Log details
array(48) {
  ["id"] => string(27) "py_3RVhXSDPgQg0qWsQ2iCsBfmr"
  ["object"] => string(6) "charge"
  ["amount"] => int(699)
  ["amount_captured"] => int(699)
  ["amount_refunded"] => int(0)
  ["application"] => NULL
  ["application_fee"] => NULL
  ["application_fee_amount"] => NULL
  ["balance_transaction"] => string(28) "txn_3RVhXSDPgQg0qWsQ256QNONj"
  ["billing_details"] => array(5) {
    ["address"] => array(6) {
      ["city"] => NULL
      ["country"] => string(2) "GB"
      ["line1"] => NULL
      ["line2"] => NULL
      ["postal_code"] => string(7) "AL4 8TD"
      ["state"] => NULL
    }
    ["email"] => string(20) "chubbs85@hotmail.com"
    ["name"] => string(14) "Gordon Jackson"
    ["phone"] => NULL
    ["tax_id"] => NULL
  }
  ["calculated_statement_descriptor"] => NULL
  ["captured"] => bool(true)
  ["created"] => int(1748905989)
  ["currency"] => string(3) "usd"
  ["customer"] => string(18) "cus_SQYericw2tYb1z"
  ["description"] => NULL
  ["destination"] => NULL
  ["dispute"] => NULL
  ["disputed"] => bool(false)
  ["failure_balance_transaction"] => NULL
  ["failure_code"] => NULL
  ["failure_message"] => NULL
  ["fraud_details"] => array(0) {
  }
  ["invoice"] => NULL
  ["livemode"] => bool(true)
  ["metadata"] => array(4) {
    ["user_id"] => string(4) "1129"
    ["email"] => string(20) "Chubbs85@hotmail.com"
    ["username"] => string(5) "Hwang"
    ["request_key"] => string(32) "ZsOrhtTSazmnvH6StfLDKrgujEJB_ec2"
  }
  ["on_behalf_of"] => NULL
  ["order"] => NULL
  ["outcome"] => array(8) {
    ["advice_code"] => NULL
    ["network_advice_code"] => NULL
    ["network_decline_code"] => NULL
    ["network_status"] => string(19) "approved_by_network"
    ["reason"] => NULL
    ["risk_level"] => string(6) "normal"
    ["seller_message"] => string(17) "Payment complete."
    ["type"] => string(10) "authorized"
  }
  ["paid"] => bool(true)
  ["payment_intent"] => string(27) "pi_3RVhXSDPgQg0qWsQ213vQOtF"
  ["payment_method"] => string(27) "pm_1RVhXSDPgQg0qWsQBUBAfaKr"
  ["payment_method_details"] => array(2) {
    ["link"] => array(1) {
      ["country"] => string(2) "GB"
    }
    ["type"] => string(4) "link"
  }
  ["radar_options"] => array(0) {
  }
  ["receipt_email"] => NULL
  ["receipt_number"] => NULL
  ["receipt_url"] => string(159) ""
  ["refunded"] => bool(false)
  ["review"] => NULL
  ["shipping"] => NULL
  ["source"] => NULL
  ["source_transfer"] => NULL
  ["statement_descriptor"] => NULL
  ["statement_descriptor_suffix"] => NULL
  ["status"] => string(9) "succeeded"
  ["transfer_data"] => NULL
  ["transfer_group"] => NULL
  ["eventType"] => string(16) "charge.succeeded"
}
 
Yes I believe that could be the issue.
I think I don’t round to two decimals the price sent to the payment platform while it’s stored in decimal with 2 figures.
So the comparison fails.
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart