i-pointmedia
Forum Replies Created
-
So, the questions goes to the developer. Is there a difference if I include this code in a plugin or in functions.php?
‘none’ or none is not working at all on our system.
I used your suggested code:
add_filter( 'wc_stripe_sepa_mandate_notification', 'disable_stripe_sepa_mandate_email' ); function disable_stripe_sepa_mandate_email( ) { return 'none'; }But still users are sending me the question where this e-mail from Stripe comes from. Means the e-mail is still sent. How can this be?
I used your code within a plugin and not the functions.php in the child theme (latest plugin version for sure).
- This reply was modified 7 years, 9 months ago by i-pointmedia.
ok I found out that if there was no order upfront (means I have added the user manually, gave him a membership manually and added manually a subscription with all the mentioned fields, including first name and last name), then it shows no first and last name and it looks like a bug.
by the way, I added a subscription (WooCommerce subscription) manually with no order upfront but if I check the billing address there is a first and last name and in the subscription I also added a first and last name. Only the order is missing. I don’t know if this affects something. If I go to his user I can see a first name and last name in the billing address which should actually match with the fields you mean from the frontend from is account details.
I only have access to the backend where I could see the account first name and second name set. Strange. Ok, I will keep an eye on it.
He has already bought something in the past but without your plugin, then he added afterwards his payment method. If I check his useraccount now: wordpress profile shows a first name and a second name. If I go to the woocommerce payment information there is also a firstname and a second name in the billing address but no entry in the delivery address. From where does you plugin take the first name and second name information? From the wordpress profile account or the woocommerce data which are already set? Very strange. So if it works for your I have to check this again with a completely new order.
or you want the field to show “Name: myfirst mysecond Username: myusername“. So I guess the name won’t be transferred correctly, that is why I see two blanks
but the description field shows the word “Name:”, then two blanks, then the word “Username:”, then one blank and then my actual username. So it looks like that “Name: Username: myusername”. I guess this is not what you wanted to achieve but probably this should show the field “Username: myusername”
@svtx: I have the exact same problem. Did you find a solution?
but that is the point. I don’t get the log entry on our website connected to the log on stripe. There is no entry concerning for example this order which says failed or whatever. So Stripe says ok, but no log entry on our side. You might say then the connection doesn’t work. BUT why is it working in test mode? Any ideas?
is the webhook version important?
At the moment it says 2018-02-28.But the latest is 2018-05-21.
It says ok:
200 OK, Post v1/charges, 2018-05-31Status: 200 Success (1 try)
Retry history: [2018/06/06 04:07 to https://onlinelessons.tv/?wc-api=wc_stripe%20%5D: (200) OKID: xxxxxxxxxx
Time: 2018/05/31 20:01:21
Method: POST
URL: /v1/charges
Status: 200
IP address: 136.243.5.246
Version: 2018-02-28
Source: WooCommerce Stripe Gateway/4.1.3 (https://woocommerce.com/products/stripe/)
Related: Source — xxxxxxxxxxxxx
Charge — xxxxxxxxxxxx
Customer — xxxxxxxxxx
Idempotency Key — 23353-xxxxxxx
Origin: https://api.stripe.com/I don’t see any webhook entries in this log, only get and post and the “200 ok” debit card charges and some “402 error” of credit cards which failed (which is understandable)
Here the event from 2018-06-06 from an order of 2018-05-31. I deleted the personal datas there. This is showing in Stripe but not arriving in the log of WooCommerce. Webhook succeeded as well.
Date: 2018/06/06 04:06:41
Type: charge.succeeded
Source: Automatic{
“object”: {
“id”: “_____________________”,
“object”: “charge”,
“amount”: 1000,
“amount_refunded”: 0,
“application”: null,
“application_fee”: null,
“balance_transaction”: “txn_1CZr2q4GfRLrptxmy8evPyCA”,
“captured”: true,
“created”: 1527789681,
“currency”: “eur”,
“customer”: “___________________”,
“description”: “OnlineLessons.tv – Bestellung 23353”,
“destination”: null,
“dispute”: null,
“failure_code”: null,
“failure_message”: null,
“fraud_details”: {
},
“invoice”: null,
“livemode”: true,
“metadata”: {
“customer_name”: “_______________”,
“customer_email”: “_________________”,
“order_id”: “23353”,
“payment_type”: “recurring”,
“site_url”: “_______________________”
},
“on_behalf_of”: null,
“order”: null,
“outcome”: {
“network_status”: “approved_by_network”,
“reason”: null,
“risk_level”: “not_assessed”,
“seller_message”: “Payment complete.”,
“type”: “authorized”
},
“paid”: true,
“receipt_email”: null,
“receipt_number”: null,
“refunded”: false,
“refunds”: {
“object”: “list”,
“data”: [
],
“has_more”: false,
“total_count”: 0,
“url”: “/v1/charges/py_1CXv5R4GfRLrptxmoAE8pa1T/refunds”
},
“review”: null,
“shipping”: null,
“source”: {
“id”: “____________________________”,
“object”: “source”,
“amount”: null,
“client_secret”: “________________________”,
“created”: 1527789681,
“currency”: “eur”,
“customer”: “__________________”,
“flow”: “none”,
“livemode”: true,
“mandate”: {
“acceptance”: {
“date”: null,
“ip”: null,
“status”: “pending”,
“user_agent”: null
},
“notification_method”: “email”,
“reference”: “VG3VCR3RR8VYK5R7”,
“url”: “https://hooks.stripe.com/adapter/sepa_debit/file/src_1CBkV44GfRLrptxmRwg0zL24/src_client_secret_CawNZ1R0D0i2yW3fo8rkS2Ay”
},
“metadata”: {
},
“owner”: {
“address”: {
“city”: “_____________”,
“country”: “DE”,
“line1”: “______________”,
“line2”: “”,
“postal_code”: “_________”,
“state”: “”
},
“email”: “_____________”,
“name”: “_______________”,
“phone”: “_____________”,
“verified_address”: null,
“verified_email”: null,
“verified_name”: null,
“verified_phone”: null
},
“sepa_debit”: {
“bank_code”: “______________”,
“country”: “DE”,
“fingerprint”: “_______________”,
“last4”: “3001”,
“mandate_reference”: “______________”,
“mandate_url”: “https://hooks.stripe.com/adapter/sepa_debit/file/src_1CBkV44GfRLrptxmRwg0zL24/src_client_secret_CawNZ1R0D0i2yW3fo8rkS2Ay”,
“branch_code”: null
},
“statement_descriptor”: null,
“status”: “chargeable”,
“type”: “sepa_debit”,
“usage”: “reusable”
},
“source_transfer”: null,
“statement_descriptor”: “OnlineLessons.tv”,
“status”: “succeeded”,
“transfer_group”: null
},
“previous_attributes”: null
}Again, the stripe logs look fine and in WooCommerce status the logs in test mode show the response but not in live mode. In live mode I don’t see any logs in WooCommerce but only in the Stripe backend. So stripe told me to ask the plugin developer or WooCommerce.
The webhooks in live and test mode succeeded. But how can it work in test mode and communicate with our side but not in live mode? It is the same connection.