mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Logging for wepay
This commit is contained in:
parent
92fe9ff711
commit
5748d34e16
File diff suppressed because one or more lines are too long
@ -22,7 +22,7 @@
|
||||
"/js/clients/linkify-urls.js": "/js/clients/linkify-urls.js?id=2b2fe55f926789abc52f19111006e1ec",
|
||||
"/js/clients/payments/braintree-credit-card.js": "/js/clients/payments/braintree-credit-card.js?id=cf25867ef09115b7f5a209819ba79bbf",
|
||||
"/js/clients/payments/braintree-paypal.js": "/js/clients/payments/braintree-paypal.js?id=5764a8d406c1eda848d073f10d178626",
|
||||
"/js/clients/payments/wepay-credit-card.js": "/js/clients/payments/wepay-credit-card.js?id=3c8dff12ca0269b3e09467a9cabed309",
|
||||
"/js/clients/payments/wepay-credit-card.js": "/js/clients/payments/wepay-credit-card.js?id=dbba20d70fbebb326ddbc46115af9771",
|
||||
"/js/clients/payment_methods/wepay-bank-account.js": "/js/clients/payment_methods/wepay-bank-account.js?id=b8706d7de6127f184ad19b2a810880be",
|
||||
"/js/clients/payments/paytrace-credit-card.js": "/js/clients/payments/paytrace-credit-card.js?id=e0b1231a7bf6252672836222285c0f52",
|
||||
"/js/clients/payments/mollie-credit-card.js": "/js/clients/payments/mollie-credit-card.js?id=bbab588ed009a93345bec520cbe66869",
|
||||
|
@ -73,13 +73,6 @@ class WePayCreditCard {
|
||||
cardButton.querySelector('svg').classList.remove('hidden');
|
||||
cardButton.querySelector('span').classList.add('hidden');
|
||||
|
||||
var client_address = {};
|
||||
client_address['country'] = document.querySelector(['meta[name=country_code']).content;
|
||||
|
||||
if(document.querySelector(['meta[name=country_code']).content == 'US'){
|
||||
client_address['postal_code'] = document.querySelector(['meta[name=client-postal-code']).content;
|
||||
}
|
||||
|
||||
WePay.credit_card.create({
|
||||
client_id: document.querySelector('meta[name=wepay-client-id]').content,
|
||||
user_name: document.getElementById('cardholder_name').value,
|
||||
@ -88,7 +81,10 @@ class WePayCreditCard {
|
||||
cvv: this.myCard.CardJs('cvc').replace(/[^\d]/g, ''),
|
||||
expiration_month: this.myCard.CardJs('expiryMonth').replace(/[^\d]/g, ''),
|
||||
expiration_year: this.myCard.CardJs('expiryYear').replace(/[^\d]/g, ''),
|
||||
address: JSON.stringify(client_address)
|
||||
address: {
|
||||
country: document.querySelector(['meta[name=country_code']).content,
|
||||
postal_code: document.querySelector(['meta[name=client-postal-code']).content,
|
||||
}
|
||||
}, (data) => {
|
||||
if (data.error) {
|
||||
cardButton = document.getElementById('card_button');
|
||||
@ -123,13 +119,6 @@ class WePayCreditCard {
|
||||
return;
|
||||
}
|
||||
|
||||
var client_address = {};
|
||||
client_address['country'] = document.querySelector(['meta[name=country_code']).content;
|
||||
|
||||
if(document.querySelector(['meta[name=country_code']).content == 'US'){
|
||||
client_address['postal_code'] = document.querySelector(['meta[name=client-postal-code']).content;
|
||||
}
|
||||
|
||||
WePay.credit_card.create({
|
||||
client_id: document.querySelector('meta[name=wepay-client-id]').content,
|
||||
user_name: document.getElementById('cardholder_name').value,
|
||||
@ -138,7 +127,10 @@ class WePayCreditCard {
|
||||
cvv: this.myCard.CardJs('cvc').replace(/[^\d]/g, ''),
|
||||
expiration_month: this.myCard.CardJs('expiryMonth').replace(/[^\d]/g, ''),
|
||||
expiration_year: this.myCard.CardJs('expiryYear').replace(/[^\d]/g, ''),
|
||||
address: JSON.stringify(client_address)
|
||||
address: {
|
||||
country: document.querySelector(['meta[name=country_code']).content,
|
||||
postal_code: document.querySelector(['meta[name=client-postal-code']).content,
|
||||
}
|
||||
}, (data) => {
|
||||
if (data.error) {
|
||||
this.payNowButton.disabled = false;
|
||||
|
@ -96,7 +96,6 @@
|
||||
@include('portal.ninja2020.components.primary-color')
|
||||
|
||||
<body class="antialiased">
|
||||
<div>
|
||||
@if(session()->has('message'))
|
||||
<div class="py-1 text-sm text-center text-white bg-primary disposable-alert">
|
||||
{{ session('message') }}
|
||||
@ -157,7 +156,7 @@
|
||||
}
|
||||
</script>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
<footer>
|
||||
|
@ -1,5 +1,5 @@
|
||||
@extends('portal.ninja2020.layout.app')
|
||||
<div>
|
||||
|
||||
@isset($gateway_title)
|
||||
@section('meta_title', $gateway_title)
|
||||
@else
|
||||
@ -80,4 +80,3 @@
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user