Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Commit

Permalink
PCI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed Mar 3, 2017
1 parent ba8d774 commit 8bdd330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Publishes/app/Controllers/CardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function changeCard()
public function setCard(Request $request)
{
$user = auth()->user();

if (is_null($user->meta->stripe_id) && $request->input('stripeToken')) {
$user->meta->createAsStripeCustomer($request->input('stripeToken'));
} elseif ($request->input('stripeToken')) {
Expand Down
6 changes: 6 additions & 0 deletions src/Publishes/public/js/purchases.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ $(function(){
name: 'Arya Stark',
expiry: '**/****',
cvc: '***'
},
formSelectors: { /* Defaults use name= attributes, not available per PCI compliance */
numberInput: 'input#number',
expiryInput: 'input#expiry',
cvcInput: 'input#cvc',
nameInput: 'input#name'
}
});

Expand Down

0 comments on commit 8bdd330

Please sign in to comment.