isActive()
isActive() : boolean
Returns whether a version of CreditConfig actually capable of charging cards, receiving bitcoins, etc is in use.
Returns
boolean —whether a real credit card processing class is use
Class containing methods used to handle payment processing when keyword advertising is enabled.
This class is a "blank" implementation that does not charge credit cards An implementation that uses stripe.com for payment processing can be obtained from seekquarry.com. Putting that implementation in the APP_DIR/configs/ folder would that enable real credit card processing in Yioop
getCreditTokenUrl() : string
Returns the URL to the credit processing Javascript library responsible for sending securely the credit card details to the credit payment agency (for example, stripe.com) then sending along a authorization token as part of the form to the Yioop backend
getAttribute(string $name, string $value) : string
Used to get field values from input tag with attribute name set to $name and attribute value set to value
string | $name | of attribute (usually data-) |
string | $value | value of attribute |
field value of the correspond input tag
charge(float $amount, string $token, \seekquarry\yioop\configs\string& $message) : boolean
Server side method that is actually responsible for charging the credit card
float | $amount | dollar amount to charge the card |
string | $token | token issued for transaction from the card processing agency |
\seekquarry\yioop\configs\string& | $message | message to use as for reason for charge |
whether or not the charge was successful