Cyber​​Source - 商家定义的数据

CyberSource system require user Merchant Defined Data

Field Name is MDD14 : Time/date since last purchase

<input type="hidden" id="merchant_defined_data14" name="merchant_defined_data14" value="<?php echo $time_difference;?>">

Problem 1;

If the customer is new, how can I calculate the time difference ? (now()-max(date))

For Example, 0 second is passed from last purchase.. Is it correct ?

Problem 2;

what is the date/time format of the CyberSource MDD14 Time/date is required.

Time in Second ? Date in ?

Sorry for these questions. They didnt provide me any document regarding this issue?

Is anyone coding CyberSource with PHP using MDD fields ?

Thanks for your help.

Regards..

Merchant Defined Data is any custom data you want to send to CyberSource. If you inherited this project, then the person/team before you set this up. CyberSource doesn't require any Merchant Defined Data. Merchant Defined Data is data defined by you as the merchant.