\seekquarry\yioop\configsCreditConfig

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

Summary

Methods
Properties
Constants
isActive()
getCreditTokenUrl()
getAttribute()
charge()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

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

getCreditTokenUrl()

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

Returns

string

getAttribute()

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

Parameters

string $name

of attribute (usually data-)

string $value

value of attribute

Returns

string —

field value of the correspond input tag

charge()

charge(float  $amount, string  $token, \seekquarry\yioop\configs\string&  $message) : boolean

Server side method that is actually responsible for charging the credit card

Parameters

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

Returns

boolean —

whether or not the charge was successful