Ben orijinal sepetinde <merchanrt-private-data>
etiketi kullanılıyorsa geçmişte yaptık yolu, yani bir şey gibi: Google geri bir seri numarası ile adlandırılan sonra
<checkout-shopping-cart xmlns='http://checkout.google.com/schema/2'>
<shopping-cart>
<merchant-private-data>
<merchant-note>[some secret about the cart on my system]</merchant-note>
</merchant-private-data>
<items>
...
</items>
</shopping-cart>
</checkout-shopping-cart>
Sonra, ben kullanmak
<new-order-notification xmlns="http://checkout.google.com/schema/2" serial-number="[serial number from google]">
<buyer-billing-address>
...
</buyer-billing-address>
<timestamp>...</timestamp>
<google-order-number>...</google-order-number>
<order-summary>
<total-chargeback-amount currency="GBP">...</total-chargeback-amount>
<google-order-number>...</google-order-number>
<total-charge-amount currency="GBP">...</total-charge-amount>
<total-refund-amount currency="GBP">...</total-refund-amount>
<purchase-date>...</purchase-date>
<archived>false</archived>
<shopping-cart>
<merchant-private-data>
<merchant-note>[the secret about the cart from my system]</merchant-note>
</merchant-private-data>
<items>
</items>
</shopping-cart>
<order-adjustment>
...
</order-adjustment>
<promotions />
<buyer-id>...</buyer-id>
<buyer-marketing-preferences>
<email-allowed>false</email-allowed>
</buyer-marketing-preferences>
<buyer-shipping-address>
...
</buyer-shipping-address>
<order-total currency="GBP">...</order-total>
<fulfillment-order-state>NEW</fulfillment-order-state>
<financial-order-state>REVIEWING</financial-order-state>
</order-summary>
<shopping-cart>
<merchant-private-data>
<merchant-note>[the secret about the cart from my system]</merchant-note>
</merchant-private-data>
<items>
</items>
</shopping-cart>
<order-adjustment>
...
</order-adjustment>
<promotions />
<buyer-id>...</buyer-id>
<buyer-marketing-preferences>
<email-allowed>false</email-allowed>
</buyer-marketing-preferences>
<buyer-shipping-address>
...
</buyer-shipping-address>
<order-total currency="GBP">...</order-total>
<fulfillment-order-state>NEW</fulfillment-order-state>
<financial-order-state>REVIEWING</financial-order-state>
</new-order-notification>
sonra daha önce veritabanında saklanan etmişti ayrıntılar emir maç için sırrı kullanabilirsiniz: Notification History API sonra benim özel verileri, böyle bir şey de içeren sipariş detaylarını, almak için.
Bu XML'in nasıl işleneceğine dair güzel bir örnek biliyor musunuz? API getMerchantPrivateData'yı kullanmaya çalıştığımda ve bir AnyMultiple döndürdüğümde veriyi bulamıyorum. – Lumpy
@Lumpy, XML API'sinin etrafında yalnızca XML döndüren ve nesneler olmayan bir tür sarıcı kullandığınız gibi geliyor - yeni bir soru sormanız daha iyi olabilir ve hangi kütüphaneleri kullandığınızı belirtin –
@RowlandShaw Bu kaydedildi benim hayatım. Google’ın neden doktora yazılmadığını anlamıyorum. –