当前位置: 首页>>代码示例>>PHP>>正文


PHP soapclient::UpdatePaymentDetails方法代码示例

本文整理汇总了PHP中soapclient::UpdatePaymentDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP soapclient::UpdatePaymentDetails方法的具体用法?PHP soapclient::UpdatePaymentDetails怎么用?PHP soapclient::UpdatePaymentDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在soapclient的用法示例。


在下文中一共展示了soapclient::UpdatePaymentDetails方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: orders

 $payment_date = $_POST['payment_date'];
 $d = 1427846400;
 $username = $_SESSION['username'];
 $pubid = $_SESSION['Publication_Id'];
 $subid = $_SESSION['planId'];
 $in = "insert into orders(txn_id,txn_type,mc_gross,payer_email,status,receiver_email,received) values ('" . $txn_id . "','" . $txn_type . "','" . $payment_amount . "','" . $payer_email . "','" . $payment_status . "','" . $receiver_email . "','" . $payment_date . "')";
 if ($payment_status == 'Completed') {
     $st = 'PD';
     $issuccess = TRUE;
 } else {
     $st = 'UN';
     $issuccess = FALSE;
 }
 $param = array('PublicationID' => "{$pubid}", 'UserName' => "{$username}", 'PaymentTxnID' => "{$txn_id}", 'amount' => "{$payment_amount}", 'PaymentStatus' => "{$st}", 'PaymentComment' => "{$res}", 'SubscriptionType' => "{$subid}", 'IsSuccess' => "{$issuccess}");
 $client = new soapclient('http://etypeservices.com/Service_UpdatePaymentDetails.asmx?WSDL');
 $response = $client->UpdatePaymentDetails($param);
 //$qu=db_query($in);
 // foreach($_POST as $key => $value) {
 //  echo $key." = ". $value."<br>";
 // }
 if ($payment_status == 'Completed') {
     $torec = $receiver_email;
     $param1 = array('PublicationID' => "{$pubid}", 'UserName' => "{$username}");
     $client1 = new soapclient('http://etypeservices.com/Service_SendMailForRegistration.asmx?WSDL');
     $response1 = $client1->GetSubscriberInfoByUserName($param1);
     $message = "<head>\n    <title></title>\n</head>\n<body>\n    <table border=0 cellpadding=0 cellspacing=0>\n        <tr>\n            <td colspan=2 style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;\n                width: 170px;>\n                Dear,\n                \n            </td>\n        </tr>\n        <tr>\n            <td colspan=2 style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                A new subscriber has just signed up for\n                " . $publname . ".\n            </td>\n        </tr>\n        <tr>\n            <td colspan=2 style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Subscriber detail are as follows:\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Name:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Firstname . "\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Lastname . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                User name:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Username . "\n            </td>\n        </tr>\n       \n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Phone:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                 " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Phone . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Email:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                 " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Email . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                City:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                 " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->City . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Address:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Address . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                State:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                 " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->State . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Zip:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                 " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Zip . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Subscription Plan:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $_SESSION['planTitle'] . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Amount Paid:\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                 " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Amount . "\n            </td>\n        </tr>\n        \n        <tr>\n            <td colspan=2>\n                <br />\n                <br />\n                <br />\n            </td>\n        </tr>\n        <tr>\n            <td colspan=2>\n                <br />\n            </td>\n        </tr>\n        <tr>\n            <td colspan=2 style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Thank You\n                <br />\n                Etype Services\n            </td>\n        </tr>\n    </table>\n</body>\n</html>";
     $adminemail = "admin@etypeservices.com";
     $sentmailadmin1 = mail($adminemail, $subject, $message, $headers);
     $sentmail = mail($torec, $subject, $message, $headers);
     $topay = $payer_email;
     $message1 = "<head>\n    <title>Untitled Page</title>\n</head>\n<body>\n    \n    <title>Mail Page</title>\n    <table border=0 cellpadding=0 cellspacing=0 width=100%>\n        <tr>\n            <td style=padding-top: 2px; font-family: Verdana; font-size: 8.5pt; padding-left: 0px;>\n            \n                                <br />\n                                <br />\n                Dear&nbsp;Subscriber,<br />\n                <br />\n                Welcome to\n                " . $publname . ". Thank you for your registration..\n                <br />\n                <br />\n                You have entered the following details for registration:<br />\n                <br />\n            </td>\n        </tr>\n    </table>\n    <table border=0 cellpadding=0 cellspacing=0>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;\n                width: 170px;>\n                User Name\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Username . "\n            </td>\n        </tr>\n        \n\n         <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Subscription Plan\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n               " . $_SESSION['planTitle'] . "\n            </td>\n        </tr>\n\n         <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Amount Transferred\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n               " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Amount . "\n            </td>\n        </tr>\n\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Email\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Email . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                First Name\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Firstname . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Last Name\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Lastname . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Phone\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Phone . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                City\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->City . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Address\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n               " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Address . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                State\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->State . "\n            </td>\n        </tr>\n        <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Zip\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $response1->GetSubscriberInfoByUserNameResult->PlanDetails->Zip . "\n            </td>\n        </tr>\n   <tr>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Payment Status\n            </td>\n            <td style=font-family: Tahoma; font-size: 11px; text-align: left;>\n                " . $payment_status . "\n            </td>\n        </tr>\n        \n        <tr>\n            <td colspan=2>\n                <br />\n                <br />\n                <br />\n            </td>\n        </tr>\n        <tr>\n            <td colspan=2>\n                <br />\n            </td>\n        </tr>\n        <tr>\n            <td colspan=2 style=font-family: Tahoma; font-size: 11px; text-align: left; font-weight: normal;>\n                Thanks\n            </td>\n        </tr>\n    </table>\n</body>\n</html>";
开发者ID:etype-services,项目名称:lsn,代码行数:31,代码来源:node--19492.tpl.php


注:本文中的soapclient::UpdatePaymentDetails方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。