Ai_Admin/API日志.log
2024-09-23 09:56:57 +00:00

399 lines
18 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

2024-09-22 18:17:37,681 - API日志 - INFO - 接收到 PayPal Webhook 请求...
2024-09-22 18:17:37,683 - API日志 - INFO - 验证 PayPal Webhook 签名...
2024-09-22 18:17:37,777 - API日志 - INFO - 获取的访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:17:37,922 - API日志 - ERROR - Webhook 签名验证失败: {"verification_status":"FAILURE"}
2024-09-22 18:17:37,922 - API日志 - ERROR - Webhook 签名验证失败
2024-09-22 18:24:23,046 - API日志 - INFO - [支付执行] 获取的访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:24:42,785 - API日志 - INFO - [支付执行] 获取的访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:26:49,559 - API日志 - INFO - [支付执行] 获取的访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:28:05,385 - API日志 - INFO - [支付执行] 接收到来自前端的 POST 请求,开始处理支付...
2024-09-22 18:28:05,386 - API日志 - INFO - [支付执行] 请求内容: paymentId=PAYID-M3X7B2I33A66403KU400254T, PayerID=X834GPHKF3RFJ
2024-09-22 18:28:05,392 - API日志 - INFO - [支付执行] 获取到的订单信息: Order PAYID-M3X7B2I33A66403KU400254T - pending
2024-09-22 18:28:05,489 - API日志 - INFO - [支付执行] 获取的访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:28:05,490 - API日志 - INFO - [支付执行] 获取到的 PayPal 访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:28:05,490 - API日志 - INFO - [支付执行] 发送支付请求URL: https://api.paypal.com/v1/payments/payment/PAYID-M3X7B2I33A66403KU400254T/execute, 请求头: {'Content-Type': 'application/json', 'Authorization': 'Bearer A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w'}, 请求体: {'payer_id': 'X834GPHKF3RFJ'}
2024-09-22 18:28:07,428 - API日志 - INFO - [支付执行] PayPal API 响应状态码: 200
2024-09-22 18:28:07,429 - API日志 - INFO - [支付执行] PayPal API 响应内容: {'id': 'PAYID-M3X7B2I33A66403KU400254T', 'intent': 'sale', 'state': 'approved', 'cart': '371876708L7928818', 'payer': {'payment_method': 'paypal', 'status': 'UNVERIFIED', 'payer_info': {'email': 'a1726850085@outlook.com', 'first_name': 'Ivery', 'last_name': 'Kevin', 'payer_id': 'X834GPHKF3RFJ', 'shipping_address': {'recipient_name': 'Ivery Kevin', 'line1': '11831 S Riverwood Rd', 'city': 'Portland', 'state': 'OR', 'postal_code': '97219-8453', 'country_code': 'US'}, 'country_code': 'US'}}, 'transactions': [{'amount': {'total': '1.00', 'currency': 'USD', 'details': {'subtotal': '1.00', 'shipping': '0.00', 'insurance': '0.00', 'handling_fee': '0.00', 'shipping_discount': '0.00', 'discount': '0.00'}}, 'payee': {'merchant_id': 'LYG9KGB29F6HA', 'email': 'tianyuanliu748@gmail.com'}, 'description': '购买 Hobby 计划', 'soft_descriptor': 'PAYPAL *SHENGXUF6HA', 'item_list': {'items': [{'name': 'Hobby', 'sku': '1', 'price': '1.00', 'currency': 'USD', 'tax': '0.00', 'quantity': 1, 'image_url': ''}], 'shipping_address': {'recipient_name': 'Ivery Kevin', 'line1': '11831 S Riverwood Rd', 'city': 'Portland', 'state': 'OR', 'postal_code': '97219-8453', 'country_code': 'US'}}, 'related_resources': [{'sale': {'id': '93764071GB2429802', 'state': 'completed', 'amount': {'total': '1.00', 'currency': 'USD', 'details': {'subtotal': '1.00', 'shipping': '0.00', 'insurance': '0.00', 'handling_fee': '0.00', 'shipping_discount': '0.00', 'discount': '0.00'}}, 'payment_mode': 'INSTANT_TRANSFER', 'protection_eligibility': 'INELIGIBLE', 'transaction_fee': {'value': '0.34', 'currency': 'USD'}, 'receipt_id': '3581344982302161', 'parent_payment': 'PAYID-M3X7B2I33A66403KU400254T', 'create_time': '2024-09-22T10:28:05Z', 'update_time': '2024-09-22T10:28:05Z', 'links': [{'href': 'https://api.paypal.com/v1/payments/sale/93764071GB2429802', 'rel': 'self', 'method': 'GET'}, {'href': 'https://api.paypal.com/v1/payments/sale/93764071GB2429802/refund', 'rel': 'refund', 'method': 'POST'}, {'href': 'https://api.paypal.com/v1/payments/payment/PAYID-M3X7B2I33A66403KU400254T', 'rel': 'parent_payment', 'method': 'GET'}], 'soft_descriptor': 'PAYPAL *SHENGXUF6HA'}}]}], 'failed_transactions': [], 'create_time': '2024-09-22T10:26:49Z', 'update_time': '2024-09-22T10:28:05Z', 'links': [{'href': 'https://api.paypal.com/v1/payments/payment/PAYID-M3X7B2I33A66403KU400254T', 'rel': 'self', 'method': 'GET'}]}
2024-09-22 18:28:07,429 - API日志 - INFO - [支付执行] 支付成功,订单状态更新为 'approved'
2024-09-22 18:28:07,477 - API日志 - INFO - [支付执行] 用户 tianyuan 当前积分: 5020
2024-09-22 18:28:07,477 - API日志 - INFO - [支付执行] 购买的套餐: Hobby
2024-09-22 18:28:07,477 - API日志 - INFO - [支付执行] 增加的积分: 290
2024-09-22 18:28:07,477 - API日志 - INFO - [支付执行] 用户新的总积分: 5310
2024-09-22 18:28:35,564 - API日志 - INFO - 接收到 PayPal Webhook 请求...
2024-09-22 18:28:35,565 - API日志 - INFO - 验证 PayPal Webhook 签名...
2024-09-22 18:28:35,660 - API日志 - INFO - 获取的访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:28:35,726 - API日志 - INFO - 接收到 PayPal Webhook 请求...
2024-09-22 18:28:35,726 - API日志 - INFO - 验证 PayPal Webhook 签名...
2024-09-22 18:28:35,783 - API日志 - INFO - Webhook 签名验证成功
2024-09-22 18:28:35,784 - API日志 - INFO - 接收到 PayPal Webhook 事件: PAYMENT.SALE.COMPLETED
2024-09-22 18:28:35,784 - API日志 - INFO - Webhook payload: {
"id": "WH-2FN654714V223204Y-3H573983D8753462B",
"event_version": "1.0",
"create_time": "2024-09-22T10:28:25.978Z",
"resource_type": "sale",
"event_type": "PAYMENT.SALE.COMPLETED",
"summary": "Payment completed for $ 1.0 USD",
"resource": {
"id": "8J2464841S8849530",
"state": "completed",
"amount": {
"total": "1.00",
"currency": "USD",
"details": {
"subtotal": "1.00"
}
},
"payment_mode": "INSTANT_TRANSFER",
"protection_eligibility": "INELIGIBLE",
"payment_hold_status": "RELEASED",
"transaction_fee": {
"value": "0.34",
"currency": "USD"
},
"invoice_number": "",
"receipt_id": "3187001469785346",
"parent_payment": "PAYID-M3X6Z4A64B33684A12961640",
"create_time": "2024-09-22T10:17:09Z",
"update_time": "2024-09-22T10:28:25Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/sale/8J2464841S8849530",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/sale/8J2464841S8849530/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/payment/PAYID-M3X6Z4A64B33684A12961640",
"rel": "parent_payment",
"method": "GET"
}
],
"soft_descriptor": "PAYPAL *SHENGXUF6HA",
"application_context": {
"related_qualifiers": [
{
"type": "CART",
"id": "92V035924N755444Y"
}
]
}
},
"links": [
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-2FN654714V223204Y-3H573983D8753462B",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-2FN654714V223204Y-3H573983D8753462B/resend",
"rel": "resend",
"method": "POST"
}
]
}
2024-09-22 18:28:35,792 - API日志 - INFO - 订单 PAYID-M3X6Z4A64B33684A12961640 已经完成,不重复更新
2024-09-22 18:28:35,798 - API日志 - INFO - 获取的访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:28:35,944 - API日志 - INFO - Webhook 签名验证成功
2024-09-22 18:28:35,944 - API日志 - INFO - 接收到 PayPal Webhook 事件: PAYMENT.SALE.COMPLETED
2024-09-22 18:28:35,944 - API日志 - INFO - Webhook payload: {
"id": "WH-1LW134865M759612A-5V279218RV2327132",
"event_version": "1.0",
"create_time": "2024-09-22T10:28:26.539Z",
"resource_type": "sale",
"event_type": "PAYMENT.SALE.COMPLETED",
"summary": "Payment completed for $ 1.0 USD",
"resource": {
"id": "93764071GB2429802",
"state": "completed",
"amount": {
"total": "1.00",
"currency": "USD",
"details": {
"subtotal": "1.00"
}
},
"payment_mode": "INSTANT_TRANSFER",
"protection_eligibility": "INELIGIBLE",
"payment_hold_status": "RELEASED",
"transaction_fee": {
"value": "0.34",
"currency": "USD"
},
"invoice_number": "",
"receipt_id": "3581344982302161",
"parent_payment": "PAYID-M3X7B2I33A66403KU400254T",
"create_time": "2024-09-22T10:28:05Z",
"update_time": "2024-09-22T10:28:26Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/sale/93764071GB2429802",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/sale/93764071GB2429802/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/payment/PAYID-M3X7B2I33A66403KU400254T",
"rel": "parent_payment",
"method": "GET"
}
],
"soft_descriptor": "PAYPAL *SHENGXUF6HA",
"application_context": {
"related_qualifiers": [
{
"type": "CART",
"id": "371876708L7928818"
}
]
}
},
"links": [
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-1LW134865M759612A-5V279218RV2327132",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-1LW134865M759612A-5V279218RV2327132/resend",
"rel": "resend",
"method": "POST"
}
]
}
2024-09-22 18:28:35,951 - API日志 - INFO - 订单 PAYID-M3X7B2I33A66403KU400254T 已经完成,不重复更新
2024-09-22 18:28:41,611 - API日志 - INFO - 接收到 PayPal Webhook 请求...
2024-09-22 18:28:41,612 - API日志 - INFO - 验证 PayPal Webhook 签名...
2024-09-22 18:28:41,697 - API日志 - INFO - 获取的访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:28:41,867 - API日志 - INFO - Webhook 签名验证成功
2024-09-22 18:28:41,868 - API日志 - INFO - 接收到 PayPal Webhook 事件: PAYMENTS.PAYMENT.CREATED
2024-09-22 18:28:41,868 - API日志 - INFO - Webhook payload: {
"id": "WH-1AN47569NH411850K-8ED84444A22150425",
"event_version": "1.0",
"create_time": "2024-09-22T10:28:13.901Z",
"resource_type": "payment",
"event_type": "PAYMENTS.PAYMENT.CREATED",
"summary": "Checkout payment is created and approved by buyer",
"resource": {
"update_time": "2024-09-22T10:28:11Z",
"create_time": "2024-09-22T10:26:49Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/payment/PAYID-M3X7B2I33A66403KU400254T",
"rel": "self",
"method": "GET"
}
],
"id": "PAYID-M3X7B2I33A66403KU400254T",
"state": "approved",
"transactions": [
{
"amount": {
"total": "1.00",
"currency": "USD",
"details": {
"subtotal": "1.00",
"shipping": "0.00",
"insurance": "0.00",
"handling_fee": "0.00",
"shipping_discount": "0.00",
"discount": "0.00"
}
},
"payee": {
"merchant_id": "LYG9KGB29F6HA",
"email": "tianyuanliu748@gmail.com"
},
"description": "\u8d2d\u4e70 Hobby \u8ba1\u5212",
"soft_descriptor": "PAYPAL *SHENGXUF6HA",
"item_list": {
"items": [
{
"name": "Hobby",
"sku": "1",
"price": "1.00",
"currency": "USD",
"tax": "0.00",
"quantity": 1,
"image_url": ""
}
],
"shipping_address": {
"recipient_name": "Ivery Kevin",
"line1": "11831 S Riverwood Rd",
"city": "Portland",
"state": "OR",
"postal_code": "97219-8453",
"country_code": "US"
}
},
"related_resources": [
{
"sale": {
"id": "93764071GB2429802",
"state": "completed",
"amount": {
"total": "1.00",
"currency": "USD",
"details": {
"subtotal": "1.00",
"shipping": "0.00",
"insurance": "0.00",
"handling_fee": "0.00",
"shipping_discount": "0.00",
"discount": "0.00"
}
},
"payment_mode": "INSTANT_TRANSFER",
"protection_eligibility": "INELIGIBLE",
"transaction_fee": {
"value": "0.34",
"currency": "USD"
},
"receipt_id": "3581344982302161",
"parent_payment": "PAYID-M3X7B2I33A66403KU400254T",
"create_time": "2024-09-22T10:28:05Z",
"update_time": "2024-09-22T10:28:11Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/sale/93764071GB2429802",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/sale/93764071GB2429802/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/payment/PAYID-M3X7B2I33A66403KU400254T",
"rel": "parent_payment",
"method": "GET"
}
],
"soft_descriptor": "PAYPAL *SHENGXUF6HA"
}
}
]
}
],
"intent": "sale",
"payer": {
"payment_method": "paypal",
"status": "UNVERIFIED",
"payer_info": {
"email": "a1726850085@outlook.com",
"first_name": "Ivery",
"last_name": "Kevin",
"payer_id": "X834GPHKF3RFJ",
"shipping_address": {
"recipient_name": "Ivery Kevin",
"line1": "11831 S Riverwood Rd",
"city": "Portland",
"state": "OR",
"postal_code": "97219-8453",
"country_code": "US"
},
"phone": "8189414878",
"country_code": "US"
}
},
"cart": "371876708L7928818"
},
"links": [
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-1AN47569NH411850K-8ED84444A22150425",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-1AN47569NH411850K-8ED84444A22150425/resend",
"rel": "resend",
"method": "POST"
}
]
}
2024-09-22 18:28:41,868 - API日志 - INFO - 回调接收到 开始执行支付订单ID: PAYID-M3X7B2I33A66403KU400254T, 付款人ID: X834GPHKF3RFJ
2024-09-22 18:28:41,876 - API日志 - INFO - 订单 PAYID-M3X7B2I33A66403KU400254T 已经支付,不需要再次执行支付
2024-09-22 18:28:52,038 - API日志 - INFO - 接收到 PayPal Webhook 请求...
2024-09-22 18:28:52,039 - API日志 - INFO - 验证 PayPal Webhook 签名...
2024-09-22 18:28:52,132 - API日志 - INFO - 获取的访问令牌: A21AAMX8udSqwN2hgx455qnPAztVrGR8JEIEml8vS52RV_fA0EhIk78KooWj4TccndnZ2M7RFuVn8fnxikBQF8Qhmy7giu35w
2024-09-22 18:28:52,290 - API日志 - INFO - Webhook 签名验证成功
2024-09-22 18:28:52,291 - API日志 - INFO - 接收到 PayPal Webhook 事件: PAYMENT.SALE.COMPLETED
2024-09-22 18:28:52,295 - API日志 - INFO - Webhook payload: {
"id": "WH-3G095450SJ914413E-50608413LR726791H",
"event_version": "1.0",
"create_time": "2024-09-22T10:28:10.966Z",
"resource_type": "sale",
"event_type": "PAYMENT.SALE.COMPLETED",
"summary": "Payment completed for $ 1.0 USD",
"resource": {
"id": "93764071GB2429802",
"state": "completed",
"amount": {
"total": "1.00",
"currency": "USD",
"details": {
"subtotal": "1.00"
}
},
"payment_mode": "INSTANT_TRANSFER",
"protection_eligibility": "INELIGIBLE",
"transaction_fee": {
"value": "0.34",
"currency": "USD"
},
"invoice_number": "",
"receipt_id": "3581344982302161",
"parent_payment": "PAYID-M3X7B2I33A66403KU400254T",
"create_time": "2024-09-22T10:28:05Z",
"update_time": "2024-09-22T10:28:11Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/sale/93764071GB2429802",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/sale/93764071GB2429802/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/payment/PAYID-M3X7B2I33A66403KU400254T",
"rel": "parent_payment",
"method": "GET"
}
],
"soft_descriptor": "PAYPAL *SHENGXUF6HA",
"application_context": {
"related_qualifiers": [
{
"type": "CART",
"id": "371876708L7928818"
}
]
}
},
"links": [
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-3G095450SJ914413E-50608413LR726791H",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-3G095450SJ914413E-50608413LR726791H/resend",
"rel": "resend",
"method": "POST"
}
]
}
2024-09-22 18:28:52,304 - API日志 - INFO - 订单 PAYID-M3X7B2I33A66403KU400254T 已经完成,不重复更新