This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This class allows pure server side checkouts to complete orders by storing credit card numbers and cvv to the UltraCart token vault. | |
// | |
class HostedFields | |
{ | |
function __construct(string $merchantId, string $cartId) | |
{ | |
$this->merchantId = $merchantId; | |
$this->cartId = $cartId; | |
$this->public_key = $this->get_public_key(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Changes --> | |
<!-- 10/1/2015 --> | |
<!-- Added a redundant check to make sure the hosted-fields js file actually loads first. this check has a document.write --> | |
<!-- call in it, so make sure the code below is at the end of the body, not in the head section. --> | |
<!-- 7/29/2015 --> | |
<!-- Added a hash of options to the setup call to allow for --> | |
<!-- some of the issues encountered using backbone.js checkouts. --> | |
<!-- | |
options: { callback: somefunction, selectorContext: elementOrjQueryObj } |