GithubHelp home page GithubHelp logo

snap-woocommerce's People

Contributors

aalexanderkevin avatar hafizh-vt avatar harrypujianto avatar rizdaprasetya avatar xaxxis avatar yocki-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snap-woocommerce's Issues

enhanced ecommmerce & masalah kartu kredit

Hi, @rizdaprasetya

Saya menggunakan plugin midtrans woocommerce untuk salah satu website saya.

Pertama

Semua opsi pembayaran sudah bisa, hanya saja untuk beberapa metode pembayaran dibawah ini tidak ter-redirect ke halaman "Order Received" nya woocommerce.

Saya tahu kita bisa setting finish URLnya (https://domainsaya.com/checkout/order-received/) tetapi sistem woocommerce mengalihkan user ke halaman "Order received" dengan beberapa parameter.

domainsaya.com/checkout/order-received/[no order id]/?key=wc_order_ [kodeunik]

Nah bagaimana caranya untuk menambahkan parameter itu karena no order id dan wc_order_[kodeunik] dibuat oleh sistem secara otomatis.

Berikut daftar pembayaran yang tidak langsung ke halaman "Order received"

  • BCA KlikPay
  • CIMB Clicks
  • Danamon Online Banking
  • e-Pay BRI
  • Line Pay e-cash / Mandiri e-cash

Mengapa hal di atas menjadi penting?

Karena bila kita ingin menerapkan fitur enhanced ecommerce Google Analytics di woocommerce, perlu halaman "Order received" dengan beberapa parameter di URLnya.

Kedua

Saya mencoba menggunakan fitur ke 2,3, dan 4 dari midtrans woocommerce ini.

  • Midtrans Credit Card Direct

Ketika klik tombol pembayaran, ada pesan Error! Metode pembayaran tidak aktif

Bagaimana cara mengaktifkannya? Apakah ada video tutorialnya?

  • Midtrans Online Installment
  • Midtrans Offline Installment

Untuk kedua metode di atas, muncul error

Midtrans Exception: Midtrans Error (400): {"error_messages":["installment.installment_terms does not support installment term"]} | Request url: https://app.sandbox.midtrans.com/snap/v1/transactions.
Plugin Title: Midtrans Online Installment

Saya sudah atur minimal pembayarannya tapi tetap seperti di atas masalahnya.

Bagaimana cara memperbaikinya? Apakah ada video tutorialnya?

Terima kasih

Redirection status code 301, 302 and 303 are not supported. Use 307 or 308 instead.

Salam,

Saya sedang mencoba integrasi Snap-Woocommerce dengan menggunakan plugin Midtrans - WooCommerce Payment Gateway, dan saya sudah mengikuti semua langkah disini : https://github.com/veritrans/SNAP-Woocommerce#midtrans-map-configuration

Proses checkout berjalan dengan mulus (dalam konfigurasi sandbox), Namun saya selalu mendapatkan error : Redirection status code 301, 302 and 303 are not supported. Use 307 or 308 instead. Status di Woocommerce juga macet di 'pending payment'.

Apakah ada setting lain yang harus saya lakukan untuk integrasi midtrans?

Terima kasih.

Email new order tidak masuk ke email Customer

Halo

  1. Order di felancy.co.id
  2. Order sudah masuk dengan status PendingPayment
  3. Email new order tidak terkirim ke email customer(menggunakan payment method lain terkirim)

Terimakasih

customer_details.email format is invalid

Hi I got an error from [email protected]
just like the title.
here's a little respond from mail
{"first_name":"Yoppi","last_name":"","email":"","phone":""

in my case, my customer don't really need to input their email. so they just need to checkout.

by the way I'm using WordPress and WooCommerce.
and it's in sandbox

Menggunakan Custom order number sebagai pengganti order ID

Saya memakai plugin untuk merubah order ID di woocommerce, saya mengganti $order_id yang ada di dalam public function getPaymentRequestData() di file abstract.midtrans-gatewayp.php dengan custom_order_id dengan contoh format: Inv-corp-0001, transaksi tersebut berhasil masuk ke dashboard sandbox Midtrans dengan format custom order ID, namun status order di woocommerce tetap 'Pending Payment', mungkin hal ini disebabkan belum diubah/ditranslate kembali custom order ID yang dipakai oleh Midtrans ke order ID original saat melakukan callback ke woocommerce.
Apakah ada saran hook / filter / snippet modifikasi yang disarankan agar woocommerce dapat menerima callback dengan ID yang benar sehingga dapat merubah status order pada saat transaksi berhasil? Terima kasih sebelumnya

WooCoomerce Pending Payment Status

Halo, saya sedang melakukan testing Untuk payment gateway Midtrans-WooCoomerce (mengunakan sandbox mode).
Pada saat melakukan test untuk payment status payment pada Midtrans sudah sukses (settlement) namun status pembayaran pada WooCommerce masih Pending Payment.

Saya sudah melakukan setting server key, client key , merchant id di WooCommerce dan juga melakukan setting MAP pada Midtrans

Pertanyaan saya :

  1. Apakah ada step yang mungkin saya lewati sehingga status pembayaran di woocommerce dan midtrans tidak terintegrasi
  2. Untuk link url untuk MAP configuration >>> http://<nama_website>/?wc-api=WC_Gateway_Midtrans apakah hanya tinggal di copy pastekan saja ke settingan MAP atau perlu ada konfigurasi dari sisi woocomerce/wordpress nya ?

Terimakasih

Notification error

Entah benar atau tidak menanyai disini, krn via email support tdk di respon :(

Sementara masih sandbox

Terkendala dgn issue notification endpoint, ketika test di MAP hasilnya;

Failed
Response status is '404' not '200' atau Response status is '500' not '200'

Semua settingan sudah sesuai dokumentasi termasuk url yg lain dgn menggunakan url

http://sub.domain.saya/?wc-api=WC_Gateway_Midtrans

dicoba pointing ke domain lain, malah bisa :(

any idea?? Thanks!

Salah Nomor rek virtual

Saya setial kali transaksi pake akun virtual yg di berikan oleh woocomers(midtrans) tapi tidak pernah sukses selalu nomor rekening tidak ada padahal sudah saya sama kan.
dan pengaturan juga sudah saya sesuaikan seperti langkah'' yg ada. dan juga kalau lewat kartu kredit memang bisa. Tolong solusinya

Pending payment status

Halo, saya memiliki masalah dimana order yang saya test via woocommerce (sandbox), status di midtrans sudah oke sudah masuk tapi di woocommerce tetep pending sehingga saya harus approve manual.

< TLS client: Protocol version not supported or Handshake failure TLS client: Protocol version not supported or Handshake failure

Permisi mas, terdapat error dari log transaksi dashboard utama midtrans yang integrasi ke woocomerce, yang dimana ketika payment sukses, tidak langsung completed tetapi sudah ikuti panduan konfigurasi dari dokumentasi midtrans, solusinya bagaimana ya

POST https://mysite.com?wc-api=WC_Gateway_Midtrans
< TLS client: Protocol version not supported or Handshake failure TLS client: Protocol version not supported or Handshake failure

Error Testing Notification callback

While testing Test notification callback, got this:

[STDERR] PHP Warning: Illegal string offset 'transaction_id' in /var/www/vhosts/XXX/wp-content/plugins/midtrans-woocommerce/lib/veritrans/Veritrans/Notification.php on line 20

[STDERR] PHP Fatal error: Uncaught Exception: Veritrans Error (404): Transaction doesnt exist. in /var/www/vhosts/XXXXX/wp-content/plugins/midtrans-woocommerce/lib/veritrans/Veritrans/ApiRequestor.php:96

Using ver 2.4.5

[Enhancement] Prevent empty string values from `getOrderProperty` func return value

public static function getOrderProperty($order, $property){
$functionName = "get_".$property;
if (method_exists($order, $functionName)){ // WC v3
return (string)$order->{$functionName}();
} else { // WC v2
return (string)$order->{$property};
}
}

This function should

  • check if the return value is empty string "", then do not return empty string. Because it may cause issue if billing_email is empty string, Snap API will reject w/ msg "customer_details.email format is invalid"

Enhancement needed to prevent that issue.

Reporting merchant: G019146562 NextCool

Tidak otomatis complted saat setelah bayar

permisi kaa saya memiliki kendala, apabila user telah membayar tagihan tapi status tidak otomatis complted padahal status di woocorce midtrans nya sudah di setting completed

image

Easier to understand payment option name on `Midtrans Credit Card Direct` to prevent merchant misusing it

Some merchant is confused, and think that Midtrans Credit Card Direct payment options is the only way they can accept card payment. Although the main payment options has already include card payment.

Need to change the name to be more explanatory.

public function pluginTitle() {
return "Midtrans Credit Card Direct";
}
/**
* @return string
*/
protected function getDefaultTitle () {
return __('Credit Card Payment via Midtrans', 'midtrans-woocommerce');
}

  • Change Midtrans Credit Card Direct
    to
    Midtrans Optional Card in-Browser Payment UI

  • Change Credit Card Payment via Midtrans
    to
    Alternative Card Payment form using in-browser payment UI (leave it disabled if not sure)

Include this changes on next feature release. Lower priority.

Suggestion to make Snap payment pop-up on checkout page, so that it allow customer to revise their cart

Currently the payment procedure is very confusing. Snap payment should be popup inside a checkout page (it should never clear the cart before payment is finished!)

Lets say a visitor already ready to checkout, Then he click pay and gets redirected to 'order-pay' page. But he forget something and want to edit his order. then he press go back just to be shown cart page is now empty.

I never see such payment procedure in any big marketplace before. People sometimes make mistake, we should allow people to edit their order.

So I propose the popup box should be opened in checkout page. then gets redirected and clearing cart only if the payment is successful. If visitor decide to fix something, he can just close the snap payment popup. and continue editing the order.

Konsumen sudah bayar, tapi status order tetap "pending payment"

Selamat malam, saya sudah coba pasang plugin midtrans di woocommerce dan puji Tuhan sukses bisa melakukan transaksi di environment sandbox. Namun ada satu yang janggal, ntah hanya saya saja atau emang sistemnya kayak gini.

Jadi, saya coba test sebagai konsumen untuk membeli barang di web saya dan pakai metode pembayaran midtrans tentunya. Udah tuh pilih metode pembayaran transfer atm pake BCA, dan saya pake testing credential nya midtrans (BCA VA). Pembayaran oke, sudah dianggap sistem midtrans kalau dia sudah lunas membayar. Namunnnn, status order di woocommerce tetep aja 'Pending Payment" dan tidak ada notifikasi order masuk sama sekali untuk admin/ penjualnya di email. Masa iya si penjual dikit dikit harus ngecek woocommerce nya?

Jadi itu yang saya tanyakan, kenapa konsumen udah bayar lunas, tapi status order tidak berubah (tetap Pending Payment aja)?

Terima kasih,
Agoy

image
image
image
image

Cegah Customer Untuk Memilih Payment Method Berulang Jika Terdeteksi Ada Link SNAP Yang Sedang Aktif

Dikarenakan Woocommerce memberikan fitur tombol bayar pada order dengan status pending payment di halaman my account maka,

  1. Jika pengguna telah melakukan checkout dan belum melakukan pembayaran langsung dan memilih untuk mengklik tombol "Back to merchant" maka status pembayaran berubah menjadi pending payment.

  2. Karena woocommerce memberikan fitur aksi tombol bayar pada order berstatus pending payment, maka yang terjadi jika customer mengklik tombol tersebut adalah secara otomatis customer akan diminta memilih metode bayar kembali dan nantinya SNAP akan memberikan VA yang baru dan dimana ini menyebabkan time out payment menjadi tereset ulang dan tidak dilanjutkan dari time out pada SNAP yang pertama.

  3. Dari kondisi tersebut, SNAP yang pertama masih aktif dan masih bisa dilakukan pembayaran. Menurut saya ini tidak efisien dan bisa saja ada kemungkinan customer akan melakukan transfer dana ke VA yang pertama (jika timeout masih ada waktu)

Jadi disini menurut saya dibuat logika jika terdeteksi bahwa sudah ada payment link dari SNAP yang aktif maka cukup digunakan itu saja, jadi jika pengguna mengklik tombol bayar pada halaman my account yang terjadi seharusnya woocommerce tidak perlu meminta customer untuk memilih metode pembayaran lagi. Melainkan dapat langsung menuju halaman dimana popup SNAP muncul.

image

image resource for Wiki
snap-woo1
snap-woo2
snap-woo3
snap-woo4
snap-woo5

Logo Mandiri VA / Bill

untuk metode pembayaran mandiri bill belum ada logo nya. jika mengacu pada folder images disini sepertinya perlu ditambahkan

padahal untuk bank transfer setidaknya harus ada 4 logo untuk bri va, bni va, permata va, mandiri bill
image

Refund webhook notification, causes unexpected err: Too few arguments to function WC_Midtrans_Utils::check_and_restore_original_order_id()

Hi,

Currently using Midtrans - WooCommerce Payment Gateway version 2.32.1.

I received an automated "midtrans Error Notification" email about not being able to reach my endpoint when sending refund notification. I noticed the error detail is InternalServerError, and I found this on my server's error log:

PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function WC_Midtrans_Utils::check_and_restore_original_order_id(), 0 passed in /var/www/html/wp-content/plugins/midtrans-woocommerce/abstract/abstract.midtrans-gateway.php on line 358 and exactly 1 expected in /var/www/html/wp-content/plugins/midtrans-woocommerce/class/class.midtrans-utils.php:157
Stack trace:
#0 /var/www/html/wp-content/plugins/midtrans-woocommerce/abstract/abstract.midtrans-gateway.php(358): WC_Midtrans_Utils::check_and_restore_original_order_id()
#1 /var/www/html/wp-includes/class-wp-hook.php(307): WC_Gateway_Midtrans_Abstract->midtrans_refund()

I confirmed that the payload from Midtrans indeed has "order_id" included. Then I checked on midtrans-woocommerce/abstract/abstract.midtrans-gateway.php, line 357:

public function midtrans_refund( $order_id, $refund_amount, $refund_reason, $isFullRefund = false ) {
    $order_id = WC_Midtrans_Utils::check_and_restore_original_order_id();
    $order  = wc_get_order( $order_id );
    if( ! is_a( $order, 'WC_Order') ) {
        return;
    }

On the second line of the above snippet, when "check_and_restore_original_order_id" function is called, there's no parameter included, while that function expects 1 parameter to be included ("midtrans-woocommerce/class/class.midtrans-utils.php").

public static function check_and_restore_original_order_id($non_duplicate_order_id)

Is this a possible cause for the error?

Thanks.

Payment paid via Midtrans WC plugin does not have WC Order's transaction ID

Hi,

Currently using Midtrans - WooCommerce Payment Gateway version 2.22.0.

Wanted to confirm if it's actually by design not to return transaction ID ( https://woocommerce.github.io/code-reference/classes/WC-Order.html#method_get_transaction_id ) ?

I tried using sandbox mode, and credit card payment method.

I asked because one of the plugins I'm working with actually rely on the transaction ID to confirm whether a payment was made or not.

Thanks.

custom change status when transaction success

How I can custom change status when transaction success ? ex : when transaction success status in dashboard woocommerce on-hold to "confirmed" .. in default on-hold to processing

Thankyou

503

instalasi berhasil , namun klik setting langsung keluar error 503 pakai Version 2.32.0

Allow merchant to specify Acquring Bank on credit card full payment (main payment) option

Hi, Is there anyway i can do this in the online payment method?

As far i can see the option only available in the in browser credit card payment. And i have to use the online method because i use bank transfer etc payment methods too.

there probably should be easier way to change this option in the setting for your consideration later on for non developer.

Or at least put in the tutorial which plugin file i have to edit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.