Skip to content
Snippets Groups Projects
Commit 89e874ed authored by mattwire's avatar mattwire
Browse files

Compatibility with new stripeimport extension

parent a0aca5b4
Branches
Tags
1 merge request!241Stripe Import extension
......@@ -74,6 +74,13 @@ class CRM_Stripe_Api {
case 'payment_intent_id':
return (string) $stripeObject->payment_intent;
case 'description':
return (string) $stripeObject->description;
case 'status':
// This might be "succeeded", "pending", "failed" (https://stripe.com/docs/api/charges/object#charge_object-status)
return (string) $stripeObject->status;
}
break;
......
......@@ -60,7 +60,7 @@ class Events {
/**
* @return \stdClass
*/
private function getResultObject() {
public function getResultObject() {
$return = new \stdClass();
$return->message = '';
$return->ok = FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment