|
@@ -117,8 +117,8 @@ function __construct(){
|
|
|
//limit=100&fulfillment_status=unshipped&financial_status=paid&status=open&created_at_max=2025-07-16T00:00:00Z&gateway=klarna
|
|
|
//limit=100&fulfillment_status=unshipped&financial_status=paid&status=open&created_at_min=2025-07-16T00:00:00Z&gateway=klarna
|
|
|
// $post['shopify'] = $shopapi.'?limit=10&id=5907832471740';
|
|
|
- $post['shopify'] = $shopapi.'?limit=100&fulfillment_status=unshipped&financial_status=paid&status=open&created_at_min='.date('c',time()-3600*24*2);//?status=any所有订单 &limit=200每页多少单
|
|
|
-
|
|
|
+ $post['shopify'] = $shopapi.'?limit=100&fulfillment_status=unshipped&financial_status=paid&status=open&created_at_min='.date('c',time()-3600*24*2);//?status=any所有订单 &limit=200每页多少单 Afterpay (New)
|
|
|
+ //$post['shopify'] = $shopapi.'?limit=100&fulfillment_status=unshipped&financial_status=paid&status=open&gateway=Afterpay (New)';
|
|
|
$ch = curl_init();
|
|
|
curl_setopt($ch,CURLOPT_URL,'https://edm.alipearl.net/soapapi.php');
|
|
|
curl_setopt($ch, CURLOPT_POST, 1);
|
|
@@ -185,6 +185,9 @@ function __construct(){
|
|
|
else if(stripos($v['gateway'],'Klarna') !== false || stripos($v['gateway'],'klarna') !== false){
|
|
|
$pay ="klarna_payments";
|
|
|
}
|
|
|
+ else if(stripos($v['gateway'],'Afterpay') !== false || stripos($v['gateway'],'afterpay') !== false){
|
|
|
+ $pay ="afterpaypayovertime";
|
|
|
+ }
|
|
|
else
|
|
|
{
|
|
|
$pay = $v['gateway'];
|
|
@@ -210,6 +213,9 @@ function __construct(){
|
|
|
else if(stripos($v['payment_gateway_names'][0],'Klarna') !== false || stripos($v['payment_gateway_names'][0],'klarna') !== false){
|
|
|
$pay ="klarna_payments";
|
|
|
}
|
|
|
+ else if(stripos($v['payment_gateway_names'][0],'Afterpay') !== false ){
|
|
|
+ $pay ="afterpaypayovertime";
|
|
|
+ }
|
|
|
else
|
|
|
{
|
|
|
$pay = isset($v['payment_gateway_names'][0])?$v['payment_gateway_names'][0]:"";
|
|
@@ -602,7 +608,9 @@ function __construct(){
|
|
|
{
|
|
|
return array('g'=>0);exit;
|
|
|
}
|
|
|
- if($a['transactions'][0]['gateway'] == 'Klarna'){
|
|
|
+ if($a['transactions'][0]['gateway'] == 'Klarna' ){
|
|
|
+ return array('g'=>1,'d'=>$a['transactions'][0]['payment_id'],'protection_eligibility'=>"");
|
|
|
+ }elseif(stripos($a['transactions'][0]['gateway'],'Afterpay') !== false){
|
|
|
return array('g'=>1,'d'=>$a['transactions'][0]['payment_id'],'protection_eligibility'=>"");
|
|
|
}else{
|
|
|
$a['transactions'] = array_reverse($a['transactions']);
|