PPPStripeErrorCard

The Gravity Forms + Stripe PPP Stripe Error Card class.

Defined (1)

The class is defined in the following location(s).

/includes/api/stripe-php/lib/Error/Card.php  
  1. class Card extends Base 
  2. public function __construct( 
  3. $message,  
  4. $stripeParam,  
  5. $stripeCode,  
  6. $httpStatus,  
  7. $httpBody,  
  8. $jsonBody,  
  9. $httpHeaders = null 
  10. ) { 
  11. parent::__construct($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders); 
  12. $this->stripeParam = $stripeParam; 
  13. $this->stripeCode = $stripeCode; 
  14.  
  15. // This one is not like the others because it was added later and we're 
  16. // trying to do our best not to change the public interface of this class' 
  17. // constructor. We should consider changing its implementation on the 
  18. // next major version bump of this library. 
  19. $this->declineCode = isset($jsonBody["error"]["decline_code"]) ? $jsonBody["error"]["decline_code"] : null; 
  20.  
  21. public function getDeclineCode() 
  22. return $this->declineCode; 
  23.  
  24. public function getStripeCode() 
  25. return $this->stripeCode; 
  26.  
  27. public function getStripeParam() 
  28. return $this->stripeParam;